Guevara
unread,Apr 18, 2011, 7:41:54 PM4/18/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hello!!
I am getting the following error on my index.html page:
Exception Type: TemplateSyntaxError
Exception Value:
Caught ImportError while rendering: No module named urls
In this line:
<a href="{% url login_in %}">Login</a>
My urls.py:
(r'^imobiliaria/', include('auth.urls')),
In my auth app, i have this:
urlpatterns = patterns('auth.views',
url(r'^$', views.index, name="index"), <-- this is index page
url(r'^accounts/login/$', views.login_in, name="login_in"), <--
this is login page
url(r'^logout/$', views.logout_view, name="logout_view"),
url(r'^register/$', views.register, name="register"),
url(r'^home/$', views.home, name="home"),
)
My view to render index.html is:
def index(request):
return render_to_response('imobiliaria/auth/index.html')
In my settings.py i have this:
AUTH_PROFILE_MODULE = 'imobiliaria.imobiliaria'
LOGIN_URL = '/imobiliaria/accounts/login/'
INSTALLED_APPS = (
'imobiliaria.auth',
)
ROOT_URLCONF = 'imobiliaria.urls'
Anyone know where the problem might be?
Thanks!!