#No module named django-admin

24 messages · Page 1 of 1 (latest)

river umbra
#

I recall this working in the past but it's not working now?

I input: py -m django-admin startproject mysite
and it returns No module named django-admin

#

No module named django-admin

wind bronze
#

try either django-admin or python -m django

river umbra
wind bronze
#

what list appears ?

river umbra
wind bronze
#

py -m django startproject mysite

river umbra
river umbra
wind bronze
#

I've never used python -m django-admin, I've always just used django-admin, so yet it may have changed if that was ever the case.

river umbra
river umbra
#

I hit another problem, it's on the same topic @wind bronze
py -m manage runserver returns No module named manage

The console reports: (ModuleNotFoundError: No module named 'manage'). Try using 'manage' instead of 'manage.py' as the module name. when trying that it returns No module named manage like I mentioned.

wind bronze
#

manage.py is in mysite folder, you no longer use -m, just py manage.py runserver

river umbra
river umbra
#

I have tried py manage.py makemigrations and cding into the directory @wind bronze

C:\Users\User\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'C:\\Users\\User\\Desktop\\pyPhone\\py_phone_call_manager\\calls\\manage.py': [Errno 2] No such file or directory```
wind bronze
#

I have a directory called calls I created via py -m django startproject mysite but it returns the above message. Would I be using the wrong command here?

you mean you created this via py manage.py startapp calls ?

river umbra
wind bronze
#

you need to place calls in settings.py in INSTALLED_APPS