All Projects → City-of-Helsinki → digihel

City-of-Helsinki / digihel

Licence: MIT license
City of Helsinki Digital Helsinki Wagtail CMS

Programming Languages

python
139335 projects - #7 most used programming language
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects
Dockerfile
14818 projects

Labels

Projects that are alternatives of or similar to digihel

Wagtail Factories
Factory boy classes for wagtail
Stars: ✭ 58 (+205.26%)
Mutual labels:  wagtail
Awesome Wagtail
A curated list of awesome packages, articles, and other cool resources from the Wagtail community.
Stars: ✭ 1,527 (+7936.84%)
Mutual labels:  wagtail
Wagalytics
A Google Analytics dashboard in your Wagtail admin
Stars: ✭ 176 (+826.32%)
Mutual labels:  wagtail
Openstax Cms
The OpenStax CMS, built using Wagtail on top of Django.
Stars: ✭ 74 (+289.47%)
Mutual labels:  wagtail
Reddit Wallpaper Changer
Reddit Wallpaper Changer
Stars: ✭ 96 (+405.26%)
Mutual labels:  wagtail
Wagtail
A Django content management system focused on flexibility and user experience
Stars: ✭ 11,387 (+59831.58%)
Mutual labels:  wagtail
Bakerydemo
Next generation Wagtail demo, born in Reykjavik
Stars: ✭ 468 (+2363.16%)
Mutual labels:  wagtail
freeturn
Freelance mission control
Stars: ✭ 50 (+163.16%)
Mutual labels:  wagtail
Wagtailtrans
A Wagtail add-on for supporting multilingual sites
Stars: ✭ 103 (+442.11%)
Mutual labels:  wagtail
Consumerfinance.gov
Django project protecting American consumers
Stars: ✭ 164 (+763.16%)
Mutual labels:  wagtail
Wagtail Torchbox
Wagtail build of Torchbox.com
Stars: ✭ 84 (+342.11%)
Mutual labels:  wagtail
Wagtail Personalisation
Rule-based personalisation for Wagtail CMS
Stars: ✭ 96 (+405.26%)
Mutual labels:  wagtail
Wagtailmedia
A Wagtail module for managing video and audio files within the admin
Stars: ✭ 128 (+573.68%)
Mutual labels:  wagtail
Wagtailgmaps
Simple Google Maps address formatter for Wagtail fields
Stars: ✭ 68 (+257.89%)
Mutual labels:  wagtail
wagtailcommonblocks
Common StreamField blocks for Wagtail
Stars: ✭ 40 (+110.53%)
Mutual labels:  wagtail
Ls.joyous
A calendar application for Wagtail
Stars: ✭ 53 (+178.95%)
Mutual labels:  wagtail
Wagtail Pipit
Pipit is a Wagtail CMS boilerplate which aims to provide an easy and modern developer workflow with a React-rendered frontend.
Stars: ✭ 109 (+473.68%)
Mutual labels:  wagtail
wagtail-headless-preview
Previews for headless Wagtail setups
Stars: ✭ 99 (+421.05%)
Mutual labels:  wagtail
django-hyper-editor
Django Integration of Hyper Editor
Stars: ✭ 29 (+52.63%)
Mutual labels:  wagtail
Django Salesman
Headless e-commerce framework for Django.
Stars: ✭ 157 (+726.32%)
Mutual labels:  wagtail

Digital Helsinki CMS

Build status codecov Requirements Stories in Ready

This Wagtail-based CMS powers the Digital Helsinki website.

Installation

Set the DEBUG environment variable to 1

export DEBUG=1

Install required Python packages

(sudo) pip install -r requirements.txt

Create the database

sudo -u postgres createuser digihel
sudo -u postgres createdb -O digihel digihel

Install node dependencies

npm install

Install bower components

./manage.py bower install

If you have acquired a database dump, install it this way:

tar xvjf digihel-backup.tar.bz2
pg_restore -d digihel digihel.sql
echo "delete from wagtailimages_rendition;" | ./manage.py dbshell

Requirements

This project uses two files for requirements. The workflow is as follows.

requirements.txt is not edited manually, but is generated with pip-compile.

requirements.txt always contains fully tested, pinned versions of the requirements. requirements.in contains the primary, unpinned requirements of the project without their dependencies.

In production, deployments should always use requirements.txt and the versions pinned therein. In development, new virtualenvs and development environments should also be initialised using requirements.txt. pip-sync will synchronize the active virtualenv to match exactly the packages in requirements.txt.

In development and testing, to update to the latest versions of requirements, use the command pip-compile. You can use requires.io to monitor the pinned versions for updates.

To remove a dependency, remove it from requirements.in, run pip-compile and then pip-sync. If everything works as expected, commit the changes.

Configuration

These settings are recognized in the Django settings.

You can acquire the Twitter keys from the Twitter developer portal (https://apps.twitter.com).

  • TWITTER_CONSUMER_KEY: "Consumer Key (API Key)"
  • TWITTER_CONSUMER_SECRET: "Consumer Secret (API Secret)"
  • TWITTER_ACCESS_TOKEN: A personal (read-only) access token
  • TWITTER_ACCESS_TOKEN_SECRET: The secret for the personal (read-only) access token

Docker

Currently the development environment has been dockerized.

Configurations

Configure the following settings to local_settings.py:

DEBUG = True

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'postgres',
        'USER': 'postgres',
        'PASSWORD': 'postgres',
        'HOST': 'db',
        'PORT': '5432',
    }
}

Daily running

  • Run docker-compose up
  • Run docker-compose exec web python3 manage.py migrate
  • Run docker-compose exec web python3 manage.py compilemessages
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].