Skip to content

Commit 3990afe

Browse files
uses new reload method in autoconfigure django.
1 parent 2f05bb2 commit 3990afe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/pa_autoconfigure_django.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ def main(repo_url, branch, domain, python_version, nuke):
3838
project.update_settings_file()
3939
project.run_collectstatic()
4040
project.run_migrate()
41-
project.webapp.reload()
41+
project.reload_webapp()
4242
print(snakesay(f'All done! Your site is now live at https://{domain}'))
4343
print()
4444
project.start_bash()
4545

4646

47-
if __name__ == '__main__':
47+
if __name__ == '__main__': # pragma: no cover
4848
arguments = docopt(__doc__)
4949
main(
5050
arguments['<git-repo-url>'],

tests/test_pa_autoconfigure_django.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_calls_all_stuff_in_right_order(self):
2727
call.update_settings_file(),
2828
call.run_collectstatic(),
2929
call.run_migrate(),
30-
call.webapp.reload(),
30+
call.reload_webapp(),
3131
call.start_bash(),
3232
]
3333

0 commit comments

Comments
 (0)