I'm new to django. so I need your help. I am having a problem, my css and jpgs are missing. I read this tutorial Managing static files. But found no luck. Can any one help me?? thanks
setting.py
STATIC_ROOT = 'C:/Users/khalsa/projects/template2/static'
STATIC_URL = '/static/'
INSTALLED_APPS = (
'django.contrib.staticfiles',
)
URL setting
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.STATIC_ROOT,
}),
)
Image Path
<img src="{{ STATIC_URL }}images/11.jpg" alt="image" />