Update Django.gitlab-ci.yml based on issues I experienced
What does this MR do?
This updates the Django CI config so it's easier for others in the future to get tests passing.
It also removes the redundant migrate, as Django will create a test database automatically and run all migrations on it. This functionality works this way in case you need to ever run all your migrations from scratch again (i.e server dies).
Are there points in the code the reviewer needs to double check?
I don't know how to do it, but creating a file in the pre-test steps with the DATABASES config would make this template more plug-n-play.
Why was this MR needed?
Migrate wasn't needed and it isn't clear otherwise how to get tests working
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together