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'}),
|
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')),
|
2011-09-06 01:04:49 +00:00
|
|
|
(r'^socialauth/', include('social_auth.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,}
|
|
|
|
}),
|
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)),
|
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}),
|
|
|
|
)
|