Django FAQs


How can I create new theme (own theme)?

Follow the FAQ to create a custom skin. Learn more

How to remove Template Customizer?

It's only recommended to use template without customizer, if you wish to configure themes, layouts and other customizations by changing custom options from config/templates.py file.

We have provided template with customizer, So user can check all the layout options and it's classes and can get idea about all the possibilities.

But before deployment, you might not required this customizer. Then you can check below options :

Option 1: If you want to remove customizer and also not required LocalStorage, then you can use has_customizer option in config/templates.py file

If you set this option to false, it will remove customizer, template customizer js and initialization script as well.

TEMPLATE_CONFIG = {
  ...
  'has_customizer' => false,
  ...
}

Option 2: If you want to hide customizer and you need LocalStorage to store data like menuCollapse, light/dark layout, etc.., then you can use display_customizer option from config/templates.py file

If you set this option to false, it will hide customizer and won't remove/hide template customizer js.

TEMPLATE_CONFIG = {
  ...
  "display_customizer": False,
  ...
}
Multiple Migration Files

If you have multiple migration file such has below.

apps
└── 📂 test
    └── 📂 migrations
        ├── 📄 0001_initial.py
        ├── 📄 0002_auto_20210901_0000.py
        └── 📄 0003_auto_20210901_0001.py
      

You can delete migrations folder/files and run following command in the terminal. This will remove other instance and create only one file.

python manage.py makemigrations app_name
python manage.py migrate
How can I migrate from django v4.2 to v5.0 ?

Follow bellow step to update Django version in your current project.

  1. Update Django version in requirements.txt.
  2. Django==4.2.5 ==> Django==5.0
  3. Update python version in your system, as Django5 support python v3.10+.
  4. Update python version in docker file. Sneat uses python v3.12.
  5. FROM python:3.9 ==> FROM python:3.12
  6. Delete your old .venv file and Follow the process to start django project, Refer Django Installation.
  7. To update your settings.py in line with Django5, you can create a new project and compare its settings.py with your existing project's configuration.
  8. Take a look at Django5 official documentation to find details about features that have been deprecated. Implement any necessary adjustments in your project accordingly.