The goal of this project is to implement an administrator interface for uploading movies and editing their information. For this purpose, an administrative panel was developed based on the Django framework. PostgreSQL is used as the database. The project is prepared for deployment in a production environment via the NGINX web server. Postman is used to check the API's functionality.
Python
Django
PostgreSQL
NGINX
Gunicorn
Postman
Docker
Clone the repository and navigate to the /infra
directory:
git clone https://github.com/temirovazat/cinemax-admin-panel.git
cd cinemax-admin-panel/infra/
Create a .env file and add project settings:
nano .env
# PostgreSQL
POSTGRES_DB=cinemax_database
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# Django
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_EMAIL=admin@mail.ru
DJANGO_SUPERUSER_PASSWORD=1234
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,[::1],django
DJANGO_SECRET_KEY=django-insecure-_o)z83b+i@jfjzbof_jn9#%dw*5q2yy3r6zzq-3azof#(vkf!#
Deploy and run the project in containers:
docker-compose up
Access the admin panel and enter the login (admin) and password (1234):
http://127.0.0.1/admin