On Mon, 2006-07-17 at 03:57 -0700, markguy wrote: > 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>
This isn't relevant for anything you subsequently posted. Are you just covering all bases or are you trying to work out a mod_python problem? Also, if you have cut-and-pasted here, then you have spelt the final directory "django_source" in the above, but "django_src" everywhere else in your email. You'd be amazed at how much that sort of typo can screw up your day. > .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. Do you mean it literally returns nothing, or it returns an error? If it returns nothing that means it worked. > > 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 It sounds like your URL configuration file is missing the "urlpatterns" variable. Is your urls.py file correctly set up? If your problem is just the final exception, check your URL configuration. If that isn't the only problem you're seeing, can you clarify? Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---