black files

This commit is contained in:
2022-04-19 15:18:58 +00:00
parent 1f33c8165e
commit 89ff6789f2
2 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ INSTALLED_APPS = [
"django.contrib.sites",
"django.contrib.sitemaps",
"django.contrib.flatpages",
# third-party
"taggit",
"ckeditor",
"ckeditor_uploader",
@@ -79,7 +79,7 @@ INSTALLED_APPS = [
"fontawesomefree",
"whoosh",
"haystack",
# local apps
"core.apps.CoreConfig",
"posts.apps.PostsConfig",
"members.apps.MembersConfig",
@@ -203,7 +203,7 @@ MEDIA_URL = "/files/"
TAGGIT_FORCE_LOWERCASE = True
#CKEDITOR
# CKEDITOR
CKEDITOR_UPLOAD_PATH = "upload"
CKEDITOR_CONFIGS = {

View File

@@ -50,7 +50,7 @@ def get_image_list(folder_name):
def get_folder_list():
if os.path.exists(settings.MEDIA_ROOT + "/" + gallery_path):
return next(os.walk(settings.MEDIA_ROOT + "/" + gallery_path))[1]
return None