This will break if you specify a configuration file using --config
--config
Ok, Currently it breaks if you do ./runserver --profile
Yeah, we need to find a ground where both work.
Maybe set the config before doing the import (ie: switch the order in which the args are checked)
I changed the code by only importing the APP. This should work now.
It will work for the profiling, not for the configuration file specified with --config :)
You're right, after testing it locally, it does work, thanks for the fix! :)