Source

django-template-project / source / urls.py

Full commit
from django.conf.urls.defaults import patterns, include, url
from django.conf import settings

from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),

    (r'', include('main.urls')),
)


# Adding debug-mappings
if settings.DEBUG:
    from django.conf.urls.static import static
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# Unregister
#from django.contrib.auth.models import User, Group
#admin.site.unregister(User)
#admin.site.unregister(Group)