source: firmaeventos/FirmaEventos/urls.py @ 66158c7

Last change on this file since 66158c7 was 66158c7, checked in by rudmanmrrod <rudman22@…>, 6 years ago

Agregado paginador y listado de eventos

  • Property mode set to 100644
File size: 1.7 KB
Line 
1"""FirmaEventos URL Configuration
2
3The `urlpatterns` list routes URLs to views. For more information please see:
4    https://docs.djangoproject.com/en/1.10/topics/http/urls/
5Examples:
6Function views
7    1. Add an import:  from my_app import views
8    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
9Class-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')
12Including 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"""
16from django.conf.urls import url, include
17from django.views.static import serve
18from django.conf import settings
19from django.contrib import admin
20from django.contrib.auth.views import (
21    password_reset_confirm, password_reset_complete
22    )
23
24from users.forms import SetPasswordForm
25
26urlpatterns = [
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]
Note: See TracBrowser for help on using the repository browser.