-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
22 lines (19 loc) · 788 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from ragendja.urlsauto import urlpatterns
from ragendja.auth.urls import urlpatterns as auth_patterns
from myapp.forms import UserRegistrationForm
from django.contrib import admin
admin.autodiscover()
handler500 = 'ragendja.views.server_error'
urlpatterns = auth_patterns + patterns('',
('^admin/(.*)', admin.site.root),
#(r'^$', 'django.views.generic.simple.direct_to_template',
#{'template': 'main.html'}),
(r'^$', include('callme.urls')),
(r'^callme/', include('callme.urls')),
# Override the default registration form
url(r'^account/register/$', 'registration.views.register',
kwargs={'form_class': UserRegistrationForm},
name='registration_register'),
) + urlpatterns