-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapps.py
More file actions
22 lines (17 loc) · 740 Bytes
/
apps.py
File metadata and controls
22 lines (17 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from __future__ import unicode_literals
from django.apps import AppConfig
# from models import AmountModel, WinningsModel, SpreadModel
from decimal import Decimal
class ChikunConfig(AppConfig):
name = 'chikun'
verbose_name = "crypto-chikun"
# def ready(self):
# MyModel = self.get_model('AmountModel')
# print MyModel
# if not MyModel.objects.all().exists():
# MyModel.objects.create(high_amount=Decimal('0')).save()
# if not WinningsModel.objects.all().exists():
# WinningsModel.objects.create(high_winnings=Decimal('0')).save()
#
# if not SpreadModel.objects.all().exists():
# SpreadModel.objects.create(high_spread=Decimal('0')).save()