1 | """sepai URL Configuration |
---|
2 | |
---|
3 | The `urlpatterns` list routes URLs to views. For more information please see: |
---|
4 | https://docs.djangoproject.com/en/1.8/topics/http/urls/ |
---|
5 | Examples: |
---|
6 | Function views |
---|
7 | 1. Add an import: from my_app import views |
---|
8 | 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') |
---|
9 | Class-based views |
---|
10 | 1. Add an import: from other_app.views import Home |
---|
11 | 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') |
---|
12 | Including another URLconf |
---|
13 | 1. Add an import: from blog import urls as blog_urls |
---|
14 | 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) |
---|
15 | """ |
---|
16 | from django.conf import settings |
---|
17 | from django.views.static import serve |
---|
18 | from django.conf.urls import include, url |
---|
19 | from django.contrib import admin |
---|
20 | from users.urls import urlpatterns_users |
---|
21 | from proyectos.urls import ( |
---|
22 | urlpatterns_projects, urlpatterns_utils_project, |
---|
23 | urlpatterns_carga_masiva |
---|
24 | ) |
---|
25 | from django.contrib.auth.views import ( |
---|
26 | password_reset_confirm, password_reset_complete |
---|
27 | ) |
---|
28 | from utils.urls import urlpatterns_autocomplete |
---|
29 | from django.contrib.auth.views import * |
---|
30 | from users.forms import SetPasswordForm |
---|
31 | |
---|
32 | urlparttners_utils_autocomplete = urlpatterns_autocomplete + \ |
---|
33 | urlpatterns_utils_project |
---|
34 | |
---|
35 | urlpatterns = [ |
---|
36 | url(r'^sources/(?P<path>.*)$', serve, |
---|
37 | {'document_root': settings.MEDIA_ROOT}), |
---|
38 | url(r'^admin/', include(admin.site.urls)), |
---|
39 | url(r'^', include(urlpatterns_users, namespace="users")), |
---|
40 | url(r'^proyectos/', include(urlpatterns_projects, namespace="projects")), |
---|
41 | url(r'^utils/', include(urlparttners_utils_autocomplete, |
---|
42 | namespace="utils")), |
---|
43 | url(r'^utils/carga/', include(urlpatterns_carga_masiva, |
---|
44 | namespace="utils_carga")), |
---|
45 | url(r'^user/password/reset/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$', |
---|
46 | password_reset_confirm, |
---|
47 | {'template_name': 'users/passwordresetconfirm.html', |
---|
48 | 'post_reset_redirect': '/user/password/done/', 'set_password_form':SetPasswordForm}, |
---|
49 | name='password_reset_confirm'), |
---|
50 | url(r'^user/password/done/$', password_reset_complete, |
---|
51 | {'template_name': 'users/passwordresetcomplete.html'}), |
---|
52 | url(r'^captcha/', include('captcha.urls')), |
---|
53 | ] |
---|