A django politician portal app. https://freedomvote.ch

Marcus Moeller 65dd4698c6 updated git repo url 8 years ago
app 65dd4698c6 updated git repo url 8 years ago
tools bae9302676 initial commit 8 years ago
Dockerfile bae9302676 initial commit 8 years ago
LICENSE bae9302676 initial commit 8 years ago
Makefile bae9302676 initial commit 8 years ago
README.md bae9302676 initial commit 8 years ago
docker-compose.yml bae9302676 initial commit 8 years ago
envpy bae9302676 initial commit 8 years ago
gulpfile.js bae9302676 initial commit 8 years ago
package.json bae9302676 initial commit 8 years ago
requirements.txt bae9302676 initial commit 8 years ago

README.md

Freedomvote

A django politician portal app

Installation

Requirements

  • python >= 2.7
  • python-pip

Run pip install -r requirements.txt to install all requirements.

Docker

To run Freedomvote in a docker container, you need to install docker and docker-compose and execute those commands:

$ make docker-init docker

Now you can access the frontend on http://localhost:8000

Languages

The whole application is multilingual. Per default the languages German, Italian and French are installed. The translation are located in app/locale/<LANG_CODE>/LC_MESSAGES/django.po. After editing the translation, run python manage.py compilemessages

To install another language (English in this example) make the following steps:

app/freedomvote/settings.py

LANGUAGES = (
  ...
  ...
  ('en', _('english')),
)

in your environment:

$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py makemessages -l en
$ python manage.py compilemessages

License

GPLv3 see LICENSE