On 9/11/06, Filipe <[EMAIL PROTECTED]> wrote:
>
> solved it! there was an error in urls.py
> I have an second urls.py inside the app dir and had to fix this:
>
> 'myapp.views.start'
>
> to this:
>
> 'myproject.myapp.views.start'
>
> seems like relative "paths" are relative to the project's base dir,
> instead of the scripts dir.
> Still don't understand why it works with the buildin server though...
>
This relates to the pythonpath. When you run the dev server you run
manage.py from the current directory. As the current directory is
included in the python path, then myapp is on the path. However, when
run through mod-python, unless you explicity add myapp to your
pythonpath, it won't work.

If you don't want to explicitly name the project from within your apps
(for more modular apps) then include each app in your path settings
for mod_python.


-- 
----
Waylan Limberg
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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