On Mon, May 24, 2010 at 5:08 AM, Reino <re...@oribium.se> wrote: > I am a newbee to Django. I recently installed Django om my Centos 5.4 > Linux box and created a projekt. Then I modified settings.py to suit > my needs, and modified Apache's config file. I created the databases > with default setting in setting.py and and created an application. It > worked fine. I then created a model and enabled the admin features by > uncommenting the admin lines in settings.py and urls.py. I then > created the databases expressed in the model.py. > > Django is installed in /usr/local/lib/python2.4/site-packages/django > > I got the following debug log: > > Any hints what is wrong? > > > ImportError at / > > No module named django_dns.urls > > Request Method: GET > Request URL: http://www.mydomain.com/managebind/ > Django Version: 1.2 > Exception Type: ImportError > Exception Value: > > No module named django_dns.urls > > Exception Location: /usr/local/lib/python2.4/site-packages/django/ > utils/importlib.py in import_module, line 35 > Python Executable: /usr/bin/python > Python Version: 2.4.3 > Python Path: ['/var/www/app/django', '/usr/local/lib/python2.4/site- > packages/django', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/ > lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/ > python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/ > python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/ > gtk-2.0', '/usr/local/lib/python2.4/site-packages'] > Server time: mån, 24 Maj 2010 10:43:12 +0200 > Traceback Switch to copy-and-paste view >
Note: It's far easier to read data pasted from the debug page if you switch to the copy-and-paste view before copying&pasting the data. What is django_dns? Is that your porject? Where is it located? The error is reporting that it (specifically, a urls.py file under it) cannot be found. Either the path to it is not included in the Python Path shown above, or Apache does not have the proper access rights to read it. Karen -- http://tracey.org/kmt/ -- 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.