Django Front Data 1.2.0 | Coderz Repository

django-front-data 1.2.0

Last updated:

0 purchases

django-front-data 1.2.0 Image
django-front-data 1.2.0 Images

Free

Languages

Categories

Add to Cart

Description:

djangofrontdata 1.2.0

Django Front Data
A reusable dependency free django front data apps
Sometimes we need to fetch unstructured data from back-end to front-end such as navbar. But this is boring task as you
have to design database for every type of data. We can avoid this by using a good JSON editor. This package contains a
good JSON editor for admin panel. Also this package has built-in serializers and django rest api support.
Installation


Install the package
pip install django-front-data


Add into yours settings INSTALLED_APPS
front_data',

If you have django rest framework installed you can add package urls to your
URL config
path('front-data/', include('front_data.urls'))
You can only use front_data.urls if you have djangorestframework installed


Settings
DEFAULT_SITE_DATA
You can use this setting to automatically add template. examples:
DEFAULT_SITE_DATA = [
{
"name": "nav-bar",
"data": [],
"templates": [
{
"text": "Navbar",
"value": {
"text": "",
"link": ""
}
}
]
}
]

Above example will create front data instance named navbar when you start
your server. It will skip if there is already navbar instance in
database. This will also create a template named navBar. See
template section about what you can do with template.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.