Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 702 Bytes

README.md

File metadata and controls

33 lines (30 loc) · 702 Bytes

News site

Python 3.8, Django 3

This is a simple news site with different types of users - regular users, editors and administrators. Users' posts need to be approved by admins first, where editors' and admins' don't.

pip install -r requirements.txt

ENV config

ENV config can be set up by:

cp .env-example .env

Make sure to set all required variables.

DB config

To use prebuilt groups and permissions run:

python manage.py migrate
python manage.py loaddata users.json groups.json

Celery + Redis.

This app uses Celery + Redis as brokers to send emails. Make sure to set up Redis on your machine and run:

redis-server
celery worker -A news