This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new aa29ca6 AIRAVATA-2934 Create path to AppConfig class
aa29ca6 is described below
commit aa29ca6b666f6c5a6fa1f98ca7c51aae2f112041
Author: Marcus Christie <[email protected]>
AuthorDate: Fri Mar 22 15:59:51 2019 -0400
AIRAVATA-2934 Create path to AppConfig class
---
django_airavata/settings.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/django_airavata/settings.py b/django_airavata/settings.py
index 96d23e2..8776422 100644
--- a/django_airavata/settings.py
+++ b/django_airavata/settings.py
@@ -91,8 +91,12 @@ CUSTOM_DJANGO_APPS = []
# )
#
for entry_point in iter_entry_points(group='airavata.djangoapp'):
- CUSTOM_DJANGO_APPS.append(enhance_custom_app_config(entry_point.load()))
- INSTALLED_APPS.append(entry_point.name)
+ custom_app = enhance_custom_app_config(entry_point.load())
+ CUSTOM_DJANGO_APPS.append(custom_app)
+ # Create path to AppConfig class (otherwise the ready() method doesn't get
+ # called)
+ INSTALLED_APPS.append("{}.{}".format(entry_point.module_name,
+ entry_point.attrs[0]))
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',