PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/urls.py

http://django-jchat.googlecode.com/
Python | 28 lines | 21 code | 4 blank | 3 comment | 0 complexity | 8624a0e5cd0e1f329ee049d81f18d17b MD5 | raw file
 1from django.conf.urls.defaults import *
 2import settings
 3
 4from views import index, simple, complex
 5
 6
 7# Uncomment the next two lines to enable the admin:
 8# from django.contrib import admin
 9# admin.autodiscover()
10
11urlpatterns = patterns('',
12    # Example:
13    # (r'^django_jchat/', include('django_jchat.foo.urls')),
14
15    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
16    # to INSTALLED_APPS to enable admin documentation:
17    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
18
19    # Uncomment the next line to enable the admin:
20    # (r'^admin/(.*)', admin.site.root),
21    (r'^$', index),
22    (r'^simple$', simple),
23    (r'^complex/(?P<id>\d)$', complex),
24    (r'^chat/', include('jchat.urls')),
25    (r'^accounts/login/', 'django.contrib.auth.views.login', {'template_name':'login.html'}),
26    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
27        {'document_root': settings.MEDIA_ROOT}),
28)