1 | """FirmaEventos URL Configuration |
---|
2 | |
---|
3 | The `urlpatterns` list routes URLs to views. For more information please see: |
---|
4 | https://docs.djangoproject.com/en/1.10/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. Import the include() function: from django.conf.urls import url, include |
---|
14 | 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) |
---|
15 | """ |
---|
16 | from django.conf.urls import url, include |
---|
17 | from django.views.static import serve |
---|
18 | from django.conf import settings |
---|
19 | from django.contrib import admin |
---|
20 | from django.contrib.auth.views import ( |
---|
21 | password_reset_confirm, password_reset_complete |
---|
22 | ) |
---|
23 | |
---|
24 | from users.forms import SetPasswordForm |
---|
25 | |
---|
26 | urlpatterns = [ |
---|
27 | url(r'^admin/', admin.site.urls), |
---|
28 | url(r'^captcha/', include('captcha.urls')), |
---|
29 | url(r'^sources/(?P<path>.*)$', serve, |
---|
30 | {'document_root': settings.MEDIA_ROOT}), |
---|
31 | url(r'^password/reset/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$', |
---|
32 | password_reset_confirm, |
---|
33 | {'template_name': 'users_confirm_reset.html', |
---|
34 | 'post_reset_redirect': '/user/password/done/', |
---|
35 | 'set_password_form': SetPasswordForm}, |
---|
36 | name='password_reset_confirm'), |
---|
37 | url(r'^password/done/$', password_reset_complete, |
---|
38 | {'template_name': 'users_pass_done.html'}), |
---|
39 | url(r'^', include('base.urls', namespace="base")), |
---|
40 | url(r'^', include('users.urls', namespace="users")), |
---|
41 | url(r'^', include('eventos.urls', namespace="events")), |
---|
42 | url(r'^', include('participantes.urls', namespace="participantes")), |
---|
43 | ] |
---|