Skip to content

Commit

Permalink
Merge pull request #32 from julen/bugfix/override_settings
Browse files Browse the repository at this point in the history
Load statici18n conf via Django's `AppConfig`
  • Loading branch information
Sébastien Fievet committed Dec 8, 2017
2 parents 6f2aefc + 3c71242 commit 75c71c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/statici18n/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# following PEP 386
__version__ = "1.4.0"

default_app_config = 'statici18n.apps.StaticI18NConfig'
8 changes: 8 additions & 0 deletions src/statici18n/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.apps import AppConfig


class StaticI18NConfig(AppConfig):
name = 'statici18n'

def ready(self):
from . import conf # noqa

0 comments on commit 75c71c2

Please sign in to comment.