19 lines
464 B
Python
19 lines
464 B
Python
|
from django.views.generic.simple import direct_to_template
|
||
|
from django.conf.urls.defaults import *
|
||
|
from django.contrib import admin
|
||
|
|
||
|
admin.autodiscover()
|
||
|
|
||
|
from views import home
|
||
|
|
||
|
|
||
|
urlpatterns = patterns('',
|
||
|
url(r'^admin/', include(admin.site.urls)),
|
||
|
url(r'^grappelli/', include('grappelli.urls')),
|
||
|
|
||
|
url(r'^404/$', direct_to_template, {'template': '404.html'}),
|
||
|
url(r'^500/$', direct_to_template, {'template': '500.html'}),
|
||
|
|
||
|
url(r'^$', home),
|
||
|
)
|