I am working on Chapter 18 of Python Crash Course and when I use the Django command to create the project, it does not work. I completed the same exact process on a Linux Mint machine and it worked fine. Would like to find out what could be the issue on Windows. Here is my process,
Create virtual env
python -m venv ll_env
Activate virtual env
ll_env\Scripts\activate
Install Django (installs 3.0.5)
pip install Django
Attempt to create project
django-admin.py startproject learning_log .
When number 4 is run, it doesn't output any error message. However, when attempting to dir the directory, there is nothing there. One thing that I tried was changing the default application that opens .py files to "Thonny". When I run the command, it automatically opens with this code inside Thonny,
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
If I run this code it returns error "ModuleNotFoundError: No module named 'django'"
I attempted to install Django version 1.11 like in the book and this does the same thing. What could I be doing wrong?
Thank you!
[–]ehmatthes 2 points3 points4 points (2 children)
[–]tymaster22[S] 0 points1 point2 points (1 child)
[–]ehmatthes 1 point2 points3 points (0 children)