added needed settings + fix missing import
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
from app.settings import *
|
||||||
|
|
||||||
INSTALLED_APPS += [
|
INSTALLED_APPS += [
|
||||||
'bootstrap4',
|
'bootstrap4',
|
||||||
@@ -16,3 +17,7 @@ BOOTSTRAP4 = {
|
|||||||
'crossorigin': 'anonymous',
|
'crossorigin': 'anonymous',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STATIC_URL = "/cresus/static/"
|
||||||
|
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
|
||||||
|
FORCE_SCRIPT_NAME = "/cresus"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import datetime
|
import datetime
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
from django.utils import timezone as tz
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
@@ -66,7 +67,6 @@ both 'month' and 'year' keyword arguments")
|
|||||||
|
|
||||||
qs = self.get_queryset(month=month, year=year)
|
qs = self.get_queryset(month=month, year=year)
|
||||||
data = self.calculate_data(qs)
|
data = self.calculate_data(qs)
|
||||||
print(qs, data)
|
|
||||||
return qs, data
|
return qs, data
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user