Update generated urls

This commit is contained in:
2016-01-24 07:34:44 +08:00
parent 3f9bdd36f5
commit a83095a839
2 changed files with 131 additions and 131 deletions
+2 -2
View File
@@ -7,12 +7,12 @@ freezer = Freezer(app)
if __name__ == '__main__':
# rebuild static files using flask_frozen
app.config['FREEZER_BASE_URL']='/wtformsparsleyjs/'
app.config['FREEZER_BASE_URL']='/wtforms-parsleyjs/'
freezer.freeze()
# copy result to index.html
shutil.copy( join('wtformsparsleyjs', 'sample', 'build', 'parsley_testform'), 'index.html')
try:
shutil.copytree( join('wtformsparsleyjs', 'sample', 'build', 'static'), 'static')
shutil.copytree( join('wtforms-parsleyjs', 'sample', 'build', 'static'), 'static')
except OSError:
print("Please delete the root 'static' folder to redo it")