# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib.auth.decorators import login_required from users.views import UserProfileView, CustomRegistrationView urlpatterns = patterns( '', # url(r'^profile/', login_required(UserProfileView.as_view()), name='profile'), url(r'^register/$', CustomRegistrationView.as_view(), name='registration_register'), url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}), )
urlpatterns = [ path('api/stats/', include('stats.urls')), path('admin/', admin.site.urls), re_path( r'^api/rest-auth/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)' r'/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', PasswordResetConfirmView.as_view(), name='password_reset_confirm' ), path('api/accounts/profile/', TemplateView.as_view(template_name='users/profile.html')), path('api/accounts/', include('allauth.urls')), path('api/rest-auth/registration/', CustomRegistrationView.as_view(), name='custom_registration'), path( 'api/rest-auth/registration-confirm/<int:user_id>/<str:confirm_code>/', CustomRegistrationConfirmView.as_view(), name='custom_registration_confirm', ), path('api/rest-auth/refresh-token/', RefreshTokenView.as_view(), name='refresh_token'), # path('api/rest-auth/registration/', include('rest_auth.registration.urls')), path('api/rest-auth/', include('rest_auth.urls')), path('api/users/', include('users.urls')), path('api/payment/', include(('payment_system.urls', 'payment_system'), namespace='payment_system')), path('api/landing_mail/', LandingMailView.as_view(), name='landing_mail'),