Project

General

Profile

Development #7010

Use debian_config_common.py from hobo in the multitenant debian_config.py

Added by Benjamin Dauvergne almost 6 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Jérôme Schneider
Category:
-
Target version:
Start date:
22 Apr 2015
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Files

Associated revisions

Revision ae937ea4 (diff)
Added by Jérôme Schneider almost 6 years ago

debian: use debian_config_common.py from hobo (#7010)

History

#1

Updated by Jérôme Schneider almost 6 years ago

#2

Updated by Benjamin Dauvergne almost 6 years ago

Il faut conserver l'effet des lignes suivantes (pour ça comparer debian_config_common.py au debian_config.py actuel):

INSTALLED_APPS = ('hobo.multitenant', 'hobo.agent.authentic2') + INSTALLED_APPS
TEMPLATE_CONTEXT_PROCESSORS = ('django.core.context_processors.request',) + TEMPLATE_CONTEXT_PROCESSORS
MIDDLEWARE_CLASSES = (
    'authentic2.middleware.XForwardedForMiddleware',
    'hobo.multitenant.middleware.TenantMiddleware',
    'hobo.multitenant.middleware.TenantSettingsMiddleware',
) + MIDDLEWARE_CLASSES
TENANT_SETTINGS_LOADERS = (
    'hobo.multitenant.settings_loaders.TemplateVars',
    'hobo.multitenant.settings_loaders.Authentic',
)
#3

Updated by Jérôme Schneider almost 6 years ago

Bien vu nouveau patch qui adapte tes remarques :

  • django.core.context_processors.request : c'est déjà dans authentic2.settings
  • MIDDLEWARE_CLASSES il n'y besoin que de rajouter authentic2.middleware.XForwardedForMiddleware
  • TENANT_SETTINGS_LOADERS il n'y a besoin que de rajouter hobo.multitenant.settings_loaders.Authentic
#4

Updated by Benjamin Dauvergne almost 6 years ago

Ok, go. À tester sur la dev.

#5

Updated by Benjamin Dauvergne almost 6 years ago

  • Status changed from En cours to Solution déployée
#6

Updated by Benjamin Dauvergne almost 6 years ago

  • Status changed from Solution déployée to Résolu (à déployer)
#7

Updated by Benjamin Dauvergne about 5 years ago

  • Status changed from Résolu (à déployer) to Solution déployée
#8

Updated by Benjamin Dauvergne about 3 years ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF