django-pipline looks good for me at first, and then I realize it copies both the minified files and the original files (which I dont want). That is why I wrote my own scripts.
Thanks On Mon, Jul 7, 2014 at 10:35 PM, carlos <[email protected]> wrote: > Hi, maybe you need use this third party solution > http://django-compressor.readthedocs.org/en/latest/ > > and other is > https://django-pipeline.readthedocs.org/en/latest/ > > Cheers > > > On Mon, Jul 7, 2014 at 5:58 PM, Chen Xu <[email protected]> wrote: > >> Hi Everyone, >> I am working on a site, under my project in my local environment, I have >> a directory called "static" (generated by django just like everyone else's) >> to server my js and css. I wrote a script which minify all the js and css >> files and copy them in a directory called "static_min" which is at the same >> level as "static". When I try to include my css and js files from >> "static_min", it show url not found. >> >> And I tried the followeing: >> in my settings: I changed the STATICFILES_DIRS as the following: >> >> STATIC_ROOT = sys.path[0] >> >> STATICFILES_DIRS = ( >> os.path.join(STATIC_ROOT, 'static'), >> os.path.join(STATIC_ROOT, 'static_min') >> ) >> >> I thought doing this will make Django to look for file in both static and >> static_min, but it did not work. >> >> >> Could someone help. >> >> Thanks >> >> >> >> >> >> -- >> ⚡ Chen Xu ⚡ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CACac-qZbMcM6%2Bqs9frw1gToBSvbgD2NSaFtdOFrDfxScX%3DiVmg%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CACac-qZbMcM6%2Bqs9frw1gToBSvbgD2NSaFtdOFrDfxScX%3DiVmg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAM-7rO28fM3wZmYL85jCXECaiiYnOrHhVv8%3DZSfKVmLV5-ox_Q%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAM-7rO28fM3wZmYL85jCXECaiiYnOrHhVv8%3DZSfKVmLV5-ox_Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACac-qYQ_1t1vrOKtYBM3yZbsDcZ3NN5byVAvyYvkOd-jdavNw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

