mirror of
https://github.com/wassname/wtforms-parsleyjs.git
synced 2026-09-12 13:00:19 +08:00
Update generated urls
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user