I am new to Django, but have tried innumerable things. We're using Django 1.7.3. I need to be able to see the contents of to load into a JS program. I can access static files, but can not get the index of folders.
I have defined in settings:
STATIC_URL = '/static/'
Currently my URL code looks like:
urlpatterns += patterns('',
#...
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/static/', 'show_indexes' : True}),
)
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire