diff --git a/fet2020/fet2020/settings.py b/fet2020/fet2020/settings.py index d36cb3bc..488c463d 100644 --- a/fet2020/fet2020/settings.py +++ b/fet2020/fet2020/settings.py @@ -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 = { diff --git a/fet2020/gallery/utils.py b/fet2020/gallery/utils.py index 35de7487..83efdaae 100644 --- a/fet2020/gallery/utils.py +++ b/fet2020/gallery/utils.py @@ -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