Django custom blog engine for music and photo publishing.
Author: Alexander Chaika [email protected]
Source link: https://github.com/manti-by/manti.by
Requirements: Python 3.11, PostgreSQL 15, Redis
-
Install base system packages (second line for production servers)
$ sudo apt-get install -y wget git-core \ python3-pip python3-dev postgresql libpq-dev
-
Install Python 3.11
-
Install Postgres server
-
Install Redis server
-
Create virtual environment and install project dependencies
$ python3.11 -m venv --prompt="manti" .venv/ $ source .venv/bin/activate $ pip install -r requirements.txt
-
Create user and database
$ sudo su postgres && psql
CREATE USER manti_by WITH PASSWORD 'manti_by' CREATEDB; CREATE DATABASE manti_by OWNER manti_by;
-
Create local config file (dev or prod environment)
$ cp manti_by/settings/local.py.example manti_by/settings/local.py
-
Migrate, collect static files and create admin user
$ ./manage.py migrate $ ./manage.py collectstatic --no-input $ ./manage.py createsuperuser
-
Run local development server
$ ./manage.py runserver 127.0.0.1:8000
-
Install Docker
-
Build and run app using Makefile
$ make build $ docker compose up -d