/CRUD_multiapp

Unfinished project created to develop skills in the field of django framework, docker, app building and DevOPS principles.

Primary LanguagePython

CRUD_multiapp

Project created to develop skills in the field of django framework, docker, app building and DevOPS principles.

In short it should transform into Microservices app

Project requirements

  • Python3 at least 3.6
  • Django version 3.2.16

How to run in DEBUG mode.

To download the project directly from Github:


  1. Open ,,Code" tab

obraz

  1. Copy this part

obraz

  1. Paste it into terminal window after "git clone"

Shhh. Remember that you need to press ctrl+l_shift+v to paste it into regular terminal. Or something like this


Final command should look like:

git clone git@github.com:Kotmin/CRUD_multiapp.git

We highly recomend do use for this purpose an virtual environment python

Python has two main virtual env managers: venv and conda. We'll focus at the first one.

To create simple venv

Just run

python -m venv

To log in into (pattern "source ENVName/bin/activate")

For us that should be

source venv/bin/activate

Sometimes the path should be slightly different like venv/Scripts/activate

Right now name of our env should appear obraz

Congratulation you're working now in semi-separated environment. Hmmmm you don't have any strong separation sooo be carefull. Just read the docs what that exactly is. And the most important part. Have Fun!

To exit

deactivate

We need proper versions of external libraries

Pip install specific versions of multiple packages:

pip install -r ./requirements.txt

Initialisation of new database (I've leave default database setting, so if you are not going to change it immediately you shall run this command)

python manage.py migrate

For running whole project type

python manage.py runserver