Re: Trouble with STATIC_URL in v1.5.2

2013-09-17 Thread Adam Stein
I'm not using RequestContext(). The behavior must have changed between v1.4 and v1.5 regarding this. On Tue, 2013-09-17 at 08:27 -0700, Kelvin Wong wrote: > If your software works then I guess it works, but I just ran this in > the shell on Django 1.5.4. > > > $ python manage.py shell > Python

Re: Trouble with STATIC_URL in v1.5.2

2013-09-17 Thread Kelvin Wong
If your software works then I guess it works, but I just ran this in the shell on Django 1.5.4. $ python manage.py shell Python 2.7.3 (default, May 4 2012, 11:07:18) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information.

Re: Trouble with STATIC_URL in v1.5.2

2013-09-17 Thread Adam Stein
Turns out that I had to use the new {% static %} template tag. It seems that STATIC_URL is only set in the context for template use when in DEBUG mode (didn't look in the code, but it appears that way). {% static %} works for both development and production environments. It was pretty simple

Re: Trouble with STATIC_URL in v1.5.2

2013-09-17 Thread Kelvin Wong
Check that your STATIC_URL setting in your template is outputting the same string as settings.STATIC_URL. Make sure that any included local_settings.py files are not wiping out those settings. You can check it using the Django shell: $ python manage.py shell >>> from django.conf import

Re: Trouble with STATIC_URL in v1.5.2

2013-09-17 Thread Mike Dewhirst
On 17/09/2013 3:49pm, Jacky Tian wrote: I think the standard way of including static files in templates in 1.5+ is through the staticfiles app . In particular, look at the documentation on the {% static %} template tag. Depending

Re: Trouble with STATIC_URL in v1.5.2

2013-09-16 Thread Jacky Tian
I think the standard way of including static files in templates in 1.5+ is through the staticfiles app. In particular, look at the documentation on the {% static %} template tag. Depending on how you've set up your STATIC_ROOT and

Trouble with STATIC_URL in v1.5.2

2013-09-16 Thread Adam Stein
Maybe this is something well known. I'm using STATIC_URL in my templates. Worked perfectly in Django 1.4.x. Upgraded to v1.5.2. Now STATIC_URL ONLY works when the DEBUG setting is True. When set to False (For production), STATIC_URL is an empty string in the template. Anybody have any idea