|
@@ -1,5 +1,7 @@
|
|
|
from django.conf.urls import include, url
|
|
|
+
|
|
|
from misago.core.views import home_redirect
|
|
|
+
|
|
|
from ..views import activation, auth, avatarserver, forgottenpassword, lists, options, profile
|
|
|
|
|
|
|
|
@@ -9,8 +11,8 @@ urlpatterns = [
|
|
|
url(r'^login/$', auth.login, name='login'),
|
|
|
url(r'^logout/$', auth.logout, name='logout'),
|
|
|
|
|
|
- url(r'^request-activation/$', activation.request_activation, name="request-activation"),
|
|
|
- url(r'^activation/(?P<pk>\d+)/(?P<token>[a-zA-Z0-9]+)/$', activation.activate_by_token, name="activate-by-token"),
|
|
|
+ url(r'^request-activation/$', activation.request_activation, name='request-activation'),
|
|
|
+ url(r'^activation/(?P<pk>\d+)/(?P<token>[a-zA-Z0-9]+)/$', activation.activate_by_token, name='activate-by-token'),
|
|
|
|
|
|
url(r'^forgotten-password/$', forgottenpassword.request_reset, name='forgotten-password'),
|
|
|
url(r'^forgotten-password/(?P<pk>\d+)/(?P<token>[a-zA-Z0-9]+)/$', forgottenpassword.reset_password_form, name='forgotten-password-change-form'),
|
|
@@ -32,31 +34,31 @@ urlpatterns += [
|
|
|
|
|
|
urlpatterns += [
|
|
|
url(r'^users/', include([
|
|
|
- url(r'^$', lists.landing, name="users"),
|
|
|
- url(r'^active-posters/$', lists.active_posters, name="users-active-posters"),
|
|
|
- url(r'^(?P<slug>[-a-zA-Z0-9]+)/$', lists.rank, name="users-rank"),
|
|
|
- url(r'^(?P<slug>[-a-zA-Z0-9]+)/(?P<page>\d+)/$', lists.rank, name="users-rank"),
|
|
|
+ url(r'^$', lists.landing, name='users'),
|
|
|
+ url(r'^active-posters/$', lists.active_posters, name='users-active-posters'),
|
|
|
+ url(r'^(?P<slug>[-a-zA-Z0-9]+)/$', lists.rank, name='users-rank'),
|
|
|
+ url(r'^(?P<slug>[-a-zA-Z0-9]+)/(?P<page>\d+)/$', lists.rank, name='users-rank'),
|
|
|
]))
|
|
|
]
|
|
|
|
|
|
|
|
|
urlpatterns += [
|
|
|
url(r'^user/(?P<slug>[a-zA-Z0-9]+)-(?P<pk>\d+)/', include([
|
|
|
- url(r'^$', profile.landing, name="user"),
|
|
|
- url(r'^posts/$', profile.posts, name="user-posts"),
|
|
|
- url(r'^threads/$', profile.threads, name="user-threads"),
|
|
|
- url(r'^followers/$', profile.followers, name="user-followers"),
|
|
|
- url(r'^follows/$', profile.follows, name="user-follows"),
|
|
|
- url(r'^username-history/$', profile.username_history, name="username-history"),
|
|
|
- url(r'^ban-details/$', profile.user_ban, name="user-ban"),
|
|
|
+ url(r'^$', profile.landing, name='user'),
|
|
|
+ url(r'^posts/$', profile.posts, name='user-posts'),
|
|
|
+ url(r'^threads/$', profile.threads, name='user-threads'),
|
|
|
+ url(r'^followers/$', profile.followers, name='user-followers'),
|
|
|
+ url(r'^follows/$', profile.follows, name='user-follows'),
|
|
|
+ url(r'^username-history/$', profile.username_history, name='username-history'),
|
|
|
+ url(r'^ban-details/$', profile.user_ban, name='user-ban'),
|
|
|
]))
|
|
|
]
|
|
|
|
|
|
|
|
|
urlpatterns += [
|
|
|
url(r'^user-avatar/', include([
|
|
|
- url(r'^(?P<hash>[a-f0-9]+)/(?P<size>\d+)/(?P<pk>\d+)\.png$', avatarserver.serve_user_avatar, name="user-avatar"),
|
|
|
- url(r'^(?P<secret>[a-f0-9]+):(?P<hash>[a-f0-9]+)/(?P<pk>\d+)\.png$', avatarserver.serve_user_avatar_source, name="user-avatar-source"),
|
|
|
- url(r'^(?P<size>\d+)\.png$', avatarserver.serve_blank_avatar, name="blank-avatar"),
|
|
|
+ url(r'^(?P<hash>[a-f0-9]+)/(?P<size>\d+)/(?P<pk>\d+)\.png$', avatarserver.serve_user_avatar, name='user-avatar'),
|
|
|
+ url(r'^(?P<secret>[a-f0-9]+):(?P<hash>[a-f0-9]+)/(?P<pk>\d+)\.png$', avatarserver.serve_user_avatar_source, name='user-avatar-source'),
|
|
|
+ url(r'^(?P<size>\d+)\.png$', avatarserver.serve_blank_avatar, name='blank-avatar'),
|
|
|
]))
|
|
|
]
|