mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Adding django settings for munin.
This commit is contained in:
parent
ca6c0b5221
commit
689cb577b6
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@ class NBMuninGraph(MuninGraph):
|
|||
@property
|
||||
def stats(self):
|
||||
import datetime
|
||||
from django.conf import settings
|
||||
import os
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newsblur.settings")
|
||||
os.environ["DJANGO_SETTINGS_MODULE"] = "newsblur.settings"
|
||||
from django.conf import settings
|
||||
|
||||
stats = settings.MONGOANALYTICSDB.nbanalytics.page_loads.aggregate([{
|
||||
"$match": {
|
||||
|
|
Loading…
Add table
Reference in a new issue