Skip to content

Commit

Permalink
Merge branch 'main' into more-runtime-support
Browse files Browse the repository at this point in the history
  • Loading branch information
spatocode authored Sep 27, 2023
2 parents f66bac4 + 9849d6a commit c6e520f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ var manageCmd = &cobra.Command{
}

runtime := config.NewPythonRuntime(utils.Command())
python := runtime.(*config.Python)
if !strings.HasPrefix(cfg.Platform.Runtime, "python") || !python.IsDjango() {
python, ok := runtime.(*config.Python)
if !ok || !python.IsDjango() {
log.PrintError("manage command is for Django projects only")
return
}
Expand Down

0 comments on commit c6e520f

Please sign in to comment.