#encoding:utf-8 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 oficios.views import * urlpatterns = patterns('', # Examples: # url(r'^$', 'Hermes.views.home', name='home'), # url(r'^Hermes/', include('Hermes.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)), # Registration... url(r'^login/$', 'django.contrib.auth.views.login', name = 'login'), url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name = 'logout'), # Root url(r'^$', graficar, name = 'inicio'), # Directorio url(r'^directorio/', include('directorio.urls')), # Oficios url(r'^oficios/', include('oficios.urls', namespace='oficios')), # Perfil url(r'^perfil/(?P\d+)', perfil), url(r'^perfil/chpasswd/done/?', 'django.contrib.auth.views.password_change_done'), url(r'^perfil/chpasswd/?', 'django.contrib.auth.views.password_change', name = 'profile-chpasswd'), ) if settings.DEBUG: urlpatterns += patterns('', url(r'^media/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT, }), )