Projet

Général

Profil

« Précédent | Suivant » 

Révision 9003c07e

Ajouté par Jérôme Schneider il y a plus de 9 ans

Centralized config.py into mandaye core

All the configuration is now in ini files.
You could have 3 levels of ini files : * default mandaye core ini file * default mandaye project ini file * optional ini file loading with --config option

Closes #5495

Voir les différences:

mandaye/skel/example.module/__init__.py
1 1
__version__="0.1.0"
2

  
3
import os
4

  
5
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
6
default_config = os.path.join(BASE_DIR, 'default-config.ini')

Formats disponibles : Unified diff