Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Django has a built-in server that we can use during development.
python manage.py runserver 0.0.0.0:8000
will run the server for Workspaces. On your own computer, you probably don't need the 0.0.0.0:8000
part.
python manage.py migrate
will apply all pending migrations from all apps. More on apps later.
What are migrations?
Migrations are a way of moving a database from one design, a specific set of tables and columns, to a new one. Migrations are reversible, too. The fact that they can be done backwards and forwards is what gives them their name.
You need to sign up for Treehouse in order to download course files.
Sign up