Skip to content

DAKExDUCK/duck-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DUCK-IT

Setup

Linux

  1. Clone the repository:
$ git clone https://github.com/DAKExDUCK/duck-it.git
$ cd duck-it
  1. Create venv and activate it:
$ python3 -m venv venv
$ source venv/bin/activate
  1. Then install the dependencies:
(venv) $ pip install -r requirements.txt

Windows

  1. Clone the repository:
git clone https://github.com/DAKExDUCK/duck-it.git
cd duck-it
  1. Create venv and activate it:
python -m venv venv
venv\Scripts\activate.bat
  1. Then install the dependencies:
(venv) pip install -r requirements.txt

Migrations

  1. Install MySQL server (or MariaDB) and start it

  2. Create secret_key

Linux:

$ python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'

Windows:

python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
  1. Create .env file
SECRET_KEY="secret_key"

DB_NAME="name"
DB_USER="user"
DB_PASSWD="passwd"
DB_HOST="localhost"
DB_PORT="port"
  1. Make migrations
python manage.py makemigrations
python manage.py migrate
  1. Create super user
python manage.py createsuperuser

About

Educational and news platform about IT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •