Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/platformsh-templates/wagtail
Wagtail template for Platform.sh.
https://github.com/platformsh-templates/wagtail
Last synced: 10 days ago
JSON representation
Wagtail template for Platform.sh.
- Host: GitHub
- URL: https://github.com/platformsh-templates/wagtail
- Owner: platformsh-templates
- Created: 2019-09-25T21:51:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T19:27:52.000Z (6 months ago)
- Last Synced: 2024-05-21T22:35:13.433Z (6 months ago)
- Language: Python
- Size: 1.43 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-wagtail - Wagtail for Platform.sh - Wagtail template for Platform.sh. (Tools / Templates & Starter Kits)
README
# Wagtail for Platform.sh
This template builds the Wagtail CMS on Platform.sh, using the gunicorn application runner. It includes a PostgreSQL database that is configured automatically, and a basic demonstration app that shows how to use it. It is intended for you to use as a starting point and modify for your own needs. You will need to run the command line installation process by logging into the project over SSH after the first deploy.
Wagtail is a web CMS built using the Django framework for Python.
## Features
* Python 3.11
* PostgreSQL 12
* Automatic TLS certificates
* Pipenv-based build## Post-installation
After installation, you will need to create the initial administrative user.
1. SSH into the project using `platform ssh` (if you have checked out a copy of the repository), or using the SSH login URL provided in the web console.
2. Run:
```python
pipenv run python manage.py createsuperuser
```That will create the initial user and provide you with the admin password.
3. Login to the Wagtail admin section at the `/admin` URL for your project.
## Customizations
The following files have been added to a basic Django configuration. If using this project as a reference for your own existing project, replicate the changes below to your project.
* The `.platform.app.yaml`, `.platform/services.yaml`, and `.platform/routes.yaml` files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
* A starter application `myapp` is included for demonstration purposes - the same application generated with the Wagtail getting started command `wagtail start myapp` - with a few Platform.sh-specific changes. In particular, the `myapp/settings/dev.py` file is set up to configure Django to connect to the correct database, and to run a production server (`DEBUG = False`). You are free to change that configuration if you prefer.## References
* [Wagtail](https://wagtail.io/)
* [Python on Platform.sh](https://docs.platform.sh/languages/python.html)