regluit/urls.py

57 lines
2.3 KiB
Python
Raw Normal View History

2013-06-03 16:31:39 +00:00
import notification.urls
from django.conf.urls.defaults import *
2013-06-03 16:31:39 +00:00
from django.views.generic.simple import direct_to_template
from frontend.forms import ProfileForm
from frontend.views import social_auth_reset_password
from libraryauth.views import superlogin
from regluit.admin import admin_site
2013-03-09 22:37:33 +00:00
from regluit.core.sitemaps import WorkSitemap, PublisherSitemap
sitemaps = {
'works': WorkSitemap,
'publishers': PublisherSitemap,
}
2011-11-18 15:41:10 +00:00
urlpatterns = patterns('',
url(r'^accounts/activate/complete/$',superlogin,
{'template_name': 'registration/activation_complete.html'}),
url(r'^accounts/login/pledge/$',superlogin,
{'template_name': 'registration/from_pledge.html'}),
2013-08-16 19:49:44 +00:00
url(r'^accounts/login/purchase/$',superlogin,
{'template_name': 'registration/from_purchase.html'}),
url(r'^accounts/login/add/$',superlogin,
{'template_name': 'registration/from_add.html'}),
url(r'^accounts/login-error/$',superlogin,
{'template_name': 'registration/from_error.html'}),
(r'^accounts/edit/$', 'regluit.frontend.views.edit_user'),
(r'^accounts/', include('registration.backends.default.urls')),
url('accounts/', include('email_change.urls')),
url(r"^accounts/login/welcome/$", direct_to_template,
2012-03-23 18:15:43 +00:00
{'template': 'registration/welcome.html',
'extra_context': {'suppress_search_box': True,}
}),
2013-03-19 14:33:57 +00:00
url(r"^accounts/superlogin/welcome/$", direct_to_template,
{'template': 'registration/welcome.html',
'extra_context': {'suppress_search_box': True,}
}),
url(r'^socialauth/reset_password/$', social_auth_reset_password, name="social_auth_reset_password"),
2013-03-22 20:39:23 +00:00
(r'^socialauth/', include('social_auth.urls')),
(r'^api/', include('regluit.api.urls')),
(r'', include('regluit.frontend.urls')),
(r'', include('regluit.payment.urls')),
(r'', include('regluit.libraryauth.urls')),
(r'^selectable/', include('selectable.urls')),
url(r'^admin/', include(admin_site.urls)),
2011-12-31 03:08:04 +00:00
(r'^comments/', include('django.contrib.comments.urls')),
(r'^notification/', include(notification.urls)),
(r'^ckeditor/', include('ckeditor.urls')),
)
2013-03-09 22:37:33 +00:00
urlpatterns += patterns('django.contrib.sitemaps.views',
(r'^sitemap\.xml$', 'index', {'sitemaps': sitemaps}),
(r'^sitemap-(?P<section>.+)\.xml$', 'sitemap', {'sitemaps': sitemaps}),
)