black files
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user