Skip to content

Conversation

@HassanAbouelela
Copy link
Member

The placement of the gunicorn import at the top of the manage.py file means the project is unable to start if gunicorn, or one of its dependencies isn't available. That is the case on windows, which makes starting the project completely impossible without using docker.

This PR moves that import below the start command for debug mode, so gunicorn will only be imported in production mode.

Moves the gunicorn import below the start server command for debug mode
 to ensure it isn't imported if it isn't used. This solves issues with
 manage.py being unable to start on windows.
@HassanAbouelela HassanAbouelela added type: bug Something isn't working area: dependencies Related to package dependencies and management labels Mar 23, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling fc53a53 on move-gunicorn-import into 929181b on main.

@Akarys42 Akarys42 merged commit 3790e73 into main Mar 23, 2021
@Akarys42 Akarys42 deleted the move-gunicorn-import branch March 23, 2021 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: dependencies Related to package dependencies and management type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants