Skip to content

Installation

Nilanchala edited this page Oct 22, 2023 · 3 revisions

Installation

Checkout the code from our git repository

git clone git@github.com:StackTipsLab/bloggy.git

Create a virtual env

python3 -m venv .venv
source .venv/bin/activate

Install python dependencies

pip3 install -r requirements.txt

Rename the .env.example file to .env and provide all te configurations details including Database, Email Configurations. Bare minimum, you will need these properties to get started.

SECRET_KEY=
DEBUG=True
ALLOWED_HOSTS=127.0.0.1,localhost
DEVELOPMENT_MODE=True

# Your database configuration details
DB_NAME=bloggy
DB_USER=root
DB_PASSWORD=password
DB_HOST=127.0.0.1
DB_PORT=3306

Create and apply database migrations

python3 manage.py makemigrations
python3 manage.py migrate

Create superuser

python3 manage.py createsuperuser

Collect static files before publishing or development.

python3 manage.py collectstatic

Start the application

python3 manage.py runserver

Clone this wiki locally