django
Ez a dokumentum egy előző változata!
Telepítés
pip install django
Új projekt
django-admin startproject projekt-neve
Re-generate migration
To merge existing migration files into one file:
- Remove django_migration records table (manually)
- Remove all migration files
- run
python manage.py migrate –fakecommand - run
python manage.py makemigrationscommand - run
python manage.py migrate –fake-initialcommand - run
python manage.py migrate contenttypescommand
and finally, for chacking if everything is just fine, run python manage.py migrate command.
Now, check django_migration table and make sure all new files added in this table
django.1645172434.txt.gz · Utolsó módosítás: 2022/02/18 08:20 szerkesztette: daevidt
