Skip to content

Commit

Permalink
update djangolib
Browse files Browse the repository at this point in the history
  • Loading branch information
domdinicola committed Jun 4, 2022
1 parent 29294a8 commit eaf76ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ social-auth-app-django = "==5.0"
social-auth-core = {extras = ["azuread"],version = "==4.2"}
tenant-schemas-celery = "==2.0.0"
unicef-attachments = "==0.11"
unicef-djangolib = "==0.5.4"
unicef-djangolib = "==0.6"
unicef-locations = "==4.0.1"
unicef-notification = "==1.1"
unicef-restlib = "==0.7"
Expand Down
8 changes: 4 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/etools/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def get_from_secrets_or_env(var_name, default=None):

# DJANGO: HTTP
MIDDLEWARE = (
'unicef_djangolib.middleware.HealthCheckMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'etools.applications.core.auth.CustomSocialAuthExceptionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down Expand Up @@ -156,6 +157,7 @@ def get_from_secrets_or_env(var_name, default=None):
os.path.join(os.path.dirname(etools.__file__), 'applications', 'core', 'data'),
)
SHARED_APPS = (
'unicef_djangolib',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
Expand Down Expand Up @@ -578,3 +580,6 @@ def before_send(event, hint):
ETOOLS_OFFLINE_TASK_APP = "etools.config.celery.get_task_app"

UNICEF_LOCATIONS_MODEL = 'locations.Location'

PROJECT_NAME = etools.NAME
PROJECT_VERSION = etools.VERSION

0 comments on commit eaf76ad

Please sign in to comment.