Hi, The problems seems to be with the way you are using the view prefixes in the 'patterns' function in your urls.py Refer to: http://docs.djangoproject.com/en/dev/topics/http/urls/#the-view-prefix
You have used 'view' string twice. Thanks, Subhranath Chunder. On Tue, Apr 19, 2011 at 5:11 AM, Guevara <eguevara2...@gmail.com> wrote: > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.