On Mar 1, 11:51 am, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> I got a bit lost on what paths changed where - post your PYTHONPATH,
> DJANGO_SETTINGS_MODULE, and the path to where your code is and it should
> become more clear.
>
> -joe
>
> On 2/28/07, CosyGlow42 <[EMAIL PROTECTED]> wrote:
>
> Here's my path's, as stated after making all other modifications:

PYTHONPATH = c:\temp\;c:\temp\mysite,
DJANGO_SETTINGS_MODULE = mysite.settings
System PATH = ....c:\temp;c:\temp\mysite (at the end of the line)

Thanks


>
>
>
> > I'm a newbie to the Django/Python world and are looking for answers to
> > a problem when Importing models from an app. I've already looked at
> > all advice given by the experts helping others in this group and
> > nothing worked. I've also worked through the Django documentation
> > multiple times.
>
> > My Interactive Python import worked perfectly until I've checked out
> > (with svn) a complete "Registration" app into the directory I've
> > created for my first app. My appliction directory has changed as
> > such:
>
> > Before:
> > C:\temp\mysite\tst  - this is my first directory which worked in the
> > beginning. Then I've added the registration app which is: C:\temp
> > \mysite\registration.
>
> > After:
> > This app was placed before the \tst\ app (alphabetically, as usual). C:
> > \temp\mysite\registration and then \tst\ under it. This is correct and
> > shouldn't be a problem.
>
> > I added the new app in my settings.py file under the 'INSTALL_APP = ('
> > setting.
> > The SYNCDB command created all modules beautifully in my DB for the
> > new app (registration)  and I also added the provided url into my root
> > URLconf. Everything to the book.
>
> > I think my problem is that Django and/or Python get confused when the
> > registration app is added. Maybe this is corrupting the path to my TST
> > app,  I don't know. I've also removed all PYTHONPATH entries, SYSPATH
> > entries and DJANGO_SETTINGS_MODULE entries related to my apps,
> > rebooted, re-added them all again, rebooted, started the server
> > (Python manage.py runserver) and retried the Interactive import again,
> > but no luck.
>
> > Why can't I import the individual models from either of the apps in
> > Python Interactive mode? I haven't tried running my apps in Windows
> > Explorer windows yet, but believe it won't work there either.
>
> > What am I doing wrong or am I missing something somewhere?
>
> > Thanks in advance.
>
> > CosyGlow42- Hide quoted text -
>
> - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
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