summaryrefslogtreecommitdiff
path: root/Scipy2018/urls.py
diff options
context:
space:
mode:
authorPrashant S2018-08-23 17:40:00 +0530
committerGitHub2018-08-23 17:40:00 +0530
commitfd8043402a56fe47f47938b3874c93607616a20c (patch)
tree840a015b9bb62c4b7715212453f1235411f5efb1 /Scipy2018/urls.py
parent5fc9c374d7139d8364519a9f28f07be645d62eeb (diff)
parent83e14c33bae4ef1ad5e8546408caf7232e962c75 (diff)
downloadSciPy2018-master.tar.gz
SciPy2018-master.tar.bz2
SciPy2018-master.zip
Merge pull request #10 from FOSSEE/developmentHEADmaster
added new html files and views.
Diffstat (limited to 'Scipy2018/urls.py')
-rw-r--r--Scipy2018/urls.py23
1 files changed, 21 insertions, 2 deletions
diff --git a/Scipy2018/urls.py b/Scipy2018/urls.py
index 291cf38..053f934 100644
--- a/Scipy2018/urls.py
+++ b/Scipy2018/urls.py
@@ -14,9 +14,28 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
-from django.urls import include, path
+from django.urls import include, path, re_path
+from django.contrib.auth import views as auth_views
+
urlpatterns = [
- path('', include('website.urls')),
+ re_path(r'^', include('website.urls', namespace='website')),
+ re_path(r'^accounts/',
+ include(('django.contrib.auth.urls', 'auth'), namespace='auth')),
path('admin/', admin.site.urls),
+
+ re_path(r'^', include('social.apps.django_app.urls', namespace='social')),
+
+ re_path(r'^forgotpassword/$', auth_views.PasswordResetView.as_view(
+ template_name='registration/password_reset_form.html'), name="password_reset"),
+ re_path(r'^password_reset/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$', auth_views.PasswordResetConfirmView.as_view(
+ template_name='registration/password_reset_confirm.html'), name='password_reset_confirm'),
+ re_path(r'^password_reset/mail_sent/$', auth_views.PasswordResetDoneView.as_view(template_name='registration/password_reset_done.html'),
+ name='password_reset_done'),
+ re_path(r'^password_reset/complete/$', auth_views.PasswordResetCompleteView.as_view(template_name='registration/password_reset_complete.html'),
+ name='password_reset_complete'),
+ re_path(r'^changepassword/$', auth_views.PasswordChangeView.as_view(template_name='registration/password_change_form.html'),
+ name='password_change'),
+ re_path(r'^password_change/done/$', auth_views.PasswordChangeDoneView.as_view(template_name='registration/password_change_done.html'),
+ name='password_change_done'),
]