Planning to host the client side of our application in production from a proxy to an S3 site from Nginx.
The problem is we'd like to mimic this behavior by serving / in Django runserver using a static directory url() entry. I've read over https://docs.djangoproject.com/en/1.4/howto/static-files/#serving-other-directories but I can't seem to make Django route / to my client directory. Idea is I have a project directory* /client *which contains index.html along with all the other files for site, and when I hit http://127.0.0.1:8000/ I want to serve up *<projectdirectory>/client/index.html.* Not sure the following will work because I don't think you can't have a STATIC_URL = '/', right? from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns += staticfiles_urlpatterns() This one seems to make more sense, but I am not clear on what URL pattern could pull this off.. if settings.DEBUG: urlpatterns += patterns('', url(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/client',}), ) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ffdc58f3-e10c-46df-b14f-ec4bc02c0c70%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.