This is the website hosted at https://democracyclub.org.uk/
This is a Django project using PostgreSQL. The project is deployed using Python 3.6.
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.
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
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
.
Add your branch to the staging env on .circleci/config to deploy to https://stage.democracyclub.org.uk and test/view edits
[dc_django_utils]()
is the source code for basic HTML structure, forms[dc_design_system]()
This project is deployed using CircleCI.
Pages are normally cached using CloudFront, and a site-side invalidation is created on each new deployment.
[TODO]
- new pipeline settings
- Whitenoise