Skip to main content

Sami Test Pip

Project description

Insallation

  1. pip install admin-form-image-preivew
  2. Add admin_image_preview in installed apps in settings.py of django project INSTALLED_APPS = [ 'admin_image_preview', # ... ] (at top)

Description It show the preview of every image field in every admin change_form (add/edit) for all models and apps

Instructions to run the sample usage

  1. git clone https://github.com/humblesami/admin_form_image_preivew.git
  2. cd admin_form_image_preivew/sample_usage
  3. pip install -r requirements.txt

Not required but if you want to reset the database, you can do this 3.1. python manage.py initsql.py

  1. python manage.py runsever

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

  3. Go to http://127.0.0.1:8000/admin/admin_image_preview/model1/add/

  4. Add image to check preview

Make you own pip package See https://github.com/humblesami/admin_form_image_preivew/blob/master/docs/make_pip.md to make/build/test and upload your own pip package

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

admin-form-image-preivew-1.5.tar.gz (103.2 kB view hashes)

Uploaded Source

Built Distribution

admin_form_image_preivew-1.5-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

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