Skip to content

Commit

Permalink
fix: django_includes is not required anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
hartym committed Feb 2, 2021
1 parent 337c26b commit 9c83538
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
# Generated by Medikit 0.8.0 on 2021-02-01.
# Generated by Medikit 0.8.0 on 2021-02-02.
# All changes will be overriden.
# Edit Projectfile and run “make update” (or “medikit update”) to regenerate.

Expand Down
8 changes: 6 additions & 2 deletions django_zero/jinja2.py
Expand Up @@ -5,7 +5,6 @@
from django.urls import reverse
from django.utils.encoding import force_text
from django.utils.translation import gettext
from django_includes.jinja2 import DjangoIncludesExtension
from jinja2 import Environment, lexer, nodes
from jinja2.ext import Extension

Expand Down Expand Up @@ -169,7 +168,12 @@ def environment(**options):
)

env.add_extension(DjangoCsrfExtension)
env.add_extension(DjangoIncludesExtension)
try:
from django_includes.jinja2 import DjangoIncludesExtension

env.add_extension(DjangoIncludesExtension)
except ImportError:
pass
env.add_extension(DjangoUrlExtension)
env.add_extension(SpacelessExtension)

Expand Down
2 changes: 1 addition & 1 deletion requirements-celery.txt
Expand Up @@ -11,7 +11,7 @@ click==7.1.2
django-celery-beat==2.2.0
django-celery-results==2.0.1
django-timezone-field==4.1.1
django==3.1.5
django==3.1.6
kombu==5.0.2
prompt-toolkit==3.0.14
python-crontab==2.5.1
Expand Down
2 changes: 1 addition & 1 deletion requirements-channels.txt
Expand Up @@ -9,7 +9,7 @@ channels==3.0.3
constantly==15.1.0
cryptography==3.3.1
daphne==3.0.1
django==3.1.5
django==3.1.6
hyperlink==21.0.0
idna==3.1
incremental==17.5.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Expand Up @@ -13,7 +13,7 @@ coverage==5.4
cssselect==1.1.0
django-debug-toolbar==3.2
django-extensions==3.1.0
django==3.1.5
django==3.1.6
git-semver==0.3.2
gitdb==4.0.5
gitpython==3.1.12
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -8,7 +8,7 @@ colorama==0.4.4
cryptography==3.3.1
defusedxml==0.6.0
django-allauth==0.44.0
django==3.1.5
django==3.1.6
idna==2.10
jinja2==2.11.3
markupsafe==1.1.1
Expand Down
8 changes: 2 additions & 6 deletions setup.py
@@ -1,4 +1,4 @@
# Generated by Medikit 0.8.0 on 2021-02-01.
# Generated by Medikit 0.8.0 on 2021-02-02.
# All changes will be overriden.
# Edit Projectfile and run “make update” (or “medikit update”) to regenerate.

Expand Down Expand Up @@ -62,11 +62,7 @@ def execfile(fname, globs, locs=None):
"whitenoise ~= 5.2.0",
],
extras_require={
"celery": [
"celery ~= 5.0",
"django_celery_beat ~= 2.2.0",
"django_celery_results ~= 2.0.0",
],
"celery": ["celery ~= 5.0", "django_celery_beat ~= 2.2.0", "django_celery_results ~= 2.0.0"],
"channels": ["channels ~= 3.0.0", "daphne ~= 3.0.0"],
"dev": [
"cookiecutter ~= 1.7",
Expand Down

0 comments on commit 9c83538

Please sign in to comment.