A Python package to get weather reports for any location.
Project description
x-django-app
Django application for all my custom stuff
Features:
Models:
- XActivity to store all user activities in the project
CREATE
EDIT
DELETE
RESET
DOWNLOAD
BACKUP
RESTORE
EXPORT
IMPORT
PUBLISH
ACCEPT
REJECT
ENABLE
DISABLE
ACTIVATE
DEACTIVATE
Views:
-
XListView for searching in selected fields
-
XCreateView to record create activity in XActivity model, also add created_by for the requested user
-
XUpdateView to record edit activity in XActivity model, also add edited_by for the requested user
-
x_record_delete_object function to record delete activity in XActivity model
NOTE: x_record_delete_object is a function not a view used as
x_record_delete_object(request, object, message)
Tags:
-
class_name return the class name for the object
-
detect_language return language code to the text
-
get_data change '' to "" for Jason use
-
to_string change number to string
-
trunc trnucate text for any selected length
-
make_clear replace all ' _ ' to ' '
-
permission_check check if user has specific permission regardless if user is superuser or not
-
x_sort sort model data with selected field
Install:
-
Install python > 3.8.8
-
Install using pip
pip install x-django-app -
Add "x_django_app" to your INSTALLED_APPS settings:
INSTALLED_APPS = [
...
'x_django_app',
]
Use:
-
For views
from x_django_app.views import XListView, XCreateView, XUpdateView, x_record_delete_object -
For tags
{% load x_tags %} -
For paginations
{% include 'x_django_app/_pagination.html' %}
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
Built Distribution
Hashes for x_django_app-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f89990102b64d3b2490ba1f50d299dc3e2714d8939dcf5f0465aaa2ec7d104bf |
|
MD5 | 70684e49a367407dab78e8f68b4c268f |
|
BLAKE2b-256 | c8234419e55d7ab002b860614dbb4361db1cf12b0875ab2e4e93f82a6e2bbbe5 |