如何激活我的帐户,我发送电子邮件给我使用djangregistration

2024-03-28 09:47:59 发布

您现在位置:Python中文网/ 问答频道 /正文

Thank you for registering an account at example.com.
To activate your registration, please visit the following page:

http://example.com/activate/d5544f645c80f8a6c9af934c03a2ee2d7902dc1f/

This page will expire in 7 days.

在example.com?????在

我点击了网址,但没有激活我的帐户。在

为什么????在


Tags: tocomyouanforyourexamplepage
2条回答

google会产生这样的结果:http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/

You can change it through the Django admin interface, phpMyAdmin, or however you feel comfortable. It’s in the django_site table. When setting SITE_ID in settings.py it is the ID in this table.

所以看起来您需要进入该表并将example.com更改为127.0.0.1:8000。在

您是在本地环境还是远程环境中运行它?当然你不能激活它,因为激活URL指向example.com网站,作为示例。你需要把它指向你自己的域。在

相关问题 更多 >