Skip to content

Commit dce0321

Browse files
uses new reload method in django subcommand.
1 parent 3990afe commit dce0321

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/django.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def autoconfigure(
5858
project.update_settings_file()
5959
project.run_collectstatic()
6060
project.run_migrate()
61-
project.webapp.reload()
61+
project.reload_webapp()
6262
typer.echo(snakesay(f"All done! Your site is now live at https://{domain_name}\n"))
6363
project.start_bash()
6464

@@ -105,6 +105,6 @@ def start(
105105

106106
project.update_wsgi_file()
107107

108-
project.webapp.reload()
108+
project.reload_webapp()
109109

110110
typer.echo(snakesay(f"All done! Your site is now live at https://{domain}"))

tests/test_cli_django.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_autoconfigure_calls_all_stuff_in_right_order(mock_django_project):
6868
call.update_settings_file(),
6969
call.run_collectstatic(),
7070
call.run_migrate(),
71-
call.webapp.reload(),
71+
call.reload_webapp(),
7272
call.start_bash(),
7373
]
7474
assert (
@@ -169,7 +169,7 @@ def test_start_calls_all_stuff_in_right_order(mock_django_project):
169169
call.create_webapp(nuke=True),
170170
call.add_static_file_mappings(),
171171
call.update_wsgi_file(),
172-
call.webapp.reload(),
172+
call.reload_webapp(),
173173
]
174174
assert (
175175
f"All done! Your site is now live at https://www.domain.com" in result.stdout

0 commit comments

Comments
 (0)