https://github.com/pasiol/wagtail-blog
https://github.com/pasiol/wagtail-blog
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pasiol/wagtail-blog
- Owner: pasiol
- Created: 2021-08-03T12:38:45.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T13:00:57.000Z (about 4 years ago)
- Last Synced: 2025-03-10T17:55:25.901Z (over 1 year ago)
- Language: Python
- Size: 86.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wagtail-blog - dockerized demo of the Wagtail blog app
## Installing
git clone https://github.com/pasiol/wagtail-blog.git
Install Python virtual environment to the project folder and activate it.
cd wagtail-blog
python3 -m venv .venv
mkdir sqlite
source .venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
Localize language and timezone on the file settings/base.py.
# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'fi-fi'
TIME_ZONE = 'Europe/Helsinki'
## Running locally dev environment
On the Python virtual environment:
python manage.py runserver 0:8000
### Building docker container
docker build -t wagtail_blog .
### Running local docker dev environment
docker run --rm -p 8000:8000 -v $PWD/sqlite:/app/sqlite -e SITE_NAME="Blog-app demo" wagtail_blog

## Creating admin user for management purposes.
python manage.py createsuperuser
Test created user on Python environment and docker dev container, the same user should work on both instances. The dev database is on subfolder sqlite.
[http://localhost:8000/admin]
