[Answer]-From django.db import models returns No module named mywebsite.settings

1👍

You can either run python manage.py runserver from the same directory as your settings.py (that is mywebsite), or you should export PYTHONPATH to have mywebsite.settings in the path by export PYTHONPATH=$PYTHONPATH:<path_to_mywebsite> (for a unix system)

For windows take a look at how to add to pythonpath in windows

👤Sid

Leave a comment