Unfinished Django project that I have started a while ago when I was learning Django. It is a website similar to 9gag but for pasting texts that are converted to images with imgkit and Celery libraries. The GUI is based on Bootstrap.
How to run in development environment:
- Install Docker along with docker-compose.
- Copy sample config file
.env.example
to.env
and setDEBUG
to1
. - Use
docker-compose build
to create container images. - Use
docker-compose up
to start the container. - Run
./setup.sh
to collect static files, setup the database and create superuser. - Then go to
http://127.0.0.1:8000
and access the website.
How to run in production environment:
- Install Docker along with docker-compose.
- Copy sample config file
.env.example
to.env
and change all the credentials. - Use
docker-compose -f docker-compose.prod.yml build
to create container images. - Use
docker-compose -f docker-compose.prod.yml up
to start the container. - Run
./setup.prod.sh
to collect static files, setup the database and create superuser. - Then go to
http://127.0.0.1:8000
and access the website.
TODO:
- REST API with Django REST framework
- Comments
- Comments pagination