Sunday, December 30, 2012

Re: Serve static files in production server

Héllo Stefano,

On Sunday, December 30, 2012 1:27:12 PM UTC+1, Stefano Tranquillini wrote:
Hi all.
in the appfog ML we were fighting again the possibility to serve static file in django without using an external server.
So far AF does not provide a setup of the server to split the server in static and dynamic (django) folders.
so, one of the solution is to use this

urlpatterns += patterns('', 
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', { 
'document_root': settings.STATIC_ROOT}) 

but, is it ok to use this trick in django or will it lead to problems (aka memory problems and stuff like that)?

The documentation state «Again, this view is not hardened for production use» [1]

What is the particular issue your are facing ? Maybe tproxy [2] can help.



You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment