-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Django Project Blueprints
By :
The code pack for this chapter contains a basic web application that has the models and views for a simple e-commerce site. Right now there is no search, just a page that lists all the available products. I have also provided a data dump that contains about 1,000 products so that our database has some data that we can play around with. As always, download the code pack, create a new virtual environment, install Django, run the migrate command, and then issue the run server command to start the development server. You should have the hang of how to do these things without any guidance by now.
To load the test data, run the following command after the migrate command:
> python manage.py loaddata main/fixtures/initial.json
This should fill your database with a thousand sample products and give us enough data to play around with.