Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a configuration file to be able to set custom settings to launch the Django app #32

Open
paulRbr opened this issue Feb 6, 2021 · 0 comments

Comments

@paulRbr
Copy link
Contributor

paulRbr commented Feb 6, 2021

À minima :

  • Les informations de connexion à la bdd devraient être configurable par un fichier de conf :

    'ENGINE': 'django.db.backends.postgresql',
    'NAME': 'postgres',
    'USER': 'postgres',
    'PASSWORD': 'postgres',
    'HOST': 'pgdb',
    'PORT': 5432,

  • La clé secrète utilisé par Django devrait être configurable par un fichier de conf :

    SECRET_KEY = 'j5scd&bd3#ovot#=cslv1i96m^yau^y6f7-z+kyp#9u_1itc@2'

  • Les informations de connexion à Odoo devraient être configurable par un fichier de conf :

    • l'url de odoo
    • le nom de la base de donnée
    • le username odoo
    • le password odoo

    self.url = 'http://172.19.0.1:8069'
    self.db = 'foodcoops'
    self.username = 'admin'
    self.password = 'admin'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant