Hi, strange enough, I was having a similar problem as you just awhile
ago (w/ mod_wsgi).  The cause as I discovered was that if you have an
app inside your project, you'll have to include the project name
before any import statements.  So, for your case, chances are, there
may be references to books.views/books.urls/book.models that were
suppose to be mysite.book.views/mysite.book.urls/mysite.book.models.

Hope this help.

Aaron

On Aug 29, 4:53 am, cavebird <[EMAIL PROTECTED]> wrote:
> No :(
>
> I already tried that.
> same results.
>
> cavebird
>
> On Aug 29, 4:47 pm, Aaron <[EMAIL PROTECTED]> wrote:
>
> > Hi cavebird,
>
> > Not sure if this has anything to do with the symbolic link, but I
> > remember having some path issues on mod_python awhile back.  Try
> > copying mysite inside htdocs and see if that has any effects.
>
> > Aaron
>
> > On Aug 29, 4:32 am, cavebird <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > > I have been learning Django and came across thisproblem
> > > I am trying to access django apps fromapache2but it just wont work :
> > > (
> > > Here is what i did:
> > > added in /usr/local/apache2/conf/extra/httpd-info.conf:
> > > <Location "/mysite/">
> > >     SetHandler python-program
> > >     PythonHandler django.core.handlers.modpython
> > >     PythonPath "['/usr/local/apache2/htdocs/'] + sys.path"
> > >     SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> > >     SetEnv PYTHON_EGG_CACHE "/var/cache/www/pythoneggs"
> > >     PythonDebug Off
> > >     PythonAutoReload Off
>
> > > </Location>
>
> > > cd /usr/local/apache2/htdocs
> > > ln -s /home/user/workspace/gui/src/mysite mysite
>
> > > I started the server.
> > > it can access url.py because if i give mysite/rubbish it says The
> > > current URL, /mysite/rubbish/, didn't match any of these.
> > > it can access functions in mysite.views because mysite/time works
> > > fine.
> > > However it cannot access mysite.books.views as even the simplest
> > > functions returns nothing.
> > > Meanwhile python manage.py runserver works perfectly fine.
> > > Please help!!!
> > > Regards,
> > > cavebird
--~--~---------~--~----~------------~-------~--~----~
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