Apache2Piwik icon indicating copy to clipboard operation
Apache2Piwik copied to clipboard

Loop over various ID_SITE in settings.py

Open arthurzenika opened this issue 12 years ago • 0 comments

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'] }

arthurzenika avatar Feb 28 '12 10:02 arthurzenika