24/03/2015, 13:44
|
| | | Fecha de Ingreso: marzo-2015
Mensajes: 23
Antigüedad: 9 años, 9 meses Puntos: 0 | |
Respuesta: 'module' object has no attribute 'autodiscover' Claro que sí:
Código:
from django.conf.urls import patterns, include, url
from Catalogos import views
from django.contrib import admin
from django.conf import settings
from Login.views import *
#admin.autodiscover()
class Error404(TemplateView):
template_name = '404.html'
class Tree(TemplateView):
template_name = 'tree.html'
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'BancoTiempo.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
#url(r'^$',Index.as_view(), name='index'),
#url(r'^caronte/', include(admin.site.urls)),
url(r'^error-404/', Error404.as_view(), name='error-404'),
url(r'^tree/', Tree.as_view(), name='actividades'),
url(r'^catalogos/', include('Catalogos.urls',namespace='catalogos')),
url(r'^mesa/', include('Mesa.urls',namespace='mesa')),
url(r'^inscripcion/', include('Inscripciones.urls',namespace='inscripcion')),
url(r'^examen/', include('examen.urls',namespace='examen')),
url(r'^', include('Login.urls',namespace='login')),
url(r'^accounts',include('Login.urls',namespace ='inicio')),
url(r'^webservice/',include('webservice.urls',namespace ='inicio')),
)
if settings.DEBUG:
# static files (images, css, javascript, etc.)
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT}))
Este es mi url.py |