Create fake Wagtail pages
Project description
# Wagtail Fake News
Create fake news for testing.
## Installation
pip install git+git://github.com/tomdyson/wagtail-fakenews.git#egg=wagtail-fakenews
Add fakenews to INSTALLED_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.
`bash # 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
[x] REST API
[x] Simple page template
[x] Streamfield?
[ ] Publish to PyPi
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
File details
Details for the file wagtail-fakenews-0.1.tar.gz
.
File metadata
- Download URL: wagtail-fakenews-0.1.tar.gz
- Upload date:
- Size: 5.6 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 | 81439ff2c92fa5166199894ebf3e011ce622f323d5ba354e7919ea7843a1e1c6 |
|
MD5 | 8a7208fc778274686c2bde4d9760b8aa |
|
BLAKE2b-256 | 9d9d42518bb777f3a8ad6c3ace957157e1d15ff518e2736c4761906e62ef80c7 |