diff --git a/.gitignore b/.gitignore index 0dfb38d..c70872e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ fir_ser/.idea/ fir_ser/db.sqlite3 *.pyc -fir_ser/files/ fir_ser/venv/ fir_client/.idea diff --git a/fir_ser/api/utils/storage/caches.py b/fir_ser/api/utils/storage/caches.py index 3a36986..1c77e96 100644 --- a/fir_ser/api/utils/storage/caches.py +++ b/fir_ser/api/utils/storage/caches.py @@ -11,8 +11,10 @@ from django.utils import timezone from fir_ser.settings import CACHE_KEY_TEMPLATE,SERVER_DOMAIN from api.utils.storage.storage import Storage,LocalStorage from api.utils.crontab.sync_cache import sync_download_times_by_app_id -from api.utils.crontab import run - +try: + from api.utils.crontab import run +except Exception as e: + print(e) def get_download_url_by_cache(app_obj, filename, limit, isdownload=True,key='',udid=None): now = time.time() if isdownload is None: diff --git a/fir_ser/files/head_img.jpeg b/fir_ser/files/head_img.jpeg new file mode 100644 index 0000000..0440561 Binary files /dev/null and b/fir_ser/files/head_img.jpeg differ diff --git a/fir_ser/fir_ser/settings.py b/fir_ser/fir_ser/settings.py index 029313a..5943a36 100644 --- a/fir_ser/fir_ser/settings.py +++ b/fir_ser/fir_ser/settings.py @@ -87,11 +87,11 @@ DATABASES = { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'flyapp', 'USER': 'flyuser', - 'PASSWORD': 'flypwd00oo.1', + 'PASSWORD': 'KGzKjZpWBp4R4RSa', 'HOST': '127.0.0.1', 'PORT': '3306', #设置MySQL的驱动 - 'options': {'init_command': 'SET storage_engine=INNODB'} + 'OPTIONS': {'init_command': 'SET storage_engine=INNODB'} } }