In this tutorial, we are going to create a nice crispy range slider using django-crispy-forms for an integer filter provided by django-filters. The tutorial can be split into four sections. In the first or prerequisite section, we will install the required packages and initiate the Django project. In the next section, we will create a simple app with a model, view, and template. In the third section, we will create the simple range filter using django-filters package without a slider. …
In this tutorial, you are going to learn how to create a dashboard for Oscar’s e-commerce framework. This tutorial starts where the first part ended.
Let’s create a new app called dashboard inside the boutique app directory:
Then initialize a new Django app using the following command:
python manage.py startapp dashboard boutique/dashboard
You can delete
tests.py, because these are not required for the Oscar's dashboard app.
Once again after the dashboard app is created, it is necessary to register the app in
settings.py as shown below:
INSTALLED_APPS = [
In this tutorial, you are going to learn how to create a new Django app and integrate it into Oscar e-commerce framework. Particularly, we will create a new sample Django app called
boutique and integrate it to Oscar's default front and dashboard.
First, it is necessary to create a virtual environment to work in. I use pipenv as a virtual environment for its simplicity and ease of use. Create a directory called
/myoscarapp, move inside and run the following command:
$ pipenv shell
Then install the django-oscar using pip:
$ pip install django-oscar[sorl-thumbnail]
Now create a brand new Dango project…
Python is an amazing programming language, but it has two huge handicaps compared to compiled languages.