Skip to content
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

Serve utn.se/admin at admin.utn.se #798

Merged
merged 7 commits into from
Feb 1, 2024

Conversation

hato1883
Copy link
Contributor

Proof of concept of mapping access to subdomain using django-hosts.
Currently mapped django default admin page to admin.localhost for development build only

Description of the Change

Added django-hosts to allow for subdomain to be handeld by django.
Then create a admin "app" that contains a url.py that redirects to chosen admin page

This is just a proof of concept.

…in.com Can be used to show wagtail admin (probably).

Uses 'django-host' to server subdomain
@hato1883 hato1883 requested a review from ludvigalden January 21, 2024 12:45
@hato1883 hato1883 self-assigned this Jan 21, 2024
@hato1883 hato1883 changed the title A Proof of concept solution to server django admin page at admin.doma… A Proof of concept solution to service django admin page at admin.doma… Jan 21, 2024
@hato1883
Copy link
Contributor Author

To note when using wagtail admin page you will get a

NoReverseMatch at /login/
Reverse for 'login' not found. 'login' is not a valid view function or pattern name.

error message, so. something is broken

@ludvigalden ludvigalden changed the title A Proof of concept solution to service django admin page at admin.doma… Serve utn.se/admin at admin.utn.se Jan 25, 2024
Copy link
Contributor

@ludvigalden ludvigalden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to fix the tests, for some reason the reversed paths in the tests are now undefined @hato1883

@ludvigalden ludvigalden marked this pull request as ready for review February 1, 2024 10:57
@ludvigalden ludvigalden merged commit a2d25f6 into development Feb 1, 2024
1 check passed
@ludvigalden ludvigalden mentioned this pull request Feb 1, 2024
ludvigalden added a commit that referenced this pull request Feb 1, 2024
* Serve utn.se/admin at admin.utn.se (#798)

---------

Co-authored-by: [ludvigalden](https://github.com/ludvigalden) and [hato1883](https://github.com/hato1883)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants