Define BASE_URL and DATA_URL js variables in the login template. Closes #13385185
Those are expected to be defined in almost every js files. They were not before
this patch because login form doesn't use the regular main template.
from os import unlink
from os.path import isfile, join
from cubicweb.cwconfig import CubicWebConfiguration as cwcfg
regdir = cwcfg.instances_dir()
if isfile(join(regdir, 'startorder')):
if confirm('The startorder file is not used anymore in Cubicweb 3.22. '
'Should I delete it?',
shell=False, pdb=False):
unlink(join(regdir, 'startorder'))