Skip to main content

Redesign of the browse-able api of Django REST Framework with Bootstrap 5

Project description

🚀 drf-redesign

Ruff Publish Django CI

drf-redesign is a project that gives a fresh look to the browse-able API of Django REST Framework using Bootstrap 5.

We want to make the API more appealing and intuitive for developers and users alike. That's why we created a stylish and modern design that makes the API easier to navigate and interact with. One of the coolest features of drf-redesign is the dark mode option. You can switch to a dark theme that is not only eye-friendly but also super cool.

Our goal with drf-redesign is to make your life easier when working with Django REST Framework. We think that by enhancing the user experience, we can help you save time and be more efficient.

So if you're looking for a better way to work with Django REST Framework, don't miss drf-redesign. We're sure you'll enjoy it as much as we do!

🌟 Features

  • Modern design: drf-redesign uses Bootstrap 5, the latest version of the most popular front-end framework, to create a sleek and responsive design for the API.
  • Accessibility: drf-redesign follows the best practices for web accessibility, ensuring that the API is easy to use for everyone, regardless of their abilities or preferences.
  • Light and dark themes: drf-redesign lets you choose between a light or a dark color scheme for the API, depending on your mood or environment. You can switch between the themes with a simple click of a button.
  • Bootstrap icons: drf-redesign uses Bootstrap icons, a set of open source icons designed for Bootstrap components, to add some visual flair to the API. The icons are scalable, customizable, and easy to use.
  • Form input max length indicators: drf-redesign shows the maximum length of each form input field, so you know how much data you can enter. The indicators also change color when you reach the limit, giving you visual feedback.
  • Form inputs required indicators: drf-redesign marks the required form input fields with an asterisk (*), so you know which fields are mandatory to submit the form. The indicators also show an error message if you try to submit the form without filling the required fields.
  • Browser form validation: drf-redesign uses the built-in browser form validation features, such as HTML5 attributes, to validate the form input data before sending it to the server. The validation checks for formats, patterns, ranges, and more.

Screenshots

DRF Redesign Dark Mode DRF Redesign Dark Mode

DRF Redesign Light Mode DRF Redesign Light Mode

🛠️ Get started

To use drf-redesign, follow these simple steps:

Install the package:

pip install drf-redesign

Add drf_redesign to INSTALLED_APPS setting, before rest_framework

# settings.py

INSTALLED_APPS = [
    ...,
    'drf_redesign',
    'rest_framework',
    ...
]

That's it! You're ready to go. 😎

I hope you find this useful. Let me know if you have any feedback or questions. 😊

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

drf_redesign-0.4.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

drf_redesign-0.4.0-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file drf_redesign-0.4.0.tar.gz.

File metadata

  • Download URL: drf_redesign-0.4.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1022-azure

File hashes

Hashes for drf_redesign-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6906f4af72baf941aac7f637abb1a858356ca782cadda58edf41e2e67b9550ad
MD5 db70007cabd80f4846c6a31c00db627f
BLAKE2b-256 55d8705876f9255aa65d8e9142cd70c4c170745ea0ef17b486aa65ebb5ef05d2

See more details on using hashes here.

File details

Details for the file drf_redesign-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: drf_redesign-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1022-azure

File hashes

Hashes for drf_redesign-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87e6b9084c4945b7ed7c73602fe3becd85915e98bef41aeb4bda8f8c762acf57
MD5 f801b3af58b7a490d016d010499c7964
BLAKE2b-256 1ea57a1236038afeada4458782b4986dcaf624ae5679933f7c08c0e0084e5da4

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