summaryrefslogtreecommitdiff
path: root/scipy/urls.py
diff options
context:
space:
mode:
authorhardythe12013-10-09 14:50:00 +0530
committerhardythe12013-10-09 14:50:00 +0530
commitc949dc9df3d57fa02a34d1eef7176436aefa23d9 (patch)
tree0cca1899f3f370f56321cdd379c4d3f6d467e1d7 /scipy/urls.py
downloadSciPy2013-c949dc9df3d57fa02a34d1eef7176436aefa23d9.tar.gz
SciPy2013-c949dc9df3d57fa02a34d1eef7176436aefa23d9.tar.bz2
SciPy2013-c949dc9df3d57fa02a34d1eef7176436aefa23d9.zip
Initializing repo with all the files
Diffstat (limited to 'scipy/urls.py')
-rw-r--r--scipy/urls.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/scipy/urls.py b/scipy/urls.py
new file mode 100644
index 0000000..6f7c247
--- /dev/null
+++ b/scipy/urls.py
@@ -0,0 +1,22 @@
+from django.conf.urls import patterns, include, url
+
+from django.contrib import admin
+admin.autodiscover()
+
+urlpatterns = patterns('',
+
+ # Website urls
+ url(r'^2013/', include('website.urls', namespace='website')),
+ url(r'^', include('website.urls', namespace='website')),
+ # Accounts urls
+ url(r'accounts/login/$', 'scipy.views.user_login'),
+ url(r'accounts/logout/$', 'scipy.views.user_logout'),
+ url(r'accounts/register/$', 'scipy.views.user_register'),
+ url(r'accounts/profile/$', 'scipy.views.user_profile'),
+ url(r'accounts/upload-document/$', 'scipy.views.upload_document', name='upload-document'),
+ # Reusing the admin password reset
+ url(r'accounts/password-change/$', 'django.contrib.auth.views.password_change', name='password_change'),
+ url(r'accounts/password-change/done/$', 'django.contrib.auth.views.password_change_done', name='password_change_done'),
+ # Uncomment the next line to enable the admin:
+ url(r'^admin/', include(admin.site.urls)),
+)