Skip to content

ImportError: No module named 'example' #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ohmeow opened this issue Apr 16, 2014 · 5 comments
Closed

ImportError: No module named 'example' #5

ohmeow opened this issue Apr 16, 2014 · 5 comments

Comments

@ohmeow
Copy link

ohmeow commented Apr 16, 2014

When running: " make create_database; make make_fixtures"

I get an ImportError:

DJANGO_SETTINGS_MODULE='example.settings' ./scripts/create_users.py
Traceback (most recent call last):
File "./scripts/create_users.py", line 3, in
from example.api.models import User
ImportError: No module named 'example'

Using Python 3.3.5 but not sure how to structure the make file so it correctly sees the "example" module.

@kevinastone
Copy link
Owner

Did you run python setup.py develop? That installs the example package in your python path.

@ohmeow
Copy link
Author

ohmeow commented Apr 16, 2014

ah ... that was it. Should have realized this, but it should probably be added to the instructions anyhow. Thanks

@kevinastone
Copy link
Owner

It's in the install instructions, but it's easy to miss...

@ohmeow
Copy link
Author

ohmeow commented Apr 16, 2014

yah i see it now ... sorry about that. all is well. good stuff.

@alonyb
Copy link

alonyb commented Jun 16, 2016

Hi, when i try add a post from angular(http://127.0.0.1:8000/editor) i get a error on linux console(django server):
"POST /api/posts HTTP/1.1" 403 58, can you help me? And on angular alert is displayed in red that says 'detail', thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants