Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

avazcoderr/academy-back

Repository files navigation

academy-back

Academy-back

Installation

To set up the project locally, follow these steps:

  1. Clone the repository

    git clone git@github.com:avazcoderr/academy-back.git
    cd academy-back
  2. Create a virtual environment

    python3 -m venv venv
    source venv/bin/activate # For Windows, use `venv\Scripts\activate`
  3. Install required packages

    pip install -r requirements.txt
  4. PostgreSQL setup

Install PostgreSQL and create database:

# Install PostgreSQL (Ubuntu/Debian)
sudo apt update
sudo apt install postgresql postgresql-contrib

# Create database
sudo -u postgres psql
CREATE DATABASE my_db;
CREATE USER test_user WITH PASSWORD 'your_strong_password';
GRANT ALL PRIVILEGES ON DATABASE my_db TO my_user;
\q
  1. Configure Environment Variables Rename the .env.example file to .env and replace your_secret_key with your actual Django secret key, along with any other necessary environment-specific values:

    SECRET_KEY=your_secret_key
  2. Apply migrations

    python manage.py migrate
  3. Create a superuser

    python manage.py createsuperuser
  4. Run the project

    python manage.py runserver

Usage

After starting the project, you can access the following URLs:

http://localhost:8000/ - Home page
http://localhost:8000/admin/ - Admin panel

About

This project is intended for service businesses.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages