A visual indicator of what environment/system you're using in django

Overview

django-sys-indicator

pre-commit.ci status GitHub license GitHub issues

A visual indicator of what environment/system you're using in django.

To install:

  • Add 'django_sys_indicator.apps.DjangoSysIndicatorConfig' to your INSTALLED_APPS
  • Add 'django_sys_indicator.middleware.SystemIndicatorMiddleware' to you MIDDLEWARE

Configuration settings and their defaults

SYSTEM_INDICATOR_ENABLED = False
SYSTEM_INDICATOR_LABEL = 'localhost'
SYSTEM_INDICATOR_COLORS = {
    # Format here is colour, border colour
    'red': ('#c50000', '#daa'),
    'blue': ('#006fc4', '#aad'),
    'green': ('#009e00', '#ada'),
    'purple': ('#800080', '#dad'),
    'orange': ('#ff7700', '#ffb57d'),
}
SYSTEM_INDICATOR_COLOR = 'red'
SYSTEM_INDICATOR_EXCLUSIONS = []

To exclude paths, include regex in SYSTEM_INDICATOR_EXCLUSIONS::

import re

SYSTEM_INDICATOR_EXCLUSIONS = [
    re.compile('^/[^/]+/admin/.*$'),
]
You might also like...
A starter template for building a backend with Django and django-rest-framework using docker with PostgreSQL as the primary DB.

Django-Rest-Template! This is a basic starter template for a backend project with Django as the server and PostgreSQL as the database. About the templ

Django-discord-bot - Framework for creating Discord bots using Django

django-discord-bot Framework for creating Discord bots using Django Uses ASGI fo

Django-Text-to-HTML-converter - The simple Text to HTML Converter using Django framework

Django-Text-to-HTML-converter This is the simple Text to HTML Converter using Dj

A generic system for filtering Django QuerySets based on user selections

Django Filter Django-filter is a reusable Django application allowing users to declaratively add dynamic QuerySet filtering from URL parameters. Full

A Django based shop system

django-SHOP Django-SHOP aims to be a the easy, fun and fast e-commerce counterpart to django-CMS. Here you can find the full documentation for django-

Login System Django

Login-System-Django Login System Using Django Tech Used Django Python Html Run Locally Clone project git clone https://link-to-project Get project for

A Blog Management System Built with django
A Blog Management System Built with django

Blog Management System Backend use: Django Features Enhanced Ui

This repository contains django library management system project.

Library Management System Django ** INSTALLATION** First of all install python on your system. Then run pip install -r requirements.txt to required se

Advanced school management system written in Django :)
Advanced school management system written in Django :)

Advanced school management system written in Django :) ⚙️ Config the project First you should make venv for this project. So in the main root of proje

Releases(2.0.0)
  • 2.0.0(Nov 24, 2022)

    What's Changed

    • [feat] Added support for Python 3.11 and Django 4.1
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/5
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/6
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/7
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/8
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/9
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/10
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/11
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/12
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/13
    • ci: pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/14
    • ci: pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/15
    • ci: pre-commit autoupdate by @pre-commit-ci in https://github.com/marksweb/django-sys-indicator/pull/16

    New Contributors

    • @pre-commit-ci made their first contribution in https://github.com/marksweb/django-sys-indicator/pull/5

    Full Changelog: https://github.com/marksweb/django-sys-indicator/compare/1.0.0...2.0.0

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0(Feb 14, 2022)

Owner
Mark Walker
Python dev mainly working with django, especially django-cms hosted with AWS, usually on Fargate
Mark Walker
System checks for your project's environment.

django-version-checks System checks for your project's environment. Requirements Python 3.6 to 3.9 supported. Django 2.2 to 3.2 supported. Are your te

Adam Johnson 33 Dec 22, 2022
A simple Django dev environment setup with docker for demo purposes for GalsenDev community

GalsenDEV Docker Demo This is a basic Django dev environment setup with docker and docker-compose for a GalsenDev Meetup. The main purposes was to mak

null 3 Jul 3, 2021
Wagtail - Vue - Django : The initial environment of full-stack local dev web app with wagtail and vue

Wagtail - Vue - Django : The initial environment of full-stack local dev web app with wagtail and vue. A demo to show how to use .vue files inside django app.

Quang PHAM 2 Oct 20, 2022
Django Serverless Cron - Run cron jobs easily in a serverless environment

Django Serverless Cron - Run cron jobs easily in a serverless environment

Paul Onteri 41 Dec 16, 2022
Django URL Shortener is a Django app to to include URL Shortening feature in your Django Project

Django URL Shortener Django URL Shortener is a Django app to to include URL Shortening feature in your Django Project Install this package to your Dja

Rishav Sinha 4 Nov 18, 2021
Visual DSL framework for django

Preface Processes change more often than technic. Domain Rules are situational and may differ from customer to customer. With diverse code and frequen

Dmitry Kuksinsky 165 Jan 8, 2023
AUES Student Management System Developed for laboratory works №9 Purpose using Python (Django).

AUES Student Management System (L M S ) AUES Student Management System Developed for laboratory works №9 Purpose using Python (Django). I've created t

ANAS NABIL 2 Dec 6, 2021
A task management system created using Django 4.0 and Python 3.8 for a hackathon.

Task Management System A task management app for Projects created using Django v4.0 and Python 3.8 for educational purpose. This project was created d

Harsh Agarwal 1 Dec 12, 2021
A beginner django project and also my first Django project which involves shortening of a longer URL into a short one using a unique id.

Django-URL-Shortener A beginner django project and also my first Django project which involves shortening of a longer URL into a short one using a uni

Rohini Rao 3 Aug 8, 2021
DRF_commands is a Django package that helps you to create django rest framework endpoints faster using manage.py.

DRF_commands is a Django package that helps you to create django rest framework endpoints faster using manage.py.

Mokrani Yacine 2 Sep 28, 2022