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 admin.autodiscover() from diario.views import * urlpatterns = patterns('', # Examples: # url(r'^$', 'periodico.views.home', name='home'), # url(r'^periodico/', include('periodico.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^caronte/', include(admin.site.urls)), url(r'^$',include('diario.urls', namespace='diario:acceder')), url(r'^diario/?', include('diario.urls', namespace='diario')), 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'}), ) if settings.DEBUG: urlpatterns += patterns('', url(r'^media/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT, }), )