You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Django superuser also need creating by connecting to the Backend app and run the command:
python manage.py createsuperuser
We would like to do this through a management command, that will check if any users exist - and if they do not create one. This prevents super users being created by mistake.
The default credentials should be:
username: admin
password: Password123! (this should be capable of being overridden by environment variables)
Acceptance Criteria
When Carrot starts with a blank user database, a super user is created.
If users exist in the database, no super user is created.
The super user password is configurable through environment variables
Tasks
A new management command
Checks if users exists
If not - create a new user
Have password be configurable through environment variable, and a set a default
Confirm creation
This issue is ready
The text was updated successfully, but these errors were encountered:
Is this the right issue type?
Summary
Adding a default super user for Carrot when it is first installed would be very helpful.
Currently the install documentation asks that this is done locally: https://carrot.ac.uk/mapper/deployment/azure/steps#backend-app
We would like to do this through a management command, that will check if any users exist - and if they do not create one. This prevents super users being created by mistake.
The default credentials should be:
username:
admin
password:
Password123!
(this should be capable of being overridden by environment variables)Acceptance Criteria
Tasks
Confirm creation
The text was updated successfully, but these errors were encountered: