rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

Faster-login-local-dev #103

Closed anchit-chandran closed 2 weeks ago

anchit-chandran commented 3 weeks ago

Signed-off-by: anchit-chandran anchit97123@gmail.com

Overview

Filling login fields is tedious for local development. This PR simply pre-fills fields, as per .env file values. Have added these to the example.env:

# FOR LOCAL DEVELOPMENT
LOCAL_DEV_ADMIN_EMAIL="incubator@rcpch.ac.uk"
LOCAL_DEV_ADMIN_PASSWORD="BR#GbdPH5j#utYShr&%QUB$*BS#YbLA8w6QxN8H4"

NOTE: requires creating a superuser with the above values and also having these in your .env. Nothing breaks if you dont', but the pre-filled fields won't match the superuser details so not much use.

Code changes

Primary changes in npda_user_form.py

image

Documentation changes (done or required as a result of this PR)

image

Related Issues

102

Mentions

@mentions of the person or team responsible for reviewing proposed changes.