added needed settings + fix missing import

This commit is contained in:
my_webapp user account
2017-09-23 10:43:01 +02:00
parent 2478e1b650
commit c73750f28a
2 changed files with 6 additions and 1 deletions

View File

@@ -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"

View File

@@ -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