Public-facing content management system for the purposes of a student organization. Integrates with existing account management.
Uses Django 1.10.
Disclaimer: This software is currently built with a branded theme for TKO-äly ry. No permission to impersonate the association is implied. Please replace the branding and contact information with your own if you wish to publish this application.
Legacy members database integration.
The bundled "members.sqlite3" includes a database that looks like the
real thing, but with fake data. It is configured to be used by
default. It includes three users, kayttaja
(user), virkailija
(officer) and yllapitaja
(administrator).
Not to be confused with the Django bundled flatpages app, the
tekis.flatpages
app provides internationalized flatpages that
organize into a preconfigured, two-level menu hierarchy.
Structured storage, management and display of association board members and officers.
- Make sure you are running
Python 3.6
or later and havepipenv
installed. You might need to installgettext
to run step 5. - Copy
.env.example
to.env
and modify it to suit your needs - Install project requirements with
pipenv install
- Migrate database with
python manage.py migrate
- Compile translations with
python manage.py compilemessages
- Finally, run the project with
python manage.py runserver
Repeat these steps every time you update for smooth sailing. For
production deployment, also run python manage.py collectstatic
.
Note: settings.py
has a setting named ALLOWED_HOSTS which must be changed to the domain where the project is hosted (for security reasons)
docker-compose build
to build the image (The image will have Ubuntu 16.04 and Python 3.6 installed).- Rename
.env.example
to.env
and modify it to suit your needs - Use
docker ps
to find your container id. You will need it in the next step. docker exec -it <CONTAINER ID> python manage.py compilemessages
to compile translationsdocker exec -it <CONTAINER ID> python manage.py migrate
to migrate databasedocker-compose up -d
to start the server. The server defaults to port 8000. This can be changed in the.env
file.- To stop the container, use
docker-compose down
.