Re: Confused by STATICFILES_DIRS not working

2014-09-24 Thread Thabang Bernette Tseboho
Yes, it's very odd. The only thing that fixes it is setting STATIC_URL="static/" instead if "/static/" On 23 Sep 2014 8:47 PM, "Collin Anderson" wrote: > So it works fine in production, when DEBUG = False, but not on your local > runserver when DEBUG = True? > > -- > You received this message bec

Re: Confused by STATICFILES_DIRS not working

2014-09-23 Thread Collin Anderson
So it works fine in production, when DEBUG = False, but not on your local runserver when DEBUG = True? -- 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 django-us

Re: Confused by STATICFILES_DIRS not working

2014-09-23 Thread Thabang Bernette Tseboho
Yes, that is how my urls are built. This works perfectly till I have DEBUG=TRUE. On Tuesday, 23 September 2014 14:49:52 UTC+2, Collin Anderson wrote: > > How are you referencing your css and images in the frontend? > > It should be something like > > > > > -- You received this message because

Re: Confused by STATICFILES_DIRS not working

2014-09-23 Thread Collin Anderson
How are you referencing your css and images in the frontend? It should be something like -- 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 django-users+unsubsc

Re: Confused by STATICFILES_DIRS not working

2014-09-23 Thread Thabang Bernette Tseboho
Hi Ivo, I have my project set up exactly as you suggested, and everything works in production. But I run into 2 problems. 1. When DEBUG=True, all my frontend styling is knocked out. So I resort to; STATIC_URL = '/static/' if DEBUG: STATIC_URL = 'static/' 2. which then leaves

Re: Confused by STATICFILES_DIRS not working

2011-12-16 Thread Jeff Blaine
On Friday, December 16, 2011 11:18:09 AM UTC-5, Tom Evans wrote: > > On Fri, Dec 16, 2011 at 4:17 PM, Tom Evans wrote: > > > > 1) Is staticfiles in INSTALLED_APPS ? > Yes, django.contrib.staticfiles is in INSTALLED_APPS > > 2) Is DEBUG=True? > Yes > > 3) What is the output of: > > python

Re: Confused by STATICFILES_DIRS not working

2011-12-16 Thread Ivo Brodien
Hi, I am not trying to understand what you did but just tell you how t works for me: PROJECT_PATH = os.path.realpath(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(PROJECT_PATH, 'static') STATIC_URL = '/static/‘ INSTALLED_APPS = ( ... 'django.contrib.staticfiles’, ) I have no STATIC

Re: Confused by STATICFILES_DIRS not working

2011-12-16 Thread Tom Evans
On Fri, Dec 16, 2011 at 4:17 PM, Tom Evans wrote: > > 1) Is staticfiles in INSTALLED_APPS ? > 2) Is DEBUG=True? > 3) What is the output of: >  python manage.py findstatic bootstrap.css > > Cheers > > Tom Sorry, and: 4) Are you using runserver? Cheers Tom -- You received this message because

Re: Confused by STATICFILES_DIRS not working

2011-12-16 Thread Tom Evans
On Fri, Dec 16, 2011 at 4:08 PM, Jeff Blaine wrote: > I'm having a heck of a time getting STATICFILES_DIRS working.  If anyone > could shed some light on this or just point me to the "All of your Django > STATIC* Settings Clarified Completely Once and For All" blog post or > somesuch, I would real

Confused by STATICFILES_DIRS not working

2011-12-16 Thread Jeff Blaine
I'm having a heck of a time getting STATICFILES_DIRS working. If anyone could shed some light on this or just point me to the "All of your Django STATIC* Settings Clarified Completely Once and For All" blog post or somesuch, I would really appreciate it. STATIC_ROOT = '' # DEFAULT STATIC_URL =