2011-08-31 03:46:55 +00:00
|
|
|
from django.conf.urls.defaults import *
|
2011-10-03 16:36:04 +00:00
|
|
|
from frontend.forms import ProfileForm
|
2013-03-12 18:26:40 +00:00
|
|
|
from frontend.views import superlogin
|
2012-02-01 17:38:41 +00:00
|
|
|
from django.views.generic.simple import direct_to_template
|
2011-11-19 20:10:10 +00:00
|
|
|
from regluit.admin import admin_site
|
2012-03-27 17:41:41 +00:00
|
|
|
import notification.urls
|
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
|
|
|
|
2011-08-31 03:46:55 +00:00
|
|
|
urlpatterns = patterns('',
|
2013-03-12 18:26:40 +00:00
|
|
|
url(r'^accounts/activate/complete/$',superlogin,
|
2011-09-29 03:26:08 +00:00
|
|
|
{'template_name': 'registration/activation_complete.html'}),
|
2013-03-21 18:24:11 +00:00
|
|
|
url(r'^accounts/login/pledge/$',superlogin,
|
|
|
|
{'template_name': 'registration/from_pledge.html'}),
|
2013-03-29 15:50:07 +00:00
|
|
|
url(r'^accounts/login/add/$',superlogin,
|
|
|
|
{'template_name': 'registration/from_add.html'}),
|
2013-04-09 04:05:31 +00:00
|
|
|
url(r'^accounts/login-error/$',superlogin,
|
|
|
|
{'template_name': 'registration/from_error.html'}),
|
2011-10-03 16:36:04 +00:00
|
|
|
(r'^accounts/edit/$', 'regluit.frontend.views.edit_user'),
|
2011-09-04 04:21:51 +00:00
|
|
|
(r'^accounts/', include('registration.backends.default.urls')),
|
2013-03-27 19:02:52 +00:00
|
|
|
url('accounts/', include('email_change.urls')),
|
2012-02-01 17:38:41 +00:00
|
|
|
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,}
|
|
|
|
}),
|
2013-03-22 20:39:23 +00:00
|
|
|
(r'^socialauth/', include('social_auth.urls')),
|
2011-09-12 22:44:20 +00:00
|
|
|
(r'^api/', include('regluit.api.urls')),
|
2011-08-31 03:46:55 +00:00
|
|
|
(r'', include('regluit.frontend.urls')),
|
2011-11-18 14:22:21 +00:00
|
|
|
(r'', include('regluit.payment.urls')),
|
|
|
|
(r'^selectable/', include('selectable.urls')),
|
2011-11-19 20:10:10 +00:00
|
|
|
url(r'^admin/', include(admin_site.urls)),
|
2011-12-31 03:08:04 +00:00
|
|
|
(r'^comments/', include('django.contrib.comments.urls')),
|
2012-03-27 17:41:41 +00:00
|
|
|
(r'^notification/', include(notification.urls)),
|
2013-03-13 00:45:09 +00:00
|
|
|
|
2012-07-27 18:23:19 +00:00
|
|
|
(r'^ckeditor/', include('ckeditor.urls')),
|
2011-08-31 03:46:55 +00:00
|
|
|
)
|
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}),
|
|
|
|
)
|