Skip to content

Carkham/Dkhtn_Django

Repository files navigation

Dkhtn_Django

BUAA-SE-2023-dkhtn's django repo

Built with Cookiecutter Django Black code style

Start With

$ pip install -r requirements/local.txt

Project Structure

dkhtn_django
│   README.md    
│   ...
└───dkhtn_django (apps)
│   │   logs (日志模块)
│   └───users (用户模块)
│       │   tests (单元测试)
│       │   urls.py
│       │   views.py
│       │   ...
│   
└───configs
    │   urls.py
    │   wsgi.py
    └───settings (配置文件)

Settings

Moved to settings.

Basic Commands

Type checks

Running type checks with mypy:

$ mypy dkhtn_django

Test coverage

To run the tests, check your test coverage, and generate an HTML coverage report:

$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html

Running tests with pytest

$ pytest

Live reloading and Sass CSS compilation

Moved to Live reloading and SASS compilation.

Deployment

The following details how to deploy this application.