Site to display the rating of students at the university
This project provides you a working Django environment without requiring you to install Python/Django, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.
-
Install Docker and Docker-compose;
-
Clone this project and then cd to the project folder;
-
Create your own .env file by copying .env.example:
$ cp src/.env.example src/.env
-
Update the environment variables in the docker-compose.yml and .env files.
-
Build the images and run the containers:
$ docker-compose -f docker-compose.yml up -d --build
-
Run database migrations:
$ docker-compose run django python manage.py migrate
-
Collects the static files into STATIC_ROOT:
$ docker-compose run django python manage.py collectstatic
-
You've done! Main page is available on http://localhost
-
After finishing work, you can stop running containers:
$ docker-compose down