from django.conf.urls import patterns, include, url from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin from datos.views import * admin.autodiscover() urlpatterns = patterns('', url(r'^$',include('datos.urls', namespace='datos:acceder')), url(r'^datos/?', include('datos.urls', namespace='datos')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^perfil/(?P\d+)', perfil ), url(r'^perfil/chpasswd/done/?', 'django.contrib.auth.views.password_change_done',{'template_name':'password_change_done.html'}), url(r'^perfil/chpasswd/?', 'django.contrib.auth.views.password_change' ,{'template_name':'password_change_form.html'}), # Uncomment the next line to enable the admin: url(r'^caronte/', include(admin.site.urls)), ) if settings.DEBUG: urlpatterns += patterns('', url(r'^media/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT, }), )