Skip to main content

This is a custom reusable Django core app.

Project description

vto_core

This is a custom reusable Django core app.

It includes admin override templates (e.g., to display the project name and current environment in a header in the admin interface), a minimal login page template, a custom template tag to render Markdown partials, custom context processors to convey settings variables to templates, and middleware to activate user time zones in templates.

It also includes a time zones model, and a custom user model which uses the time zones model as a dropdown list with autocomplete in the admin UI (something which is missing from django-timezone-field). Moreover, this allows one to only add the specific time zones desired, particularly choosing to use only the ones which are canonical.

The the user portion of the admin.py file is mostly copied verbatim from upstream, and then tweaked to replace the stock first_name and last_name conventions from with slightly more international options, lightly inspired by the Cookiecutter Django project.

The GitHub repository for also has a tz.json sample fixture in the repo root (for the time zone models only, dumped in a similar manner to the example below).

# for the dev db
DEBUG=True python manage.py dumpdata --indent=2 \
    vto_core.TimeZone vto_core.TZAbbreviation > tz.json

# for the prod db
python manage.py dumpdata --indent=2 vto_core.TimeZone \
    vto_core.TZAbbreviation > tz.json

Disclaimer

This is just a personal test app, it is not intended for use by anyone else.

Required By

Requires

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

vto_core-0.0.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

vto_core-0.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file vto_core-0.0.1.tar.gz.

File metadata

  • Download URL: vto_core-0.0.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for vto_core-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8c407dd71b2cb66ab4c3d689254e5d6b0555b6cd017a55912695ea2d3736544c
MD5 347b5e7ad0dc2787e92e51fd33925d0f
BLAKE2b-256 89838585a394e8944c7198e52eb98972a76c42746d441fd40fb1d902c359145b

See more details on using hashes here.

File details

Details for the file vto_core-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: vto_core-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for vto_core-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc442a4f0e4511ba93ad4f103acdb6d06e803f02dc9afe1919cd283aed53e895
MD5 a6af31c4d932f26932e543df9f2ba08c
BLAKE2b-256 92532b980bb2e4e74612747ff31b4eeb0c6bf2d9569c1f55a5b13fd0019760c7

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