Start New Discussion within our Software Development Community

hi all,

i just doing Django..tried the first example in Django book...i encountered problem at admin page. it says that admin is not defined. i followed each step in tutorial and i am able to run django server also. pls help me to solve it.
i am adding error output here.


Request Method: GET
Request URL:
Django Version: 1.2.3
Python Version: 2.7.0
Installed Applications:
Installed Middleware:

File "C:\Python27\lib\site-packages\django\core\handlers\" in get_response
91. request.path_info)
File "C:\Python27\lib\site-packages\django\core\" in resolve
215. for pattern in self.url_patterns:
File "C:\Python27\lib\site-packages\django\core\" in _get_url_patterns
244. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\Python27\lib\site-packages\django\core\" in _get_urlconf_module
239. self._urlconf_module = import_module(self.urlconf_name)
File "C:\Python27\lib\site-packages\django\utils\" in import_module
35. __import__(name)
File "C:\Users\Jeyashree\mysite\..\mysite\" in <module>
15. (r'^admin/', include(,

Exception Type: NameError at /admin/
Exception Value: name 'admin' is not defined

This article has been dead for over six months. Start a new discussion instead.