i'm having some problem with my django website. Everything runs good but when i switch the debug mode to false, the admin panel has no more style(css). Can someone explain why? Sorry if the question is so short.
this is my main urls.py file:
from django.conf.urls.defaults import patterns, url, include, handler500, handler404
from django.conf import settings 
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
    url(r'^aste/', include('aste.urls',namespace="aste")),
    url(r'^', include('utenti.urls',namespace="utenti")),
    url(r'^forum/', include('forum.urls',namespace="forum")),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.MEDIA_ROOT,
        }),    
)
 
    