Pipeline status

  • Main branch status - main
  • Main branch status - develop

Database

image description

How to run it on windows

  1. Clone this repo and prepare workplace
  1. Download application dependencies:
  • if you want to make some tests you need to run:

python -m pip install -r requirements\test.txt

  • if you want to develop some features you need to run:

python -m pip install -r requirements\dev.txt

  • or if you want to run it in production you need to run:

python -m pip install -r requirements\prod.txt

  1. Get a secret variables for your application:

create .env file with example.env variables.

Prevent third parties from getting values of your .env variables

  1. Migrate database:

python lyceum\manage.py makemigrations

python lyceum\manage.py migrate

  1. Create your admin account:

python lyceum\manage.py createsuperuser

  • write your login
  • write your email
  • write your password
  • confirm the password
  1. finally run it by this command:

python lyceum\manage.py runserver

Then the application will start on http://localhost:8000

How to run in on Linux OS

  1. Clone this repo and prepare workplace
  1. Download application dependencies:
  • if you want to make some tests you need to run:

python3 -m pip3 install -r requirements/test.txt

  • if you want to develop some features you need to run:

python3 -m pip3 install -r requirements/dev.txt

  • or if you want to run it in production you need to run:

python3 -m pip3 install -r requirements/prod.txt

sudo apt-get install gettext

  1. Get a secret variables for your application:

create .env file with example.env variables.

Prevent third parties from getting values of your .env variables

  1. Migrate database:

python3 lyceum/manage.py makemigrations

python3 lyceum/manage.py migrate

  1. Create your admin account:

python3 lyceum/manage.py createsuperuser

  • write your login
  • write your email
  • write your password
  • confirm the password
  1. finally run it by this command:

python3 lyceum/manage.py runserver

Then the application will start on http://localhost:8000