BO 1.27+1 requirements

This commit is contained in:
Tibor Bossanyi (Freelancer) 2021-09-09 20:57:45 +02:00
parent fb4f0bcca6
commit 203ce1e7f8
4 changed files with 17 additions and 15 deletions

View File

@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os
BACKOFFICE_VERSION = 1.25
BACKOFFICE_VERSION = 1.27
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -51,7 +51,7 @@ INSTALLED_APPS = [
'rangefilter',
'adminsortable2',
'inline_actions',
#'django_cron',
'django_cron',
]
MIDDLEWARE = [
@ -174,7 +174,7 @@ LOGGING = {
},
}
#CRON_CLASSES = [
# 'aitrainer_backoffice.controlling.cron.sync_customers',
CRON_CLASSES = [
'aitrainer_backoffice.controlling.cron.sync_customers',
# ...
#]
]

View File

@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os
BACKOFFICE_VERSION = 1.25
BACKOFFICE_VERSION = 1.27
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -28,7 +28,8 @@ SECRET_KEY = '9874959872==9847588jkklnkln$asdf' #os.environ['DJANGO_KEY']
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['62.171.188.119', 'localhost', 'andio.eu', 'aitrainer.info','aitrainer.app', 'admin.aitrainer.info', "admin.aitrainer.app"]
ALLOWED_HOSTS = ['62.171.188.119', 'localhost', 'andio.eu', 'aitrainer.info','aitrainer.app', 'admin.aitrainer.info',
"admin.aitrainer.app"]
# Application definition
@ -47,7 +48,7 @@ INSTALLED_APPS = [
'rangefilter',
'adminsortable2',
'inline_actions',
#'django_cron',
'django_cron',
]
MIDDLEWARE = [
@ -185,7 +186,7 @@ CACHES = {
}
}
#CRON_CLASSES = [
# 'aitrainer_backoffice.aitrainer_backoffice.controlling.cron.sync_customers',
CRON_CLASSES = [
'aitrainer_backoffice.aitrainer_backoffice.controlling.cron.sync_customers',
# ...
#]
]

View File

@ -5,7 +5,7 @@ import datetime
class MyCronJob(CronJobBase):
print(datetime.datetime.now(), " *** START sync customers ")
RUN_EVERY_MINS = 60 # every 2 hours
RUN_EVERY_MINS = 60
schedule = Schedule(run_every_mins=RUN_EVERY_MINS)
code = 'aitrainer_backoffice.controlling.cron' # a unique code

View File

@ -13,6 +13,7 @@ mysqlclient==2.0.1
requests==2.24.0
pillow==7.2.0
gunicorn==20.0.4
adminsortable2==0.7.2
inline_actions==2.4.0
django-admin-sortable2==1.0
django-inline_actions==2.4.0
django-admin-rangefilter==0.8.1
django-cron==0.5.1