Skip to content

Commit 66a57ab

Browse files
committed
Converted the models.py hack to django app config.
Fixes markfinger#45
1 parent 56aa271 commit 66a57ab

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

react/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
__version__ = '0.13.1'
1+
__version__ = '0.13.1'
2+
3+
default_app_config = 'react.apps.ReactConfig'

react/apps.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from django.conf import settings
2+
from django.apps import AppConfig
3+
import react.conf
4+
5+
6+
class ReactConfig(AppConfig):
7+
name = 'react'
8+
9+
def ready(self):
10+
react.conf.settings.configure(
11+
**getattr(settings, 'REACT', {})
12+
)

react/models.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)