I have poked around looking for an answer to this and none of the
suggestions/fixes I found did the trick.

Ubuntu 6.06/Python
2.4.3/Apache2.0.55/mod_python3.1.4/mySQL5.0.22/Django0.95

Relevant bits to follow
httpd.conf:
<Location '/'>
        SetHandler      mod_python
        PythonHandler   django.core.handlers.modpython
        SetEnv          DJANGO_SETTINGS_MODULE          bbg.settings
        PythonPath      "['/home/mark/django_source/'] + sys.path"
        PythonDebug     On
</Location>

.bash_profile (although weirdly, I have to source this after I boot up
the box to be able to get them to echo):
export PATH=$PATH:$HOME/django_src/django/bin
export PYTHONPATH=$PYTHONPATH:$HOME/django_src:$HOME/django_projects

python shell:
>>import sys
>>sys.path

returns:
['', '/etc/apache2', '/home/mark/django_src',
'/home/mark/django_projects', '/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/local/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/HTMLgen',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/PIL',
'/usr/lib/python2.4/site-packages/cairo',
'/usr/lib/python2.4/site-packages/gst-0.10',
'/usr/lib/python2.4/site-packages/gtk-2.0']

>>import django
returns nothing.

I can run the server from ./manage.py runserver ... err, actually, I
can't. I could last night!
Request URL:    http://127.0.0.1:8000/
Exception Type: AttributeError
Exception Value:        'module' object has no attribute 'urlpatterns'
Exception Location:     /home/mark/django_src/django/core/urlresolvers.py
in resolve, line 145

Grr. In any case, would someone be willing to suggest what I might be
screwing up here? I would sincerely appreciate it.

Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to