Wednesday, August 18, 2010

Re: can't import any of my libraries inside of my app folder

disregard, i didn't change my code, but my IDE did.

fyi: "python manage.py shell" actually showed me the exact error.

On Aug 18, 12:18 pm, Sector7B <joe.greenaw...@gmail.com> wrote:
> **Disclaimer i'm using Django for GAE, but i really think this is a
> Django thing**
>
> Last night i had a bunch of code working, did a commit went to bed.
> Got up this morning and started my django app and suddenly any library
> i try to import from myapp fails with something like this:
>
> "Could not import main_site.views.test. Error was: cannot import name
> Store"
>
> In the following mess it shows my Python Path including my working
> django project folder
> Python Path:    ['/Users/username/Documents/MyApp'...]
>
> my imports are like:
> from bagitlib import libform as lf
> from main_site.models import Store....
>
> bagitlib & main_site being folders under MyApp.
>
> I thought maybe i broke something, but i haven't changed the code, and
> the failure will happen at the very first import from MyApp, meaning
> if i move around the imports the fail message moves.
>
> these imports seem to work:
> from google.appengine.api import memcache
> from django.utils.datastructures import MultiValueDictKeyError
> import logging
>
> Thoughts?
>
> Thanks,
> joe

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate