sacovo / cms

Source code for the cms used by juso.ch

Home Page:https://juso.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

juso-site

Features

  • Multisite support
  • PWA ready
    • Push notifications
    • Offline mode
  • Duplicate page trees to new domain/language
  • Translatebale
  • Structured Data for blog posts and events
  • Form builder with support for mailtrain connection
  • Easy customisation with css variables
  • docker container
  • nginx with apache pagespeed

Docker

docker-compose build
docker-compose up

Deployment

Copy .env.dev to .env.prod and change the passwords.

Build images and run them

docker-compose -f docker-compose.prod.yml up --build -d

Run database migrations

docker-compose -f docker-compose.prod.yml exec web python manage.py migrate

Collect static files

docker-compose -f docker-compose.prod.yml exec web python manage.py collectstatic --no-input

On first run only, create a superuser and a default site.

docker-compose -f docker-compose.prod.yml exec web python manage.py createsuperuser
docker-compose -f docker-compose.prod.yml exec web python manage.py shell

Installation

virtualenv env --python=python3

pip install -r requirements.txt

cp local_settings.py.example juso/local_settings.py

python manage.py migrate

# Load a fixture with some example entries
python manage.py loaddata site

python manage.py runserver

Add dns entries for juso.local and example.juso.local that point to your localhost. Visit juso.local:8000, example.juso.local, visit juso.local:8000/admin/ to see the admin interface. Log in as superuser with admin:admin or as regular user with user:user.

Useful resources

About

Source code for the cms used by juso.ch

https://juso.ch

License:Other


Languages

Language:Python 69.5%Language:JavaScript 12.1%Language:HTML 9.7%Language:CSS 8.5%Language:Dockerfile 0.1%Language:Shell 0.1%