Online Shop With Django Part IV
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.
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.
In this blog post we will learn to migrate Django project from SQLite database to PostgreSQL.
In this blog post, we will learn how to create tags for a post using django-taggit. Then we will learn to retrieve posts by similarity.We will also learn to generate latest posts and most commented posts. At the end we will learn to use markdown in Django.
In this post we will learn to get the url of the page using reverse(). Then we will also look at how to create customized urls according to the date and slug of the post. After that we will learn to add pagination and use the class based views. Finally, we will create a comment system, so that one can post the comments and see previous comments.