Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 735 Bytes

File metadata and controls

24 lines (20 loc) · 735 Bytes

makemigrations & migrate (users & posts with 2 models each)

Back to home

(venv3.6.7) ➜  src git:(master) ✗ python manage.py makemigrations
Migrations for 'users':
  users/migrations/0001_initial.py
    - Create model Address
    - Create model User
Migrations for 'posts':
  posts/migrations/0001_initial.py
    - Create model Category
    - Create model Post
(venv3.6.7) ➜  src git:(master) ✗ python manage.py migrate       
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, posts, sessions, users
Running migrations:
  Applying users.0001_initial... OK
  Applying posts.0001_initial... OK
(venv3.6.7) ➜  src git:(master) ✗