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.
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
v0.5.1 - 20.12.2017 - compare v0.5.0…v0.5.1
fix python package (add missing parts)
change travis/tox/pytest configuration
minor code update
v0.5.0 - 19.12.2017 - compare v0.4.1…v0.5.0
Skip official support for python v2.7 and v3.4 (remove from text matrix)
Implement “request/reject/accept publishing” workflow with a shot messages and logging
Add “request/reject/accept publishing” buttons to Django CMS toolbar for cms pages.
v0.4.1 - 14.11.2017 - compare v0.4.0.dev1…v0.4.1
Refactor test run setup
bugfix project name
v0.4.0.dev1 - 14.11.2017 - compare v0.3.1…v0.4.0.dev1
Just create the fork and apply all pull requests from andersinno/django-model-publisher-ai/pull/14
links
Homepage |
|
PyPi.org |
|
PyPi (legacy) |
donation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file django-ya-model-publisher-0.5.1.tar.gz
.
File metadata
- Download URL: django-ya-model-publisher-0.5.1.tar.gz
- Upload date:
- Size: 52.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a7b84c5f5715dce9aa36f294aef4f14a476e94d5976ac064c216fc19becbd41 |
|
MD5 | d8d76710bc62af3502790ad4fa1add3b |
|
BLAKE2b-256 | baac1f30025c2e9b8397e401b7d75e287259da0c790e0937a493723259a92bf2 |
File details
Details for the file django_ya_model_publisher-0.5.1-py3.5.egg
.
File metadata
- Download URL: django_ya_model_publisher-0.5.1-py3.5.egg
- Upload date:
- Size: 60.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b37b0ae41cbdcae278739bfac20cae7bf1fe09718ebbfdf2ed8566db9d9f1ef |
|
MD5 | a2e3ee95fac8a4a33d2d5a6e3147cad9 |
|
BLAKE2b-256 | 45d1e5f71d2ad3959e10ad2fb4019c6f7e6f7f15b51699e09cc5a1126f058cff |
File details
Details for the file django_ya_model_publisher-0.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_ya_model_publisher-0.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 65.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97ddb338af8d58a4a2a4ce2e97a647dcc8462233b4dd0c07cf9d43c74fc732d3 |
|
MD5 | 8c732781dc95f0f20bf6365fc4d681ce |
|
BLAKE2b-256 | 7800267f71edf27ae06a3227d565694ed047cb2bc86a4fa0e798aa11af199d1a |