PostgreSQL on Django
The default database for Django is sqlite. Here, we will learn how to migrate from sqllite to postgresql.
The default database for Django is sqlite. Here, we will learn how to migrate from sqllite to postgresql.
In this part we will learn to edit the admin site of Django and add an option to exports the orders as csv files. We will also learn to use WeasyPrint to create pdf files dynamically.
When a shopping cart is checked out, we need to save an order in the database. Orders will contain information about customers and the products they are buying.
We will build a shopping cart. We will create a class for cart. We will build additional features so that user can add several quantities of different items to the cart. User can update quantities to cart or remove the item completely. We will also use a context processor to show total items in our cart and their total cost.
We will learn how to create a web application for online shopping.
In this first part we will do basic installation. Then create models for product and catalog. Then register the models to admin site. After the we will build views and templates. At the end of this part we will add css.