On Fri, Aug 2, 2013 at 9:55 PM, Jairo Alonso Velásquez
<jairoalons...@gmail.com> wrote:
> Problem is due to a bug on Django or Python, You should to set DEBUG = True
> in settings.py And problem gone.
>
>
> https://bugzilla.redhat.com/show_bug.cgi?id=962223
>
> Hope this helps others.

No, when DEBUG is False, Django does not serve or do anything with
your static files.

You are expected to run "collectstatic" command to collect your static
files in to the folder indicated by settings.STATIC_ROOT, which is
then expected to be made available by you at the URL indicated by
settings.STATIC_URL, ie not using django at all.

This is documented fully in the section of the docs "Deploying static files":

"""
The basic outline of putting static files into production is simple:
run the collectstatic command when static files change, then arrange
for the collected static files directory (STATIC_ROOT) to be moved to
the static file server and served. Depending on STATICFILES_STORAGE,
files may need to be moved to a new location manually or the
post_process method of the Storage class might take care of that.
"""

https://docs.djangoproject.com/en/1.5/howto/static-files/deployment/#serving-static-files-in-production

This is not a bug, this is how it is supposed to work.

Cheers

Tom

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to