blob: 4c67ff230d09f1e7505060d7da98ea982b58f697 [file] [log] [blame]
Joe Gregorioe48a4912010-09-27 15:05:36 -04001import os
2from django.conf.urls.defaults import *
3
4# Uncomment the next two lines to enable the admin:
5from django.contrib import admin
6admin.autodiscover()
7
8urlpatterns = patterns('',
9 # Example:
Joe Gregorioc4fc0952011-11-09 12:21:11 -050010 (r'^$', 'django_sample.plus.views.index'),
11 (r'^oauth2callback', 'django_sample.plus.views.auth_return'),
Joe Gregorioe48a4912010-09-27 15:05:36 -040012
13 # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
14 # to INSTALLED_APPS to enable admin documentation:
15 # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
16
17 # Uncomment the next line to enable the admin:
18 (r'^admin/', include(admin.site.urls)),
19 (r'^accounts/login/$', 'django.contrib.auth.views.login',
Joe Gregorioc4fc0952011-11-09 12:21:11 -050020 {'template_name': 'plus/login.html'}),
Joe Gregorioe48a4912010-09-27 15:05:36 -040021
22 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
23 {'document_root': os.path.join(os.path.dirname(__file__), 'static')
24}),
25)