Skip to content

DemocracyClub/Website

Folders and files

NameName
Last commit message
Last commit date
Nov 6, 2024
Apr 21, 2024
Jun 7, 2022
Feb 25, 2025
Aug 28, 2024
Sep 2, 2021
Oct 13, 2021
Oct 13, 2021
Oct 13, 2021
Dec 13, 2022
Jan 31, 2024
Aug 14, 2024
Aug 8, 2017
Nov 1, 2014
Nov 1, 2014
May 19, 2023
Feb 10, 2025
Feb 10, 2025
Oct 20, 2023
Oct 25, 2024
Nov 1, 2014
Apr 29, 2020
Nov 4, 2024
Nov 26, 2024
Oct 13, 2021

Democracy Club website

This is the website hosted at https://democracyclub.org.uk/

Set up

This is a Django project using PostgreSQL. The project is deployed using Python 3.6.

Packages

This project uses pipenv to manage dependencies. To perform the package install, run the following within your venv:

pip install pipenv
pipenv install

Read more about pipenv package management here.

Database

First, ensure you have Postgres available.

#OSX
brew install postgres

You'll then need to create a database for this project.

createdb democracy_club

Once you're st up, run the migration:

python manage.py migrate

Blog Posts

To view blog posts, you need to first add new posts to your db. You can do this by creating an admin user in your terminal

python manage.py createsuperuser

then navigate to the /admin panel to create a new post. New posts are created at /admin/hermes/post.

Blog posts now include tags which correspond to projects, such as representatives.

We've hard-coded tags to reduce the risk of typos and to ensure that tags are used consistently. To add or edit a tag, change the tag_values variable in democracy_club/apps/hermes/admin.py.

Staging environment

Add your branch to the staging env on .circleci/config to deploy to https://stage.democracyclub.org.uk and test/view edits

DC Dependencies

  • [dc_django_utils]() is the source code for basic HTML structure, forms
  • [dc_design_system]()

Cron / scheduling / events

Deployment

This project is deployed using CircleCI.

Pages are normally cached using CloudFront, and a site-side invalidation is created on each new deployment.

[TODO]

Update docs to include

  • new pipeline settings
  • Whitenoise