Django Import Error with URLS and ROOT_URLCONF confusion
Posted
by tipu
on Stack Overflow
See other posts from Stack Overflow
or by tipu
Published on 2010-05-22T13:08:07Z
Indexed on
2010/05/22
13:20 UTC
Read the original article
Hit count: 195
The error can be seen here: http://djaffry.selfip.com:8080/
In httpd conf,
<VirtualHost *:8080>
ServerName tweet_search_engine
DocumentRoot /var/www/microblogsearchengine/twingle
</VirtualHost>
<Directory /var/www/microblogsearchengine/twingle>
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonOption django.root /var/www/microbloggingsearchengine/twingle
PythonDebug On
</Directory>
Running python manage.py runserver
and visiting localhost:8000 returns a splash page telling me everything is okay. However when I visit this site through apache, I get an import error with urls.
In my settings.py file I have a line,
ROOT_URLCONF = 'twingle.urls'
I'm assuming this is the cause of the error. The project folder contains only 4 files:
__init__.py manage.py settings.py urls.py
I tried replacing twingle.urls
with urls.py
but then it gave me a different error. What is it I can do to get this working?
© Stack Overflow or respective owner