Commit df24f23c authored by hynek's avatar hynek 🤤
Browse files

feat(templates): introduce template checks

parent c059488e
......@@ -42,7 +42,6 @@ and from the documentation on `Configuring the Environment`_.
Basic Commands
--------------
Type checks
^^^^^^^^^^^
......@@ -53,7 +52,7 @@ Running type checks with mypy:
$ mypy discuss_data
Django unit tests
^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^
::
$ docker-compose -f local.yml run django python manage.py test
......@@ -66,11 +65,12 @@ To run the tests, check your test coverage, and generate an HTML coverage report
$ docker-compose -f local.yml run django coverage run -m pytest
$ docker-compose -f local.yml run django coverage report
Live reloading and Sass CSS compilation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Django templace check
^^^^^^^^^^^^^^^^^^^^^
::
$ docker-compose -f local.yml run django python manage.py templatecheck
After having installed the node dependencies with ``npm install`` the project
can be run with ``npm run dev`` with live reloading.
I18N
^^^^
......@@ -114,6 +114,11 @@ Run container:
$ docker-compose -f local.yml up
Make migrations:
::
$ docker-compose -f local.yml run --rm django python manage.py makemigrations
Run migrations:
::
......@@ -139,6 +144,9 @@ Also, set your local Database url:
$ export DATABASE_URL=postgres://<postgres_user>:<password>@127.0.0.1:5432/<dbname>
After having installed the node dependencies with ``npm install`` the project
can be run with ``npm run dev`` with Live reloading and Sass CSS compilation.
Production
^^^^^^^^^^
......
......@@ -59,6 +59,7 @@ if env("USE_DOCKER") == "yes":
# ------------------------------------------------------------------------------
# https://django-extensions.readthedocs.io/en/latest/installation_instructions.html#configuration
INSTALLED_APPS += ["django_extensions"] # noqa F405
INSTALLED_APPS += ["django_template_check"] # noqa F405
# Your stuff...
# ------------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment