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

Implement urls domain, protocol and site name for frontend #781

Closed
FraCata00 opened this issue Nov 14, 2023 · 3 comments
Closed

Implement urls domain, protocol and site name for frontend #781

FraCata00 opened this issue Nov 14, 2023 · 3 comments
Milestone

Comments

@FraCata00
Copy link

If you're develop a backend and frontend in separate projects, cannot add ACTIVATION_URL in DJOSER settings like this

DJOSER = {
    "SEND_ACTIVATION_EMAIL": True,
    "SEND_CONFIRMATION_EMAIL": True,
    "USER_CREATE_PASSWORD_RETYPE": True,
    # specially this
    "ACTIVATION_URL": os.environ.get(
        "DJANGO_ACTIVATION_URL", "auth/users/activate/{uid}/{token}"
    ),
}

because implicitly check inside the backend this path from example localhost:8000, and maybe the frontend project is in another repo and another host

From documentation:
image

This PR #729 by @n-borges allows this functionality
Please check this out ❤️

@RodrigoSosa95
Copy link

For anyone trying to get this result take a look at this stackoverflow question

Adding DOMAIN and SITE_NAME solves it.

@FraCata00
Copy link
Author

Great, I use it to solve it

@tomwojcik tomwojcik added this to the 2.2.3 milestone Mar 31, 2024
@tomwojcik
Copy link
Contributor

Sorry it took so long, merged. I will release it within a month with other minor improvements. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants