docker env vars, selenium docker simplified, favicon, settings clean
This commit is contained in:
@@ -21,8 +21,17 @@ def link_list(request):
|
||||
[ os.path.join(app_url, "admin"), os.path.join(app_url, "urls") ] + \
|
||||
[ os.path.join(app_url, "logs", log_type) for log_type in ["database", "debug", "info", "warning"] ] + \
|
||||
[ os.path.join(app_url, "task", l) for l in links_fetch + links_process ]
|
||||
# Json
|
||||
return JsonResponse({"links": list_links })
|
||||
|
||||
# Links tuple
|
||||
links = [(l, l) for l in list_links]
|
||||
# HTML
|
||||
html = "<html><head><title>Links</title></head><body><h1>Links</h1><ul>"
|
||||
for text, url in links:
|
||||
html += f'<li><a href="{url}" target="_blank">{text}</a></li>'
|
||||
html += "</ul></body></html>"
|
||||
|
||||
return HttpResponse(html)
|
||||
|
||||
|
||||
####################################################################################################
|
||||
def logs(request, log_type):
|
||||
|
||||
Reference in New Issue
Block a user