Skip to main content

1 sam_djtools.DbUtils, 2 sam_djtools.EmailUtils, 3. sam_djtools.DjangoUtils 4. Primary key based form navigation to explore next/prev records.

Project description

Installation

  1. pip install sam-djtools

  2. Add sam_djtools in installed apps in settings.py of django project

    INSTALLED_APPS = [ 'sam_djtools', # ... ] (at the top)

Description

It adds Next and Prev buttons to the top of each edit form of django admin site for all the models of all the apps in your project, without need to do anything except installing the module with pip plus adding to the top of INSTALLED_APPS in settings.py

Instructions to run the sample usage

  1. git clone https://github.com/humblesami/sam-djtools.git

  2. cd sample_usage

  3. pip install -r requirements.txt

  4. python manage.py initsql.py 5. This step will create db (sqlite) 6. will make makemigrations and migrate 7. create a super user sa with password 123 8. will also add three rows to sample_app.Model1 9. So u can directly test form navigation without doing setup

  5. python manage.py runsever

  6. Open following url in your browser and login with given username sa and password 123 http://127.0.0.1:8000/admin/

  7. Go to http://127.0.0.1:8000/admin/sample_app/model1/1/change/

  8. Add image to check preview

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

sam_djtools-1.2.37.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

sam_djtools-1.2.37-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file sam_djtools-1.2.37.tar.gz.

File metadata

  • Download URL: sam_djtools-1.2.37.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for sam_djtools-1.2.37.tar.gz
Algorithm Hash digest
SHA256 91fbfe911db5a6d345b2ea30a92b5a149ff84245d35e96801a374ca430dc9ebe
MD5 12c13690a12652228b122c2848328dac
BLAKE2b-256 8667a3e649c038f04c92cc63e57b39b1c5768426f09f226cadc1a9e1cb2a0c77

See more details on using hashes here.

File details

Details for the file sam_djtools-1.2.37-py3-none-any.whl.

File metadata

  • Download URL: sam_djtools-1.2.37-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for sam_djtools-1.2.37-py3-none-any.whl
Algorithm Hash digest
SHA256 91c79f191b3257b6e56a23fdf8ae567d43608242bb03b25a79ecc9fbc45586ee
MD5 e9c5a0fda75c840c3c84e862a1567143
BLAKE2b-256 5ecdfc540463f3ab4b10e782dbd4b0c896db01c39aa6aa003df4b4c8a665c79c

See more details on using hashes here.

Supported by

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