I have been struggling to get Django up and running. I used pip to install Django version 1.10.4 and I have been following the tutorial for the poll app. However, when I get to the
manage.py runserver
step, I get the following error:
"Couldn't import Django. Are you sure it's installed and" ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment"
Paths = zip, DLLS, lib, Python 3.5, lib\site-packages
django-admin is in Scripts, however I copied the exe to Python 3.5, which is the dir I ran:
django-admin startproject mysite
I ran the runserver command from Python3.5\mysite which contains manage.py
Honestly, I didn't use virtualenv because I just wanted to get up and running and I thought bypassing that step (for myself) would be the best route, but neither has worked. hah.
:Python 3.5.2\Scripts> pip install django
Collecting Django
Using cached Django-1.-10-4-py2.py3-none-any.whl
Successfully installed django-1.10.4
:Python 3.5.2\Scripts> django-admin startproject mysite
:Python 3.5.2\Scipts
Scripts is the only dir these commands work.
:Python 3.5.2\Scripts\mysite> manage.py runserver
"Couldn't import Django. Are you sure it's installed and" ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
Django dir and Django-1.10.4.distinfo is in Lib\site-packages and the django-admin files are in the Scripts dir...Even if I copy djano-admin.exe to one of the PYTHONPATHs, I have the same issues.
I have python 2.7x and python 3.5.2 installed, on two separate drives, but have not run into any other issues.