clearcode/Apache2Piwik — Issue #8: Loop over various ID_SITE in settings.py
Author: arthurlogilab
Created: 2012-02-28 10:42:19+00:00
State: open

right now for various sites we have to do change settings.py for each site.

It would be nice to loop over a dictionnary or sequence where (for example:

# key is ID_SITE & value is APACHE_LOG_FILES
SITES = {'1': ['/var/log/apache/site1.log'],
'2': ['/var/log/apache/site2.log']
}