Flexible, fast and productive UI for logging in Django
Project description
Django LogUi
Sometimes I use this in different projects, so I decided to put it on pypi
Installation
pip install django-logui
Settings
-
Add the application to the project.
INSTALLED_APPS = [ #... 'adjango', 'logui', ]
-
In
settings.pyset the params# settings.py from os.path import join from logui.utils import check_loggers # LOGS_DIR will be scanned for .log files # Nearest folders are also scanned. # LOGS_DIR *required LOGS_DIR = join(BASE_DIR, 'logs') LOGGING = ... # ur logging # Console report about existing loggers check_loggers(LOGGING)
Read more about adjango
-
Add routes
Only
is_staffhave access.from django.urls import path, include # Not use django.conf.settings from logui.conf import LOGUI_URL_PREFIX urlpatterns = [ ... path(LOGUI_URL_PREFIX, include('logui.routes.views')), ]
-
Open https://localhost:8000/logui/
https://localhost:8000/settings.LOGUI_URL_PREFIX -
Additional
# only for request response middleware LOGUI_REQUEST_RESPONSE_LOGGER_NAME = 'global' MIDDLEWARE = [ ... 'adjango.middleware.IPAddressMiddleware', # first IP middleware from adjango 'logui.middleware.RequestResponseLoggerMiddleware', # second logui middleware ... ] # not required LOGUI_URL_PREFIX = 'logui/' LOGUI_CONTROLLERS_SETTINGS = { 'auth_required': True, 'log_name': False, 'not_auth_redirect': f'/admin/login/?next=/{LOGUI_URL_PREFIX}' }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_logui-0.1.1.tar.gz
(92.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_logui-0.1.1.tar.gz.
File metadata
- Download URL: django_logui-0.1.1.tar.gz
- Upload date:
- Size: 92.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b852279c95290d6f5e92fcd477ca633adb64888f73b202f1d3dba82c9ce095b9
|
|
| MD5 |
4a1f2a2d9f6ede871f789aac9158daf7
|
|
| BLAKE2b-256 |
59e85b2a16f76f9ab69d3e28a9bbb03e2686efc7b8e92f64dd80ea13ece2d73e
|
File details
Details for the file django_logui-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_logui-0.1.1-py3-none-any.whl
- Upload date:
- Size: 94.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd7874023fa1ab640ae0c81108ea2facb981dfed619b70f2bd5ddcf311dd4ca1
|
|
| MD5 |
14839750b61e7e0ff5eb3d5411a050bb
|
|
| BLAKE2b-256 |
aef74bf5def51b957dc8341d6f006416b92647b70c77bfc7b96671cfdb338e30
|