do not rely on pkg_resources to get loaded (#48759)
This commit is contained in:
parent
fab734b7e0
commit
bcf1f45cba
2
README
2
README
|
@ -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/
|
||||
|
||||
|
|
|
@ -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',)
|
||||
|
|
5
setup.py
5
setup.py
|
@ -61,11 +61,6 @@ setup(
|
|||
install_requires=[
|
||||
'authentic2',
|
||||
],
|
||||
entry_points={
|
||||
'authentic2.plugin': [
|
||||
'authentic2-gnm = authentic2_gnm:Plugin',
|
||||
],
|
||||
},
|
||||
cmdclass={
|
||||
'sdist': eo_sdist},
|
||||
zip_safe=False,
|
||||
|
|
|
@ -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__]
|
||||
|
|
Reference in New Issue