当前位置:网站首页>[dailyfresh] problems encountered in sending activation email
[dailyfresh] problems encountered in sending activation email
2022-06-22 01:03:00 【sinat_ twenty-one million seven hundred and ninety-one thousand】
AVIGHTZYNSINDXZX
Be stupid 1:
Encountered a stupid problem , When writing the path of the active part path, Then when you visit the link, it doesn't match , After a long toss, I forgot , To use regular, you need to use re_path instead of path
urlpatterns = [
# path('register/', views.register, name='register'),
# path('register_handle/', views.register_handle),
path('register/', RegisterView.as_view(), name='register'), # register
re_path(r'activate/(?P<token>.*)', ActivateView.as_view(), name='activate'), # Activate
# path('activate/(.*?)', ActivateView.as_view(), name='activate'), # Activate
path('login', LoginView.as_view(), name='login') # Sign in
]
Be stupid 2:
Use celery When sending mail asynchronously , Found that the program didn't go celery, After tossing and turning for a long time, I found that it was a call send_register_active_email There was no .delay
# Find someone else to help us send mail celery: Perform tasks asynchronously send_register_active_email.delay(email, username, token)
边栏推荐
- 一文读懂LiveData 粘性事件
- sed 技巧
- Xshell比SecureCRT差吗?
- The next goal of digital transformation: providing just in time information
- 前加后加探索和函数调用探索
- 答应我, 不要再用 if (obj != null) 判空了
- [2023 approval in advance] China Singapore SECCO
- [environment stepping on the pit] open the picture with OpenCV and report an error
- How to use through-hole conductive slip ring
- 2. add two numbers
猜你喜欢

比特運算比特與

MySQL 8.0 新特性梳理汇总

Pytorch learning 02: handwritten digit recognition

Emperor Taizong of Tang Dynasty played the "heartbeat mechanism" of microservices to the extreme!

【DailyFresh】课程记录

Pytorch learning 10: statistical operations

2. add two numbers
![四数之和[数组排序+双指针]](/img/9e/e1932120a9b69847898e89c45e2eb4.png)
四数之和[数组排序+双指针]

The next goal of digital transformation: providing just in time information

【环境踩坑】用opencv打开图片时报错
随机推荐
pytorch学习02:手写数字识别
cygwin下面用mysql client连接服务器的问题
The importance of rational selection of seal clearance of hydraulic slip ring
Introduction to redis Series 7 - expiration policy
12 BeautifulSoup类的初始化
LVGL的一些介绍和移植
Pytorch learning 08: splicing and splitting
eslint:错误
SQL statement - permission management
【DailyFresh】发送激活邮件遇到的问题
English语法_副词_fairly / rather
find 查找不同扩展名的文件
mysql数据库高版本 低版本
力扣每日一题-第24天-485.最大连续1的个数
Is it safe to open an account for futures in Huishang futures?
Tensorflow environment setup
在徽商期货开户做期货安全吗?
如何使用物联网低代码平台进行报表管理?
pytorch学习06:Tensor维度变换
前加后加探索和函数调用探索