Skip to content

SeRj-ThuramS/template-django-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJANGO Application Template

Settings in the environment

  • python v3.10.5 (recommended version)
  • django v4.0.6 (python module)
  • watchdog v2.1.9 (python module)
  • transliterate v1.10.2 (python module)

Copying a repository

git clone git@github.com:SeRj-ThuramS/template-django-application.git

Creating a virtual environment

Remember that for each OS you need to create a separate environment

python -m venv venv_{win64|win32|linux}

Login to windows environment

.\venv_{win64|win32}\Scripts\activate

Login to linux environment

source venv_linux/bin/activate

Installing required packages

pip install django==4.0.6 watchdog==2.1.9 transliterate==1.10.2

PIP Update

python -m pip install --upgrade pip

Leaving the environment

deactivate

Launch project for development

python main.py --name name_project --migrate models --debug ...

Keys to run the application

--name <name_project> - the name of the project is given. This is a required parameter

--migrate - run the migration of DJANGO models to the database. The folder with DJANGO models is specified. Example --migrate models, --migrate src.models

--debug - run in development mode. This mode ensures that the application is restarted after saving changes in the project files. It is not recommended to use this mode for release applications.

... - means that you can specify your options like "--src script --src1 script ...". (--src, --src1) - path to the package. (script, script1) - executable module

About

It will help you to easily write a python application using Django ORM

Resources

Stars

Watchers

Forks

Contributors

Languages