fix static files
This commit is contained in:
parent
42a85025a3
commit
41e694d87b
@ -39,10 +39,11 @@ static_files={
|
|||||||
# '/robots.txt': {'content_type': 'text/html', 'filename': 'robots.txt'},
|
# '/robots.txt': {'content_type': 'text/html', 'filename': 'robots.txt'},
|
||||||
'/favicon.ico': {'filename': 'favicon.ico'},
|
'/favicon.ico': {'filename': 'favicon.ico'},
|
||||||
'/img/icons': './img/icons',
|
'/img/icons': './img/icons',
|
||||||
'/manifest.json': {'filename': 'manifest.json'},
|
'/manifest.webmanifest': {'filename': 'manifest.webmanifest'},
|
||||||
'/css': './css',
|
'/assets':'./assets',
|
||||||
'/media': './media',
|
#'/css': './css',
|
||||||
'/js': './js',
|
#'/media': './media',
|
||||||
|
#'/js': './js',
|
||||||
}
|
}
|
||||||
if "UseRobots" in os.environ and os.environ['UseRobots'].upper() == "TRUE":
|
if "UseRobots" in os.environ and os.environ['UseRobots'].upper() == "TRUE":
|
||||||
static_files['/robots.txt'] = {'content_type': 'text/html', 'filename': 'robots.txt'}
|
static_files['/robots.txt'] = {'content_type': 'text/html', 'filename': 'robots.txt'}
|
||||||
|
Loading…
Reference in New Issue
Block a user