-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
40 lines (35 loc) · 1.54 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
from django.conf.urls.defaults import patterns, include, url
from django.conf.urls.i18n import i18n_patterns
from django.conf import settings
from django.contrib import admin
from registration.backends.default.views import RegistrationView
from accounts.forms import UserProfileRegistrationForm
admin.autodiscover()
urlpatterns = i18n_patterns(
'',
url(r'^admin/', include(admin.site.urls)),
(r'^succesfully_loggged_out/$', 'django.views.generic.simple.direct_to_template',
{'template': 'registration/successfully_logged_out.html'}),
url(r'^', include('cms.urls')),
)
urlpatterns += patterns(
'',
url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to',
{'url': settings.STATIC_URL + 'img/favicon.ico'}),
url(r'^gallery/', include('imagestore.urls', namespace='imagestore')),
url(r'^store-locator/', include('store_locator.urls')),
url(r'^accounts/', include('django.contrib.auth.urls')),
url(r'^search/', include('haystack.urls')),
(r'^tinymce/', include('tinymce.urls')),
url(r'^accounts/register/$',
RegistrationView.as_view(form_class=UserProfileRegistrationForm),
name='registration_register'),
(r'^accounts/', include('registration.backends.default.urls')),
)
if settings.DEBUG:
urlpatterns = patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
url(r'^wix/', 'jellyrisk_site.views.whoosh_search_index'),
url(r'', include('django.contrib.staticfiles.urls')),
) + urlpatterns