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
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 x-django-app-1.2.2.tar.gz.
File metadata
- Download URL: x-django-app-1.2.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26aba7a5d7020011fc4e8b744805b6580dc583dfe7982362a5eed448a923776e
|
|
| MD5 |
192a1c996561634c63e0dd32f294f4ca
|
|
| BLAKE2b-256 |
c000d12f6a14d86eb61a81b5f9d395a7ae49d8d4b5e465309220ed0b2d1a9935
|
File details
Details for the file x_django_app-1.2.2-py3-none-any.whl.
File metadata
- Download URL: x_django_app-1.2.2-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21a7764de39d37a9a53b83bcbab2dbc746669773caeaf0cf358ca83199988dee
|
|
| MD5 |
739ca0175c718c3b915271f57715891c
|
|
| BLAKE2b-256 |
cce0411cedb1366719ddc5559bd8e82d1d80da0066b334a64368b44ec7f52d58
|