Hi everyone, I have begun my first Django app according to the instructions on the site (http://docs.djangoproject.com/en/1.2/intro/ tutorial02/). I've followed the instructions to activate the admin site, but the site doesn't seem to load correctly. This is the error I'm getting: "ImportError at /admin/ No module named model"
As you can see below I've added "django.contrib.admin" to my Installed_Apps; afterwards I ran "python manage.py syncdb". I've also uncommented the 3 lines in my urls.py file. I think it's unrelated (and if it is please ignore this), but just so you know, when I run "python" and then "import django" I have to first run "from django.conf import settings; settings.configure()" before I can run "from django.db import models". Since I'm not sure how much info I need to give, I'm posting the Traceback error below. I'm running RHEL 5. Does anyone have any ideas about why it might not be working? Do you need more information than what I've given? Thank you all so much in advance for whatever help you can offer!! ---------Begin Traceback------- Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.2.1 Python Version: 2.7.0 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'mysite.polls', 'django.contrib.admin'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/local/lib/python2.7/site-packages/Django-1.2.1-py2.7.egg/ django/core/handlers/base.py" in get_response 91. request.path_info) File "/usr/local/lib/python2.7/site-packages/Django-1.2.1-py2.7.egg/ django/core/urlresolvers.py" in resolve 214. for pattern in self.url_patterns: File "/usr/local/lib/python2.7/site-packages/Django-1.2.1-py2.7.egg/ django/core/urlresolvers.py" in _get_url_patterns 243. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python2.7/site-packages/Django-1.2.1-py2.7.egg/ django/core/urlresolvers.py" in _get_urlconf_module 238. self._urlconf_module = import_module(self.urlconf_name) File "/usr/local/lib/python2.7/site-packages/Django-1.2.1-py2.7.egg/ django/utils/importlib.py" in import_module 35. __import__(name) File "/home/myj02/mysite/../mysite/urls.py" in <module> 5. admin.autodiscover() File "/usr/local/lib/python2.7/site-packages/Django-1.2.1-py2.7.egg/ django/contrib/admin/__init__.py" in autodiscover 24. import_module('%s.admin' % app) File "/usr/local/lib/python2.7/site-packages/Django-1.2.1-py2.7.egg/ django/utils/importlib.py" in import_module 35. __import__(name) Exception Type: ImportError at /admin/ Exception Value: No module named model -- 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.