Skip to content

stomatocode/techsalerno

Repository files navigation

TechSalerno

Working Association

Built with Django Naqsh Black code style

Settings

Moved to settings.

Basic Commands

Setting Up Your Users

  • To create an superuser account, use this command:

    $ python manage.py createsuperuser
    

Type checks

Running type checks with mypy:

$ mypy techsalerno

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 py.test

$ pytest

Celery

This app comes with Celery.

To run a celery worker:

cd techsalerno
celery -A config.celery worker -l info

Please note: For Celery's import magic to work, it is important where the celery commands are run. If you are in the same folder with manage.py, you should be right.

Deployment

The following details how to deploy this application.