Python/Django - cannot import my own models.py -
Python/Django - cannot import my own models.py -
this ridiculous. folders:
evista --manage.py --evista ----__init__.py ----settings.py ----urls.py ----wsgi.py --fms ----__init__.py ----models.py ----tests.py ----views.py ----features ------__init__.py ------funding.feature ------funding.py in funding.py have
from fms.models import * when run lettuce get:
importerror: no module named fms.models gonna have shoot myself.
just laughs set re-create of models.py in features folder ,
from models import * results in
importerror: settings cannot imported, because environment variable django_se ttings_module undefined. in manage.py have
if __name__ == "__main__": os.environ.setdefault("django_settings_module", "evista.settings")
i seem in business with:
from fms.models import * seems don't run lettuce django, have run:
python manage.py harvest from top folder contains manage.py of course.
python django import
Comments
Post a Comment