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
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
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
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
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
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
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
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
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
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 =
10 matches
Mail list logo