Skip to main content

Publisher workflow for django models and Django CMS pages.

Project description

Publisher workflow for django models and Django CMS pages.

This is a fork of andersinno/django-model-publisher-ai which is a fork of the origin jp74/django-model-publisher.

Build Status on travis-ci.org

travis-ci.org/wearehoods/django-ya-model-publisher

Coverage Status on codecov.io

codecov.io/gh/wearehoods/django-ya-model-publisher

Features

  • Django CMS page support.

  • Add request/reject buttons in Django CMS toolbar.

  • Django CMS placeholders support.

  • Hvad/Parler support.

  • Restrict user access to publish functions with user permissions.

Django compatibility

django-ya-model-publisher

django version

python

v0.5.x

1.8, 1.9, 1.10, 1.11

3.5, 3.6

v0.4.x

1.8, 1.9, 1.10, 1.11

2.7, 3.4, 3.5, 3.6

Note: See travis/tox config files for current test matrix

run tests

run tests via py.test with current python/environment:

$ make test
or
$ ./setup.py test
or
$ python tests/manage.py test myapp

run test via tox e.g.:

$ make tox
or
$ ./setup.py tox
or
$ tox

run test project

You can run the test environment by:

$ ./run_test_project_dev_server.sh

or:

$ ./publisher_test_project/manage.py run_test_project_dev_server

The following steps will be executed:

  • Create django users if not exists:

    • A django ‘superuser’

    • The user editor: He can accept/reject un-/publish requests

    • The user reporter: He can create un-/publish requests

    • note: Both users will used the same password as the ‘superuser’ !

  • run migration

  • insert test fixtures (Create Django CMS pages)

  • collect static files

  • run the django development server on localhost

You can pass arguments to the helper script, e.g.:

$ ./run_test_project_dev_server.sh --help
...
usage: manage.py run_test_project_dev_server [-h] [--version] [-v {0,1,2,3}]
                                             [--settings SETTINGS]
                                             [--pythonpath PYTHONPATH]
                                             [--traceback] [--no-color]
                                             [--ipv6] [--nothreading]
                                             [--noreload] [--nostatic]
                                             [--insecure]
                                             [addrport]
...

To ‘reset’ the test fixtures, run this:

$ ./publisher_test_project/manage.py create_test_data --fresh

For a complete fresh database, just remove the sqlite file, e.g.:

$ rm publisher_test_project/publisher_test_database.sqlite3

history

donation

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

django-ya-model-publisher-0.5.1.tar.gz (52.3 kB view details)

Uploaded Source

Built Distributions

django_ya_model_publisher-0.5.1-py3.5.egg (60.1 kB view details)

Uploaded Source

django_ya_model_publisher-0.5.1-py2.py3-none-any.whl (65.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-ya-model-publisher-0.5.1.tar.gz.

File metadata

File hashes

Hashes for django-ya-model-publisher-0.5.1.tar.gz
Algorithm Hash digest
SHA256 5a7b84c5f5715dce9aa36f294aef4f14a476e94d5976ac064c216fc19becbd41
MD5 d8d76710bc62af3502790ad4fa1add3b
BLAKE2b-256 baac1f30025c2e9b8397e401b7d75e287259da0c790e0937a493723259a92bf2

See more details on using hashes here.

File details

Details for the file django_ya_model_publisher-0.5.1-py3.5.egg.

File metadata

File hashes

Hashes for django_ya_model_publisher-0.5.1-py3.5.egg
Algorithm Hash digest
SHA256 0b37b0ae41cbdcae278739bfac20cae7bf1fe09718ebbfdf2ed8566db9d9f1ef
MD5 a2e3ee95fac8a4a33d2d5a6e3147cad9
BLAKE2b-256 45d1e5f71d2ad3959e10ad2fb4019c6f7e6f7f15b51699e09cc5a1126f058cff

See more details on using hashes here.

File details

Details for the file django_ya_model_publisher-0.5.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_ya_model_publisher-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97ddb338af8d58a4a2a4ce2e97a647dcc8462233b4dd0c07cf9d43c74fc732d3
MD5 8c732781dc95f0f20bf6365fc4d681ce
BLAKE2b-256 7800267f71edf27ae06a3227d565694ed047cb2bc86a4fa0e798aa11af199d1a

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