Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

x-django-app-1.2.2.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

x_django_app-1.2.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

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

Hashes for x-django-app-1.2.2.tar.gz
Algorithm Hash digest
SHA256 26aba7a5d7020011fc4e8b744805b6580dc583dfe7982362a5eed448a923776e
MD5 192a1c996561634c63e0dd32f294f4ca
BLAKE2b-256 c000d12f6a14d86eb61a81b5f9d395a7ae49d8d4b5e465309220ed0b2d1a9935

See more details on using hashes here.

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

Hashes for x_django_app-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21a7764de39d37a9a53b83bcbab2dbc746669773caeaf0cf358ca83199988dee
MD5 739ca0175c718c3b915271f57715891c
BLAKE2b-256 cce0411cedb1366719ddc5559bd8e82d1d80da0066b334a64368b44ec7f52d58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page