mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding django settings for munin.
This commit is contained in:
parent
fbe42ce1ef
commit
ca6c0b5221
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ class NBMuninGraph(MuninGraph):
|
|||
def stats(self):
|
||||
import datetime
|
||||
from django.conf import settings
|
||||
import os
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newsblur.settings")
|
||||
|
||||
stats = settings.MONGOANALYTICSDB.nbanalytics.page_loads.aggregate([{
|
||||
"$match": {
|
||||
|
|
Loading…
Add table
Reference in a new issue