Here, we answer your most common question, how to use our template in your existing project?
The Sneat admin template is not just a theme. It's more than it. It is a fully functional template that has much-interconnected functionality.
It's not like a WordPress theme to install in an existing project. We always suggest you, move your existing project into our Sneat Django admin template.
If you try to move our template into your existing project it may break the UI and some functionality. It is not impossible to achieve the same approach. You have to deeply understand, the structure and every functionality of our template to achieve that.
setting.py
and urls.py
.django-template
{% extends layout_path %}
{% load static %}
{% load i18n %}
{% block title %}
//Your Page title
{% endblock %}
{% block vendor_css %}
{{ block.super }}
// your vendor style files goes here
{% endblock vendor_css %}
{% block vendor_js %}
{{ block.super }}
// your vendor script files goes here
{% endblock vendor_js %}
{% block page_css %}
{{ block.super }}
// your page specific style files goes here
{% endblock page_css %}
{% block page_js %}
{{ block.super }}
// your page specific script files goes here
{% endblock page_js %}
{% block content %}
// your page content goes here
{% endblock %}
webpack.mix.js
file.
requirements.txt
or package.json
file.menus
JSON files to add your page's links in the sidebar menu.
You can find our menus files below location.
templates/layout/partials/menu/horizontal/horizontalMenu.json
templates/layout/partials/menu/vertical/verticalMenu.json
locale/django.po
files to get the translation.📂 locale
├── 📂 en
│ └──📂 LC_MESSAGES
│ └──📄 django.po
├── 📂 fr
| └──📂 LC_MESSAGES
| └──📄 django.po
├── 📂 en
│ └──📂 LC_MESSAGES
│ └──📄 django.po
└── 📂 fr
└──📂 LC_MESSAGES
└──📄 django.po
python manage.py compilemessages
.
/src/assets/json/search-vertical.json
/src/assets/json/search-horizontal.json