'How to run Django in Python?
I am trying to install django in python. This is my code.
conda create -n djangoenv python=3.8.5 anaconda
conda activate djangoenv
conda install -c anaconda django
django-admin startproject website
python manage.py runserver
when I run the last line of code I get the following error
python: can't open file 'manage.py': [Errno 2] No such file or directory
I am trying this code
(djangoenv) C:\Users\Action>django_project\manage.py
and this code
(djangoenv) C:\Users\Action>djanago_project\manage.py runserver
Both codes are opening the script file, but are not running the Django and giving me the URL
Does anyone have any suggestions to amend the code?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|