mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 01:26:57 +03:00
Fix pre-commit config (#3435)
This commit is contained in:
parent
1e91d6671d
commit
0db415ad3b
4
{{cookiecutter.project_slug}}/.gitignore
vendored
4
{{cookiecutter.project_slug}}/.gitignore
vendored
|
@ -327,13 +327,13 @@ Session.vim
|
|||
tags
|
||||
|
||||
### Project template
|
||||
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %}
|
||||
{%- if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %}
|
||||
MailHog
|
||||
{%- endif %}
|
||||
{{ cookiecutter.project_slug }}/media/
|
||||
|
||||
.pytest_cache/
|
||||
|
||||
{% if cookiecutter.use_docker == 'y' %}
|
||||
{%- if cookiecutter.use_docker == 'y' %}
|
||||
.ipython/
|
||||
{%- endif %}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
exclude: "docs|node_modules|migrations|.git|.tox"
|
||||
exclude: "^docs/|/migrations/"
|
||||
default_stages: [commit]
|
||||
fail_fast: true
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
release: python manage.py migrate
|
||||
{% if cookiecutter.use_async == "y" -%}
|
||||
{%- if cookiecutter.use_async == "y" %}
|
||||
web: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker
|
||||
{%- else %}
|
||||
web: gunicorn config.wsgi:application
|
||||
{%- endif %}
|
||||
{% if cookiecutter.use_celery == "y" -%}
|
||||
{%- if cookiecutter.use_celery == "y" %}
|
||||
worker: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app worker --loglevel=info
|
||||
beat: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app beat --loglevel=info
|
||||
{%- endif %}
|
||||
|
|
|
@ -6,12 +6,16 @@ from django.db import migrations
|
|||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sites', '0003_set_site_domain_and_name'),
|
||||
("sites", "0003_set_site_domain_and_name"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='site',
|
||||
options={'ordering': ['domain'], 'verbose_name': 'site', 'verbose_name_plural': 'sites'},
|
||||
name="site",
|
||||
options={
|
||||
"ordering": ["domain"],
|
||||
"verbose_name": "site",
|
||||
"verbose_name_plural": "sites",
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user