Throughout this tutorial, we’ll walk you through the creation of a movies categorization application.
- Python 3
- Django 2.0.1
- Bootstrap 4.0
| - manage.py
| - getting_started
\ - settings.py
\ - urls.py
\ - wsgi.py
| - flix
\ - migrations
\ - models
\ - category.py
\ - movie.py
\ - templates
\ - home_page.html
\ - views
\ - home_page.py
\ - admin.py
\ - apps.py
\ - urls.py
-
Run
python manage.py migrate
to create the application models. -
Start the development server and visit http://127.0.0.1:8000/admin/ to create a genre and a movie (you'll need the Admin app enabled).
-
Visit http://127.0.0.1:8000/flix/.
python manage.py test --pattern="*_tests.py"
- Admin: http://127.0.0.1:8000/admin/
- Home Page: http://127.0.0.1:8000/flix/