do not rely on pkg_resources to get loaded (#48759)

This commit is contained in:
Emmanuel Cazenave 2020-11-23 15:26:47 +01:00
parent fab734b7e0
commit bcf1f45cba
4 changed files with 5 additions and 10 deletions

2
README
View File

@ -7,6 +7,8 @@ at least specific to the GNM project.
Settings
--------
The application authentic2_gnm should be put in INSTALLED_APPS.
CUT_API_BASE_URL
https://admin-cut-rec.grandlyon.com/api/

3
debian/50gnm.py vendored
View File

@ -13,3 +13,6 @@ SESSION_COOKIE_AGE = 3600 * 24 * 30
# allow cart@ds technical roles to be provisionned
HOBO_PROVISION_ROLE_PREFIXES = ['_cartads_']
if 'authentic2_gnm' not in INSTALLED_APPS:
INSTALLED_APPS += ('authentic2_gnm',)

View File

@ -61,11 +61,6 @@ setup(
install_requires=[
'authentic2',
],
entry_points={
'authentic2.plugin': [
'authentic2-gnm = authentic2_gnm:Plugin',
],
},
cmdclass={
'sdist': eo_sdist},
zip_safe=False,

View File

@ -37,8 +37,3 @@ class AppConfig(django.apps.AppConfig):
return False
default_app_config = 'authentic2_gnm.AppConfig'
class Plugin(object):
def get_apps(self):
return [__name__]