google-code-export / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
MIT License
0 stars 0 forks source link

Emails (Password reminders, etc...) go out using example.com as the root URL #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup Pinax using defaults
2. Create user account
3. Verify email address
4. Check email

What is the expected output? What do you see instead?

Email content:
{{{
User 'adam' at example.com has given this as an email address.

To confirm this is correct, go to
http://example.com/account/confirm_email/526aac8d5fa6f3dc82b2b9ba54daf58eae3add4
8/
}}}
Should be:
{{{
User 'adam' at mydomain.com has given this as an email address.

To confirm this is correct, go to
http://mydomain.com/account/confirm_email/526aac8d5fa6f3dc82b2b9ba54daf58eae3add
48/
}}}
where mydomain.com is set in settings.py

What version of the product are you using? On what operating system?
Mac 10.5.5 Pinax Trunk (r1273)

Please provide any additional information below.
This is low priority but it does prevent taking a Pinax app live without
customization that should be handled by the central settings file rather
than in various places.

Original issue reported on code.google.com by arocki...@gmail.com on 15 Dec 2008 at 4:16

GoogleCodeExporter commented 9 years ago
This is due to the fact you did not configure the SITE_ID instance in the 
database. This can be done in the admin 
by going to the "Sites" section. I am not sure if we documented this (I will 
need to look), if we did I am going to 
close, if not this should be noted.

Original comment by bros...@gmail.com on 15 Dec 2008 at 5:50

GoogleCodeExporter commented 9 years ago
Intuitive :-)

I figured it out for future users: here is the method (from the 
complete_project/
directory if you're running complete_project and the default sqlite):

$ sqlite3 dev.db
sqlite> UPDATE django_site SET domain = "mydomain.com",name = "mydomain.com" 
WHERE id
= 1;
sqlite> .quit
[On site] Do an action that sends an email (reverify email from accounts 
section)
$ ./manage.py emit_notices

Original comment by arocki...@gmail.com on 15 Dec 2008 at 6:01

GoogleCodeExporter commented 9 years ago
Oops, disregard my last comment.  Brosner's is much better:

1. Go to admin>site and edit there.

Original comment by arocki...@gmail.com on 15 Dec 2008 at 6:03

GoogleCodeExporter commented 9 years ago
To clarify, this was not documented.  In addition, the project must be restarted
after making the change as well.

Original comment by arocki...@gmail.com on 14 Jan 2009 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by pyDanny on 13 Mar 2009 at 4:06

GoogleCodeExporter commented 9 years ago

Original comment by leidel on 13 Mar 2009 at 9:06