summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2011-03-19 20:55:24 +0200
committerYuval Adam <yuv.adm@gmail.com>2011-03-19 20:55:24 +0200
commitf41f244101bcda9414f8a7a1a8b400e4ace3a463 (patch)
tree22e46160898c56cbd5fae2e00059206f0ce21b3d /demo
parentc89a8cc0529a6125d8abd91f3702093d15ef893a (diff)
added base urls
Diffstat (limited to 'demo')
-rw-r--r--demo/urls.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/demo/urls.py b/demo/urls.py
index c732221..8879afc 100644
--- a/demo/urls.py
+++ b/demo/urls.py
@@ -1,16 +1,13 @@
from django.conf.urls.defaults import *
+from django.contrib import admin
+from django.http import HttpResponse
-# Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+admin.autodiscover()
urlpatterns = patterns('',
- # Example:
- # (r'^demo/', include('demo.foo.urls')),
-
- # Uncomment the admin/doc line below to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
- # Uncomment the next line to enable the admin:
- # (r'^admin/', include(admin.site.urls)),
+ (r'^$', lambda r: HttpResponse("demo base", mimetype="text/plain")),
+
+ (r'^fb/', include('fb.urls')),
+ (r'^admin/doc/', include('django.contrib.admindocs.urls')),
+ (r'^admin/', include(admin.site.urls)),
)