Django – Useful Commands

by | Jan 2, 2019 is created in each Django project. Here are some useful commands to have at your fingertips.

  • runserver
    This launches the webserver.
  • startapp “application name”
    This creates a new application.
  • check
    This checks your Django project for common issues.
  • makemigrations
    This creates the database migrations that will need to be run.
  • sqlmigrate eg sqlmigrate polls 0001. This shows the SQL that will be run, but doesn’t actually run it.
  • migrate
    This performs the database migrations.