Skip to content

Conversation

ColemanDunn
Copy link

@ColemanDunn ColemanDunn commented Nov 29, 2022

@ColemanDunn
Copy link
Author

For the second commit: If the project structure as shown in the DRF quickstart guide is followed, in which your app is 'nested' within your project, then your app_config.name will be in the format of project_name.app_name which is incompatible with module.split('.')[0] == app_config.name. I therefore switched it to if module.startswith(app_config.name) to follow the same principle of checking the first part of the name while also being compatible with this kind of project structure.
image

@ColemanDunn ColemanDunn changed the title Update globals.py Update globals.py and support for 'nested' apps Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant