Skip to content

Commit

Permalink
Fix import of django during install time (for environments like Herok…
Browse files Browse the repository at this point in the history
…u) (#120)
  • Loading branch information
deniz195 authored Apr 3, 2021
1 parent c10ca3e commit 8874af7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion todo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@
__url__ = "https://github.com/shacker/django-todo"
__license__ = "BSD License"

from . import check
try:
from . import check
except ModuleNotFoundError:
# this can happen during install time, if django is not installed yet!
pass

0 comments on commit 8874af7

Please sign in to comment.