peterbe / django-static

Template tags for better serving static files from templates in Django
BSD 2-Clause "Simplified" License
193 stars 28 forks source link

Generate static content from command line #10

Closed dickbrouwer closed 13 years ago

dickbrouwer commented 13 years ago

Hi Peter,

Is it possible to generate all compressed css and js using a ./manage.py command?

Currently the static content is generated when the page is loaded, but is the .js is large the first page reload will be slow (undesirable in production). Right now I manually go in and crawl all the pages, but its a bit inconvenient.

Thanks

peterbe commented 13 years ago

There is currently no such tool unfortunately. What you can do is write a simple management script that uses urllib2 to urlopen a couple of your URLs.