I doesnt undestand where is the problem in this code :
The Application is :
Cit2
!------> Utente
I need to call the view Login in Utente so in the url i say :
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
(r'^/?$', login),
# Uncomment this for admin:
# (r'^admin/', include('django.contrib.admin.urls')),
)
I tried whit cit2.utente.view.login and other .. but Doesnt work..
Login view is :
# Create your views here.
from cit2 import views
def login:
html = "HI"
return HttpResponse(html)
Now whit : login .. say
NameError at / name 'login' is not defined Request Method: GET Request URL:
http://127.0.0.1:8000/ Exception Type: NameError Exception Value: name
'login' is not defined Exception Location: /home/tulap/cit2/../cit2/urls.py
in <module>, line 6 Python Executable: /usr/bin/python Python Version:
2.5.1
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---