Skip to main content

Create django front-end data apps

Project description

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

  1. Install the package

    pip install django-front-data

  2. Add into yours settings INSTALLED_APPS

    front_data',

  3. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-front-data-1.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

django_front_data-1.2.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file django-front-data-1.2.0.tar.gz.

File metadata

  • Download URL: django-front-data-1.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for django-front-data-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c0d2cb1454587a19953d387790da3582ad074ef9d986745c133c63c790060575
MD5 b940ad15e7964c0cd7bc965df7e3c576
BLAKE2b-256 1dff0272ba0ed512f0ba75332dfb7ab1c5d6323173b7de3ff4871aa11b28b3a0

See more details on using hashes here.

File details

Details for the file django_front_data-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_front_data-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for django_front_data-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35a28d7afec0ef78069300ffd44e97c182faa63fb759204c006bb7c3fa75ea98
MD5 eaa3a4cbf8b200ffe305a540742d3c16
BLAKE2b-256 6a68a8944e2e0bb03217a912307cf519f067e665cbda9789bd5854df2bc824ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page