When I run
python manage.py runserver
I get this error
File \"/usr/local/lib/python2.7/dist-packages/Django-1.10.1-py2.7.egg/django
TO ANY WINDOWS USERS:
I got the same error while creating my first django project. I couldn't use sudo on windows, so the command python manage.py runserver only worked when I ran my terminal as administrator.
Just remove the first db in your settings.py file.
You have os.path.join(BASE_DIR, 'db/db.sqlite3') if you remove the first db, you'll have os.path.join(BASE_DIR, 'db.sqlite3')
Your database settings will be
DATABASES = {
'default': dj_database_url.config(
default="sqlite:///{}".format(
os.path.join(BASE_DIR, 'db.sqlite3')
)
)
}