Create fake Wagtail pages
Project description
Wagtail Fake News
Create fake news for testing.
Installation
pip install wagtail-fakenews
- Add
fakenews
toINSTALLED_APPS
./manage.py migrate fakenews
Usage
Create a fake news index page in the Wagtail admin. Fake news items will be created as children of this page. If you have multiple fake news index pages, only the first one will be used. If there are no fake news index pages, make_fake_items
will try to create one as a child of the first home page.
# delete existing fake pages and images, create 50 new pages and images
./manage.py make_fake_items 50
# delete existing fake pages
./manage.py make_fake_items 0
# keep existing fake pages and images, create 10 new pages and images
./manage.py make_fake_items --keep_pages --keep_images 10
TODO
- REST API
- Simple page template
- Streamfield?
- Publish to PyPi
- Instructions for exposing REST API
- Fix broken Markdown rendering on PyPI page
- Gitpod instance
- GraphQL API
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 Distribution
File details
Details for the file wagtail-fakenews-0.1.1.tar.gz
.
File metadata
- Download URL: wagtail-fakenews-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4490bf94c925665c4798fd0fd4c5730afa11f1768fdf7fe2b66b62340436cb |
|
MD5 | 2a8c80998851d04f2d5037d43016a6e2 |
|
BLAKE2b-256 | d560a498f37fd44e82343bf180d6a7ca425cd0553c552852e616c32a96b99142 |
File details
Details for the file wagtail_fakenews-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: wagtail_fakenews-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- 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/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9996c674a9509301532cfe35ca1c10518405a7bb296d00b684636a22a0666cb4 |
|
MD5 | 122f882f899e4474658398fd7c659bb4 |
|
BLAKE2b-256 | 1efdf0488a4853c5b81f6d299dab35428036e44c8130792341276b660d1832b6 |