-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathurls.py
76 lines (62 loc) · 2.85 KB
/
urls.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from django.views.generic.simple import direct_to_template
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic import TemplateView
from userena import views as userena_views
from callforme import forms as callforme_forms
from callforme import views as callforme_views
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
message = """
This is a test.
"""
urlpatterns = patterns('',
# Examples:
#
#url(r'^$', 'callforme.views.home', name='home'),
url(r'^$', direct_to_template,
{'template': 'index.html'}, name='home'),
url(r'^contacts/new/$', 'callforme.views.add_contact', name="add-contact"),
url(r'^contacts/(?P<contact_id>\d+)/$', 'callforme.views.contact_detail', name="contact-detail"),
url(r'^contacts/$', 'callforme.views.contacts', name='contacts'),
url(r'^contacts/(?P<contact_id>\d+)/delete/$', 'callforme.views.contact_delete', name='contact-delete'),
# url(r'^promo/$',
# direct_to_template,
# {'template': 'promo.html'},
# name='promo'),
# url(r'^hubbing/', include('hubbing.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
# url(r'^$', 'django_twilio.views.say', {'text': message}),
#Deactivating next block til site is finished
url(r'^testsms/$', 'callforme.views.testsms'),
url(r'^sms/$', 'callforme.views.twilio_sms'),
url(r'^call/$', 'callforme.views.twilio_call', name="call"),
url(r'^verify\-phone/$', 'callforme.views.twilio_verify'),
url(r'^twiml\-response/$', 'callforme.views.twiml_response'),
url(r'^twiml\-connect/$', 'callforme.views.twiml_connect'),
# from https://github.com/bread-and-pepper/django-userena/issues/83#issuecomment-1733415
url(r'^accounts/signup/$',
userena_views.signup,
{'signup_form': callforme_forms.SignupFormCustomized}),
# account stuff using userena
url(r'^accounts/', include('userena.urls')),
url(r'^messages/', include('userena.contrib.umessages.urls')),
url(r'^i18n/', include('django.conf.urls.i18n')),
url(r'^about/', direct_to_template,
{'template': 'about.html'}),
url(r'^contact/', direct_to_template,
{'template': 'contact.html'}),
# url(r'^$', 'django_twilio.views.conference', {
# 'name': 'conf1',
# 'wait_url': 'http://twimlets.com/holdmusic?Bucket=com.twilio.music.rock',
# 'wait_method': 'GET',
# }),
)
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^site_media/(?P<path>.*)$',
'django.views.static.serve',
{'document_root': 'static'}))