araddon / demisauce

demisauce, a suite of services to aid application development

This URL has Read+Write access

demisauce / demos / djangodemo / urls.py
100644 31 lines (22 sloc) 1.116 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from django.conf.urls.defaults import *
from django.conf import settings
 
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
 
 
urlpatterns = patterns('',
 
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
 
    # Example:
    # (r'^djangodemo/', include('djangodemo.foo.urls')),
 
    # Uncomment the next line to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    
    (r'^$', 'djangodemo.blog.views.index'),
    (r'^blog/$', 'djangodemo.blog.views.index'),
    (r'^blog/view/(?P<id>\d+)', 'djangodemo.blog.views.view'),
    (r'^status/cache/$', 'djangodemo.blog.memcached_status.view'),
    (r'^test/helloworld/(.*)', 'djangodemo.blog.helloworld.show'),
    (r'^service/helloworld/(.*)', 'djangodemo.blog.helloworld.view'),
    #(r'^handshake/initial/(.*)', 'djangodemo.blog.handshake.initial'),
    #(r'^handshake/reply/(.*)', 'djangodemo.blog.handshake.initial'),
 
    # Uncomment the next line for to enable the admin:
    (r'^admin/(.*)', admin.site.root),
)