Debud setting behaves weird

3 views
Skip to first unread message

Yaşar Arabacı

unread,
Aug 23, 2011, 4:38:17 AM8/23/11
to django-users
Hi,

When I set debug=True in my settings module, my static files work. When I set it to False, I get 404 on my static files. Anyone has an ide what is going on here?

--
http://yasar.serveblog.net/

Kejun He

unread,
Aug 23, 2011, 5:14:10 AM8/23/11
to django...@googlegroups.com
Hi
Which platform did your project run?
On the development platform or the publishing platform ?

2011/8/23 Yaşar Arabacı <yasar...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.

Yaşar Arabacı

unread,
Aug 23, 2011, 5:29:02 AM8/23/11
to django...@googlegroups.com
I normally use my linux platform, but I am on my brothers computer which is a win xp. I am on development server. And I just found out that I get 404 because I didn't had 500 template. Now I am getting my 500 template. So here is sum of what is happening:

go to a static file while django dev server running, and see that file served.
make DEBUG=False in settings
refresh page
see my 500 template

I can repeat this as much as I want.

2011/8/23 Kejun He <print...@gmail.com>

Martin J. Laubach

unread,
Aug 23, 2011, 5:40:03 AM8/23/11
to django...@googlegroups.com
You might want to read the documentation at https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/ -- especially the big boxes labelled "Warning".

        mjl

Yaşar Arabacı

unread,
Aug 23, 2011, 5:44:37 AM8/23/11
to django...@googlegroups.com

This makes sense :)


Warning

This view will only work if DEBUG is True.

That's because this view is grossly inefficient and probably insecure. This is only intended for local development, and should never be used in production.


2011/8/23 Martin J. Laubach <goo...@emsi.priv.at>
You might want to read the documentation at https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/ -- especially the big boxes labelled "Warning".

        mjl

--
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/-/IeEsxfoPtigJ.

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.



--
http://yasar.serveblog.net/

Reply all
Reply to author
Forward
0 new messages