Skip to main content

A small reusable package that adds a People app to a project

Project description

Giant People

A re-usable package which can be used in any project that requires a generic People app.

This will include the basic formatting and functionality such as model creation via the admin. The package also includes a cms plugin which allows a client to add a select number of people to a page and order them via a "drag and drop", provided by django-admin-sortable2.

Installation

To install with the package manager, run:

$ poetry add giant-people

You should then add "people", "easy_thumbnails" and "filer" to the INSTALLED_APPS in your settings file. The detail pages in this app use plugins which are not contained within this app. It is recommended that you include a set of plugins in your project, or use the giant-plugins app.

In order to run django-admin commands you will need to set the DJANGO_SETTINGS_MODULE by running

$ export DJANGO_SETTINGS_MODULE=settings

Configuration

This application exposes the following settings:

  • PEOPLE_ADMIN_LIST_DISPLAY is the field list for the admin index. This must be a list.
  • PEOPLE_ADMIN_SEARCH_FIELDS is the fields that can be searched against in the admin. This must be a list.
  • PEOPLE_ADMIN_FIELDSETS allows the user to define the admin fieldset. This must be a list of two-tuples.
  • PEOPLE_ADMIN_READONLY_FIELDS allows the user to configure readonly fields in the admin. This must be a list.

Preparing for release

In order to prep the package for a new release on TestPyPi and PyPi there is one key thing that you need to do. You need to update the version number in the pyproject.toml. This is so that the package can be published without running into version number conflicts. The version numbering must also follow the Semantic Version rules which can be found here https://semver.org/.

Publishing

Publishing a package with poetry is incredibly easy. Once you have checked that the version number has been updated (not the same as a previous version) then you only need to run two commands.

$ poetry build

will package the project up for you into a way that can be published.

$ poetry publish

will publish the package to PyPi. You will need to enter the username and password for the account which can be found in the company password manager

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

giant-people-0.5.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

giant_people-0.5.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file giant-people-0.5.0.tar.gz.

File metadata

  • Download URL: giant-people-0.5.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Darwin/21.5.0

File hashes

Hashes for giant-people-0.5.0.tar.gz
Algorithm Hash digest
SHA256 67aeb53b56a66cbe77638915c95d9b74d3ce48ae0df798a1eae2a4945617aa48
MD5 626cdf4e583b483815583cf99e180882
BLAKE2b-256 e6a60ee4da011e64e7dbe59165d41f7569de8778084d8f4ecc71c9af547ae0a3

See more details on using hashes here.

File details

Details for the file giant_people-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: giant_people-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Darwin/21.5.0

File hashes

Hashes for giant_people-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60b48e2a0f44de5fca009e1538fe3788d6a016b0c12c018994267d1ecfb6a080
MD5 f7bf970059d674c2ac60559695ca4694
BLAKE2b-256 0e722df64548d5b595f914657dd9bb85fc90c53f8f0559a8fe1504bca33244b8

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