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 you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/cSCoskQNgFYJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
On Fri, Dec 16, 2011 at 4:17 PM, Tom Evans <teva...@googlemail.com> wrote:
>
> 1) Is staticfiles in INSTALLED_APPS ?
> 2) Is DEBUG=True?
> 3) What is the output of:
> python manage.py findstatic bootstrap.css
4) Are you using runserver?
<img src="{% static "my_app/myexample.jpg" %}" alt="My image"/>
Yes, it's very odd. The only thing that fixes it is setting STATIC_URL="static/" instead if "/static/"
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 a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/MUwh10d2Ow8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bbf788c0-9024-4ff8-b506-659ef1566a58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.