J
J
Jungles2020-09-10 21:51:14
Django
Jungles, 2020-09-10 21:51:14

Not an internal team?

After many mistakes, I came up with the correct way to write

C:\\\python38-32\\\django-admin.py startproject mysite

But how to make it so that you can simply write
django-admin.py startproject secondsite
Without error
"django-admin.py" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

Given that the interpreter and the path to the scripts in the path is?!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2020-09-10
@Jungles

Have you tried doing the same in a virtual environment? If not, then I recommend that you always use a virtual environment for projects, since Python has a built-in feature.
Here is the base - https://docs.python.org/3/library/venv.html
Here is how to activate it in windows - https://tyapk.ru/blog/post/python-virtual-environm...

W
wisgest, 2020-09-11
@wisgest

The .py extension must be associated with a Python interpreter. What do you have in the registry along the way HKEY_CLASSES_ROOT\.py? Or what does CMD.EXE return on the command line
assoc .py?

S
Saboteur, 2020-09-11
@saboteur_kiev

Add the directory C:\python38-32 to PATH
This is done in the properties
Properties of my computer - Advanced system settings - Environment variables
Or run
rundll32.exe sysdm.cpl,EditEnvironmentVariables from the command line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question