Can't change my site name from example.com

335 views
Skip to first unread message

sunday honesty

unread,
Jul 27, 2020, 7:13:18 PM7/27/20
to Django users
Hi folks, i have been unable to change my site name from example.com or at other times localhost...

Anytime i send any mail, it usually display the site name as example.com.

For instance, when user registers or want to reset password, the link is usually example.com/somethings.

I have changed my site id to my domain name i added to sites through django admin area

I am using danjo-allauth.

In my other project am using django auth, it displays as localhost/...

Can someone help me out?

Exactly musty

unread,
Jul 27, 2020, 8:07:08 PM7/27/20
to Django users
If I should understand you very well,its because you are using Custom user model,and you probably clone it from a github repo,it can't change itself mate, go the admin panel, then click on site, you should change it from example.com to your website name

sunday honesty

unread,
Jul 27, 2020, 8:27:22 PM7/27/20
to django...@googlegroups.com
I am not using custom user model... 

I didn't clone anything from GitHub repo...

I only installed the third party package - django-allauth and done all necessary configurations.

I have changed the site name from example.com to my domainname.com through the sites area of admin panel but it kept showing as example.com when I send email

On Mon, Jul 27, 2020, 9:07 PM Exactly musty <exactmu...@gmail.com> wrote:
If I should understand you very well,its because you are using Custom user model,and you probably clone it from a github repo,it can't change itself mate, go the admin panel, then click on site, you should change it from example.com to your website name

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cb039d11-e1c8-44fb-840f-68811f5420ddo%40googlegroups.com.

Miracle

unread,
Jul 27, 2020, 8:39:15 PM7/27/20
to django...@googlegroups.com
Change both "display name" and "domain name" in sites, in your Admin.

Make sure the site Id in settings.py corresponds to the id of the "domain name"

Then restart the server.



sunday honesty

unread,
Jul 27, 2020, 9:25:15 PM7/27/20
to django...@googlegroups.com

Selis

unread,
Jul 27, 2020, 10:35:59 PM7/27/20
to Django users
Hiya,

have you set the 'DEFAULT_FROM_MAIL' and 'SERVER_EMAIL' in your settings.py?
Here is a reference from the Django Documentation.

Regards,
Selis

sunday honesty

unread,
Jul 28, 2020, 6:42:22 AM7/28/20
to django...@googlegroups.com
I have 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages