Skip to content

Commit

Permalink
Remove redundant runserver_migrate manage.py command
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Jan 4, 2025
1 parent edf7c31 commit 8dc313b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
3 changes: 2 additions & 1 deletion app/app/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def main():
sys.path.insert(0, str(BASE_DIR))
if len(sys.argv) > 2:
os.environ["LAB_CONTENT_ENTRYPOINT"] = sys.argv[2]
execute_from_command_line(["manage.py", "runserver_migrate"])
execute_from_command_line(["manage.py", "collectstatic", "--noinput"])
execute_from_command_line(["manage.py", "runserver"])
else:
print(f"Unknown command: {sys.argv[1]}")

Expand Down
5 changes: 5 additions & 0 deletions app/app/settings/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@
'NAME': BASE_DIR / 'db.sqlite3',
}
}

MIGRATION_MODULES = {
# Disables migrations for all apps
app_label: None for app_label in INSTALLED_APPS
}
Empty file removed app/labs/management/__init__.py
Empty file.
Empty file.
13 changes: 0 additions & 13 deletions app/labs/management/commands/runserver_migrate.py

This file was deleted.

0 comments on commit 8dc313b

Please sign in to comment.