-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recreate Migrations and Add User Model #1
Conversation
as per Django recommendations: > If you’re starting a new project, it’s highly recommended to set up a custom user model, > even if the default User model is sufficient for you. This model behaves identically to > the default user model, but you’ll be able to customize it in the future if the need arises > > https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @engineervix - I have tested this on my local build and successfully run the migrations. I think we should delete the services and propositions apps though as these will be re-done from scratch. I also had a question on why some apps seem to have more than one initial migration file.
cc @ababic in case he has any comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @engineervix this looks good now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving
Link to Ticket
Description of Changes Made
This PR removes all existing migrations and recreates them. In addition, a custom User model is added to the project, as recommended in the Django docs.
We are doing this because we want to import selected data from the current wagtail build (rather than everything). By starting on a clean slate, we will hopefully have a smoother eperience with content imports.
PR Checklist