Skip to main content

Website for the `appel-crises` petition

Project description

# appel-crises-web

## for developers

On first time,

  • Install python3.7 if needed

  • Install pre-commit if needed (pip install –user pre-commit)

  • Install a python virtualenv manager if needed (pip install –user vex, pip install –user pew, …)

  • Create a virtualenv (vex –make appel-crises, pew new appel-crises)

  • Install project dependencies: make bootsrap (or pip install -e .[dev] if make isn’t available)

  • cp local_settings.ini.template local_settings.ini and edit local_settings.ini if you need

  • if you chose postgresql DB, create user and database if needed

  • run make build to build static files

  • run ./manage.py migrate to create DB tables

  • run ./manage.py createsuperuser to create a local user

## Dependencies management

Dependencies are stored in setup.cfg:

  • Runtime dependencies are listed under install_requires in the [options] section;

  • Additional development dependencies are listed under dev= in the [options.extras_require], and installed alongside required dependencies by specifying the [dev] extra marker - as seen in pip install -e .[dev].

## Building

The project is not composed only of pure Python code (it contains templates, images, …). Some of those files must go through some processing before running in production: - Static files should be consolidated into a single tree, with hashed names and a manifest; - Message catalogs might need to be compiled to their final .mo form; - Some static data might be converted to some other formats for faster / easier loading.

Those steps are controlled through the project wide Makefile, and should be called through the make build (or simply make) command.

That step is also executed when building a release.

## Releasing

A release consists of a built project archive, under the wheel format; that package MUST include the result of a full compilation.

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

appel-crises-0.0.11.dev0.tar.gz (7.8 MB view details)

Uploaded Source

Built Distribution

appel_crises-0.0.11.dev0-py2.py3-none-any.whl (26.0 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file appel-crises-0.0.11.dev0.tar.gz.

File metadata

  • Download URL: appel-crises-0.0.11.dev0.tar.gz
  • Upload date:
  • Size: 7.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for appel-crises-0.0.11.dev0.tar.gz
Algorithm Hash digest
SHA256 93ff259be04bf65995c62189cf2beadd810d8edb3893c3a1c8926f7345678d3c
MD5 aa68db95be2156a8a783166595aadbf8
BLAKE2b-256 01255ff1c11629494a46f8f1d7def1f85b614880d2036553f528627d8c6cdd86

See more details on using hashes here.

File details

Details for the file appel_crises-0.0.11.dev0-py2.py3-none-any.whl.

File metadata

  • Download URL: appel_crises-0.0.11.dev0-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.0 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for appel_crises-0.0.11.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7dcdeb321eeece8a62e7f924f15d1d23af1678bd5c157c89ab052dbd7fc639c2
MD5 a4db902f6d9f5d570f59352a672022dd
BLAKE2b-256 fdcd65ca0ce95b8d52e767645eb8f74405a0f82d06f74990bb70a3e4dfb3fea4

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