Comments (3)
Example of function to generate frontend URLs:
def reverse_landing(route, **kwargs):
"""Generate a landing (frontend) URL.
This is useful to create links for email invitations or PDF generation,
without hard-coding the frontend URL patterns in multiple locations.
"""
routes = {
'home': '/home',
'todo-list': '/tasks',
'todo-detail': '/tasks/{id}',
'invite-detail': '/invite/{token}',
}
base_url = routes[route].format_map(kwargs)
site_domain = settings.FRONTEND_DOMAIN
return f'https://{site_domain}{base_url}'
Add a small template tag that calls this function and you can write your email template.
from rest-framework-auth-toolkit.
@just1602 I added item 4, what do you think would be cleaner?
from rest-framework-auth-toolkit.
We should definitively find a way to make the confirmation independent from the the signup process.
We should have two flows:
- signup process which send an email after signin
- a process that take an email and resend the confirmation email if we have this email in the database and the email isn't validated.
from rest-framework-auth-toolkit.
Related Issues (20)
- Update required Python and Django versions
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Things missing for easier integration HOT 2
- Dependabot couldn't find the branch master
- Apply django password validators
- Set up i18n
- django 2 compatibility HOT 3
- Package with flit HOT 3
- Rework model to separate user, account and identity HOT 2
- Add google login
- Add functional tests using webtest and demo app HOT 1
- Fix facebook login
- Add logging
- Centralize default values for settings
- Add Sphinx doc with Readthedocs
- Rename project
- Add django checks to detect misconfiguration
- Dependabot can't resolve your Python dependency files
- Test with multiple django versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rest-framework-auth-toolkit.