1. I have read this article before. I think this instruction teaches us how we can access files in this directory. My problem differs: I can't include this files into index.html. 2. I don't understand why shall I create STATIC_DOC_ROOT, MEDIA_ROOT is already exists. 3. I failed following this article. I changed project level urls.py: from django.conf.urls.defaults import * from galiontours.galion import views from galion.views import index from django.contrib import admin from django.conf import settings admin.autodiscover()
urlpatterns = patterns('', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^index/', 'galion.views.index'), url((r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}), ) http://localhost:8000/site-media/path/to/media/css/mystyles.css led me to error message: SyntaxError at /site-media/path/to/media/css/mystyles.css invalid syntax (urls.py, line 16) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.