#No module named django-admin
24 messages · Page 1 of 1 (latest)
try either django-admin or python -m django
I have tried both. The results are they don't work.
When I type: py -m django the list appears.
When I type: py -m django --version the version appears.
what list appears ?
I'll send you a direct message with the picture (I can't send them here). Overall it's a list of commands.
py -m django startproject mysite
That did it.
A folder was created all my site
Thanks,
I recall 2 years ago django-admin working did something change?
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.
Aaa, I knew I wasn't crazy. 
I never once thought of removing the admin portion.
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.
manage.py is in mysite folder, you no longer use -m, just py manage.py runserver
Aaa, that worked !
@wind bronze I'm running this:
py manage.py makemigrations calls
It returns the following message: No installed app with label 'calls'.
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?
The folder name is calls
The folder even includes a: migrations folder.
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```
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 ?
Yes, that.
It's the one you mentioned above.
you need to place calls in settings.py in INSTALLED_APPS
I suggest you follow the official tutorial, it seems what you're following isn't guiding you correctly.