ADMIN_MEDIA_PREFIX deprecation and using static files

27 views
Skip to first unread message

Rajat Jain

unread,
Apr 5, 2012, 4:00:45 PM4/5/12
to django...@googlegroups.com
Hi,

I have a django 1.3 based frontend and it serves all the static files from Amazon S3. I am wishing to upgrade to Django 1.4. It seems that Django has changed the way admin static files are rendered. I have the following configuration:

settings.py: I have the app django.contrib.staticfiles in INSTALLED_APPS (in both 'dev' and 'prod' settings).
The static content is live on Amazon S3.

I am testing changes on my dev machine (DEBUG=True), but the /admin page is not able to render the static files and icons. That is because it is trying to pull stuff from S3 (because django.contrib.staticfiles is installed), but not pulling in from the dev django folders. Is there a way in which I can force the content out from dev folders when DEBUG = True rather than pulling in from S3?


Thanks,
Rajat
Reply all
Reply to author
Forward
0 new messages