diff --git a/README.md b/README.md index 9e26183..a8aba4e 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ The application will run in a Kubernetes cluster, so we need a container image f Creating the container image might take several minutes, so this is a good point to take a break. When you return, you should see the following output: > ``` -> Packed dashboard_0.24_amd64.rock +> Packed dashboard_0.25_amd64.rock > ``` ### Create a charm @@ -109,10 +109,10 @@ Creating the charm might take several minutes, so this is another good point to ``` { name=deploy-dashboard } cd ~/dashboard rockcraft.skopeo --insecure-policy copy --dest-tls-verify=false \ - oci-archive:dashboard_0.24_amd64.rock \ - docker://localhost:32000/dashboard:0.24 + oci-archive:dashboard_0.25_amd64.rock \ + docker://localhost:32000/dashboard:0.25 juju deploy ./charm/dashboard_ubuntu-22.04-amd64.charm \ - --resource django-app-image=localhost:32000/dashboard:0.24 + --resource django-app-image=localhost:32000/dashboard:0.25 ``` The `rockcraft.skopeo` command makes the container image available to Juju. diff --git a/dashboard/dashboard/settings.py b/dashboard/dashboard/settings.py index d61b14a..8a5ba7e 100644 --- a/dashboard/dashboard/settings.py +++ b/dashboard/dashboard/settings.py @@ -131,3 +131,6 @@ # https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + +LOGIN_REDIRECT_URL = "projects:project_list" +LOGOUT_REDIRECT_URL = "projects:project_list" diff --git a/dashboard/dashboard/templates/registration/login.html b/dashboard/dashboard/templates/registration/login.html new file mode 100644 index 0000000..9597548 --- /dev/null +++ b/dashboard/dashboard/templates/registration/login.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} + +{% block content %} + +