In settings.py I got media_url = '/media/' and static_url = '/static/'
In the urls.py I got:
(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT,'show_indexes': True}),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_ROOT,'show_indexes': True}),
When I try to open localhost/media/ django correctly loads images placed in the media direcotry. But when I try to go to /static/ I get the:
Request Method: GET
Request URL: localhost/static/
Directory indexes are not allowed here.
But, when in the setting.py
I change static_url = '/sssstatic/', then the localhost/static/ works fine.
What's the issue here?