This short recipe demonstrates how to create Wagtail pages programmatically. It may also be useful for testing Wagtail development against a reasonable volume of page data (about 35,000 film plots, from English Wikipedia).
In a virtualenv:
# in a virtual environment | |
pip install wagtail | |
wagtail start myproject --template=https://github.com/torchbox/wagtail-news-template/archive/feature/productionization.zip | |
cd myproject | |
pip install -r requirements.txt | |
python manage.py createcachetable | |
make load-data | |
make start |
sudo launchctl stop com.apple.audio.coreaudiod && sudo launchctl start com.apple.audio.coreaudiod |
[ | |
{"url": "https://www.jpl.nasa.gov/news/news.php?feature=7638", "title": "NASA's Curiosity Keeps Rolling As Team Operates Rover From Home", "introduction": "The Mars mission has learned to meet new challenges while working remotely.", "updated_at": "2020-04-14 12:04:00", "paras": ["<p>For people who are able to work remotely during this time of social distancing, video conferences and emails have helped bridge the gap. The same holds true for the team behind NASA's Curiosity Mars rover. They're dealing with the same challenges of so many remote workers - quieting the dog, sharing space with partners and family, remembering to step away from the desk from time to time - but with a twist: They're operating on Mars.</p>", "<p></p>", "<p>On March 20, 2020, nobody on the team was present at NASA's Jet Propulsion Laboratory in Southern California, where the mission is based. It was the first time the rover's operations were planned while the team was completely remote. Two days later, the commands they had sent to |
[ | |
{"name": "Abalone", "image": false, "rating_description": "one", "rating_image": "/images/MCS_GoodFishGuide_Rating_01_01_1.svg", "latin_name": "Haliotis discus hannai; Haliotis tuberculata", "description": "Abalone (called ormer in France and elsewhere) are molluscs, belonging to a group of animals known as gastropods (the same group as whelks). Abalone can be farmed on land in aquaculture systems that are enclosed, referred to as \"recirculating systems\", which means that all water and waste are contained. Abalone graze on seaweeds. As there are no environmental interactions and no depletion of resources for food this makes abalone a really sustainable seafood choice. Abalone can be farmed on land in aquaculture systems that are enclosed, referred to as \"recirculating systems\", which means that all water and waste are contained. Abalone graze on seaweeds for food. As there are no environmental interactions and no depletion of resources for food this makes abalone a really sustainable seafood choice."}, |
sudo apt-get install python-pip git python-dev python-setuptools | |
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev | |
sudo apt-get install liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk | |
sudo apt-get install libpq-dev python-dev | |
sudo apt-get install postgresql postgresql-contrib | |
git clone https://github.com/torchbox/wagtaildemo.git | |
cd wagtaildemo | |
sudo pip install -r requirements.txt | |
vim wagtaildemo/settings/base.py # change DATABASES to 'django.db.backends.sqlite3' | |
./manage.py migrate |
I hereby claim:
To claim this, I am signing this object:
Thanks to [Serafeim Papastefanos] for authoring this tutorial. Please note that the installation process is in flux; most of the steps here should soon be unnecessary.
[Wagtail] is a new Open Source [Django]-based CMS. In this 20 minute tutorial we will see how you can create a blog from scratch using Wagtail. If you want to see some more examples of usage please take a look at the [wagtaildemo] GitHub project.
To follow this tutorial you will need to have [Python] 2.7 installed with a working version of [pip] and [virtualenv].
Installing the wagtail dependencies