Hi Michael,

Thanks for your suggestion.
I´ve added the whole project to the PYTHONPATH under
project->properties->PYTHONPATH->Add source folder
And now it works!


I had to solve an additional error, the app couldn´t find my
"templates" dir.

When running the server on eclipse, it threw an error
"TemplateDoesNotExist at /".
It was trying to take the template from "c:\eclipse\templates
\temp.html"
So I changed the settings variable template_dirs from "templates/", to
'E:/dev/nav/pr1/templates/'
Don´t know why the relative didn´t work.

Anyway, this is now working.

For future reference, if anyone has this problem, check also if your
manage.py it´s on the root folder, not on the src.

Thanks again for your help.

Pablo Solera


On Dec 15, 9:38 pm, Michael K <mk...@arikel.net> wrote:
> On Dec 15, 3:18 pm, Pablo Solera <pablo.sole...@gmail.com> wrote:
>
> > When I try to run the same server from eclipse, it seems that
> > something is not correct.
> > I got the error: ImportError at / "No module named urls"
> > I do have the urls.py on my application, and averything works fine out
> > of eclipse.
>
> > Could it be a PATH problem? How could I debug it?
>
> Did you add your project path to the PYTHONPATH environment variable
> in your Run profile?  That's what the problem sounds like - Eclipse's
> environment doesn't know to tell Python that your Django project needs
> to be in the PYTHONPATH.
>
> --
> Michael

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to