]> git.sommitrealweird.co.uk Git - eatslugs.git/blob - eatslugs/urls.py
8597968285bfcf2c85407b288303d234e0879476
[eatslugs.git] / eatslugs / urls.py
1 from django.conf.urls.defaults import *
2 from django.views.generic.simple import direct_to_template
3 from django.views.static import serve
4 from django.conf import settings
5
6 # Uncomment the next two lines to enable the admin:
7 from django.contrib import admin
8 admin.autodiscover()
9
10 urlpatterns = patterns('',
11     # Example:
12     # (r'^recipes/', include('recipes.urls')),
13     (r'^$', direct_to_template, {"template": 'main_index.html'},),
14     (r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT, 'show_indexes': False}),
15     (r'^admin/(.*)', admin.site.root),
16 )