Import error No module named urls to url login_in in html page
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!!
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home