Second assignment with Django
This is the final assignement of the first semester. Goal of People can sign up with their discord or github account. People can then write posts, follow people and comment under other users posts.
Steps to get the project up and running.
- Add your own security key to secret_key.json file.
####NB! You should have docker pre-installed on your machine. First navigate to the root folder of the cloned folder.
Build initial image from a Dockerfile
docker build .
Make migrations inside the container
docker-compose run web python /code/manage.py migrate
Make superuser for the admin inside the container
docker-compose run web python /code/manage.py createsuperuser
docker-compose up -d --build
docker ps and you should see two containers running:
1 for django
2 for postreSQL
Django should now be
Database (Updated )
Database is now running on postreSQL and is configured via Docker.
Please feel free to contribute
Initial project was provided by @rrebase.