Hi Rajesh,
I tried import django in a Python shell and it didn't return any
errors. So, here is the full stack of the error page. Thanks for
your help:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/core/handlers/base.py" in get_response
68. callback, callback_args, callback_kwargs =
resolver.resolve(request.path)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/core/urlresolvers.py" in resolve
160. for pattern in self.urlconf_module.urlpatterns:
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/core/urlresolvers.py" in _get_urlconf_module
177. self._urlconf_module = __import__(self.urlconf_name, {}, {},
[''])
NameError at /admin/
name 'django' is not defined
Thanks again!
On Feb 1, 10:55 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Feb 1, 12:43 pm, djrocks <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I think there is a simple answer to this, but I was unable to find
> > it. While following along in the django book, i did the steps
> > necessary to activate the admin page, including uncommenting the admin
> > url in urls.py. But when I go tohttp://127.0.0.1:8000/admin/, I get
> > the following error:
>
> > NameError at /admin/
> > name 'django' is not defined
>
> It may be a Django installation or setup issue. It doesn't look like
> the module 'django' is in your PYTHONPATH. To confirm that, drop into
> a Python shell and do:
>
> import django
>
> If that fails, look at your PYTHONPATH and follow the Django
> installation docs once again. If that does work, include the full
> stack trace of the error page (be sure to set settings.DEBUG to True
> to get such a trace.)
>
> -Rajesh D
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---