Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
removed sitemap from static, added comments to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Dec 15, 2015
1 parent 94eae13 commit 170a274
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions quokka/settings.py
Expand Up @@ -40,10 +40,13 @@

"""
Not needed by flask, but those root folders are used
by FLask-Admin file manager
by FLask-Admin file manager and Media module
"""
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))

# If you need different folder to save media files
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'mediafiles')

STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')
ROOT_DIR = os.path.abspath(os.path.join(PROJECT_ROOT, '..'))

Expand All @@ -56,7 +59,7 @@
Files on MAP_STATIC_ROOT will be served from /static/
example: /static/favicon.ico will be served by site.com/favicon.ico
"""
MAP_STATIC_ROOT = ('/robots.txt', '/sitemap.xml', '/favicon.ico')
MAP_STATIC_ROOT = ('/robots.txt', '/favicon.ico')


"""
Expand All @@ -71,8 +74,8 @@
by default it is in /modules, you can change if needed
"""

BLUEPRINTS_MODULE_NAME = 'main'
BLUEPRINTS_PATH = 'modules'
BLUEPRINTS_MODULE_NAME = 'main'
BLUEPRINTS_OBJECT_NAME = 'module'

"""
Expand Down Expand Up @@ -239,6 +242,13 @@
MEDIA_VIDEO_ALLOWED_EXTENSIONS = ('avi', 'mp4', 'mpeg')
MEDIA_FILE_ALLOWED_EXTENSIONS = ('pdf', 'txt', 'doc', 'docx', 'xls', 'xmlsx')

"""
Quokka-Themes checks `THEME_PATHS` configuration variable to find
directories that contain themes. The theme's identifier in info.json
must match the name of its directory.
"""
# THEME_PATHS = '/etc/themes/'

# default admin THEME
ADMIN_THEME = 'admin'
"""
Expand Down

0 comments on commit 170a274

Please sign in to comment.