Update on this: the problem was in sys.path: this must contain the
directory where the models.py file is located. So, progress.

BUT, now I get the error 'Import Error, could not import settings',
and for some reason it claims it can't find the mysite.settings
module. Again, I am stumped -- why would it fail to find that when it
clearly exists?


On Feb 6, 4:52 pm, Schmoopie <[EMAIL PROTECTED]> wrote:
> I looked into this. mysite.urls exists, no syntax errors, but it seems
> that when it tries to import from a models.py file, it goes looking
> for that file in a completely different directory, which in fact no
> longer exists. Weird.
>
> Is this an environment variable problem? Why would it go looking for
> the models file on some distant path?
>
> On Feb 5, 11:24 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]>
> wrote:
>
> > On 2/5/08, Schmoopie <[EMAIL PROTECTED]> wrote:
>
> > > Improperly configured
> > > Error while importing URLconf 'mysite.urls'
>
> > > but there is no explanation here as to what is wrong with the
> > > configuration. What could be causing this?
>
> > It probably means that your ROOT_URLCONF, `mysite.urls`, is missing or
> > has a syntax error. Try importing it from the shell:
>
> > $ ./manage.py shell
>
> > >>> import mysite.urls
>
> > And see what happens. That should show you the error.
>
> > Jacob
--~--~---------~--~----~------------~-------~--~----~
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