Django. After migrating mysql table, manage.py does not work
P粉764785924
P粉764785924 2024-02-04 09:42:38
0
1
518

I installed mysql as the database in the django project.

I did makemigration and migrated it to django.

Afterwards I wanted to try running the server, but even though I have python stored in my computer, python's manage.py doesn't work at all. python_version_in_cmd

I have a screenshot here and it doesn't show any response at all, but pip is responding. Django

This is my computer environment pathComputer environment path

mysql/python fails when I install mysql, is this the problem? Any tips?

P粉764785924
P粉764785924

reply all(1)
P粉966335669

What error occurs when running python manage.py runserver? Without knowing this, I can make some guesses.

  1. Make sure your model is set up correctly.
  2. After writing the model, you can run python manage.py makemigrations
  3. You then need to run python manage.py migrate to apply the model to the database.

Some guidance can be found here: https://www.geeksforgeeks.org/django-migrate-python/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template