Commits

Jason Giedymin committed fe65e71

- Proposal for 'GENERATED_MEDIA_MAP_FILE' to be obtained (getattr) 'from django.conf.settings'.
A large split Django project may have the need for generating unique map files per
site/settings file.

Comments (0)

Files changed (1)

mediagenerator/settings.py

     _media_dir = os.path.join(_root, _media_dir)
 GENERATED_MEDIA_DIR = os.path.abspath(getattr(settings, 'GENERATED_MEDIA_DIR',
                                               _media_dir))
-GENERATED_MEDIA_MAP_FILE = os.path.abspath(_map_file_path)
+GENERATED_MEDIA_MAP_FILE = os.path.abspath(
+                             getattr(settings,
+                                     'GENERATED_MEDIA_MAP_FILE',
+                                     _map_file_path)
+                           )
 
 DEV_MEDIA_URL = getattr(settings, 'DEV_MEDIA_URL',
                         getattr(settings, 'STATIC_URL', settings.MEDIA_URL))