On Sat, Jun 21, 2008 at 9:02 PM, foxbunny <[EMAIL PROTECTED]> wrote:

>
> Hi, list,
>
> I'm trying to deploy a very simple Django app, and it's driving me
> crazy. I've followed the docs and set up Apache with mod_python. Then
> I uploaded the app, did syncdb, and everything works when I ./
> manage.py runserver on the remote host, but httpd won't serve it. I'm
> using Django trunk rev 7722, and python 2.5.2 on Arch Linux,
> mod_python is 3.3.1, and Apache is 2.2.8.
>
> You can see the error messages if you go to:
>
> http://blog.papa-studio.com/
>
>
> The summary of error messages is this:
>
> > AttributeError: 'module' object has no attribute 'blog'
>
> I've made sure that /papastudio/blog has __init.py__, and that it's
> listed in INSTALLED_APPS (which is logical since the site actually
> works if I ./manage.py runserver).
>
> I've left the site in debug mode, so that I can see what's going on,
> but the errors are the same if I set debug to False.
>
>
> Any ideas?
>

I'm assuming you have papastudio.blog listed in INSTALLED_APPS?

Does apache have read access to the whole tree under  /papastudio, including
blog?  It seems apache can read /papastudio, otherwise you'd get an
'ImportError: No module named papastudio'.  Instead it can't find blog
underneath it, which might mean it doesn't have read access to the blog
subdirectory.  Or else it's looking in the wrong place, in which case it'll
help if you post where the code resides in the file system and the specifics
of how you have configured Apache.

Karen

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to