Getting the project up and running

As always, once you have downloaded the code drop, unzip it. Then, create a new virtual environment for this project and install Django. Finally, activate it and run the migrate command from in the project root. This should set up the database for the project and get you to a point where you can start the application. Now you need to create a new super user so that you can add some test data. From within the project root (with the virtual environment active), run the following command:

> python manage.py createsuperuser

Answer the questions and you'll have a new user. Now, run the application with the runserver command, then visit http://127.0.0.1:8000/admin/, and add a few movie detail objects to the database. ...

Get Django Project Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.