Hi all, I created a simple login form
My code: <form method="post" action="/login/" ENCTYPE="multipart/form-data" dojoType="dijit.form.Form" >{% csrf_token %} username <input> password <input type="password"> <button> login <input type="submit" value="Submit"> </form> In views.py i added def login(request): return render_to_response('login.html') In urls.py i added (r'^login/', include('macrohms.views.login')), The Error when i press login button: ImportError at /login/ No module named login Request Method: POST Request URL: http://localhost:8000/login/ Django Version: 1.2.3 Exception Type: ImportError Exception Value: No module named login Exception Location: /home/saad/www/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/utils/importlib.py in import_module, line 35 Python Executable: /home/saad/www/bin/python Python Version: 2.6.5 Python Path: ['/home/saad/www/webapps/macrohms', '/home/saad/www/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/home/saad/www/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg', '/home/saad/www/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg', '/home/saad/www/lib/python2.6/site-packages/Coffin-0.3.3-py2.6.egg', '/home/saad/www/lib/python2.6/site-packages/Jinja2-2.5.2-py2.6.egg', '/home/saad/www/lib/python2.6/site-packages/WTForms-0.6.1-py2.6.egg', '/home/saad/www/lib/python2.6', '/home/saad/www/lib/python2.6/plat-linux2', '/home/saad/www/lib/python2.6/lib-tk', '/home/saad/www/lib/python2.6/lib-old', '/home/saad/www/lib/python2.6/lib-dynload', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/home/saad/www/lib/python2.6/site-packages'] Server time: Tue, 28 Sep 2010 23:40:56 -0500 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.