Hey Sebastian, 

I did try editing tempaltes like the way you said but I'm running my 
mezzanine project inside a virtualenv so i head to the src folder of 
mezzanine in my virtualenv and then modified templates but the changes 
arent being reflected. what could i be doing wrong?

On Thursday, December 5, 2013 11:57:16 PM UTC+5:30, Sebastian Clemens wrote:
>
> No. Best way is to use "python manage.py collecttemplates" and edit 
> /templates/email/signup_verify.html (and .txt)
> In this folder you'll find all email templates.
>
> Greetings
> Sebastian
>
> Am Donnerstag, 28. November 2013 20:16:55 UTC+1 schrieb 
> [email protected]:
>>
>> Hello! First of all thank you who have been contributing to this great 
>> CMS!
>> I'm wondering how to customize the sign up message found on views.py. Do 
>> I have to go to /mezzanine/accounts/views.py?
>> Our site's files has this hierarchy:
>> myproject, containg the templates folder, the settings.py and the folder 
>> with the app expresssuser which has our customized user 
>> profile/registration requirements. In the views.py, I tried to change the 
>> messages, but they're overridden by the default one. Also in the 
>> account_signup.html, changing the contents under the block {% if 
>> settings.ACCOUNTS_APPROVAL_REQUIRED %} doesn't affect it either.
>> The function that in expressuser/views.py is this:
>> code:
>> def registration(request, template_name="accounts/account_signup.html"):
>>     '''
>>     Signup form.
>>     :param request:
>>     :param template:
>>     '''
>>     profile_form = get_profile_form()
>>     form = profile_form(request.POST or None, request.FILES or None)
>>
>>     if request.method == "POST" and form.is_valid():
>>         # save user profile
>>         new_user = form.save()
>>         info(request, _("Customized Message! You'll receive "
>>                     "an email when your account is activated."))
>>         return redirect(request.GET.get("next") or "/")
>>         
>>         
>>         if not new_user.is_active:
>>             if settings.ACCOUNTS_APPROVAL_REQUIRED:
>>                 send_approve_mail(request, new_user)
>>                 info(request, _("Customized Message! You'll receive "
>>                     "an email when your account is activated."))
>>             else:
>>                 send_verification_mail(request, new_user, "signup_verify")
>>                 info(request, _("A verification email has been sent with "
>>                     "a link to activate your account."))
>>                 return redirect(request.GET.get("next") or "/")
>>
>>         else:
>>             info(request, _("Account created"))
>>             auth_login(request, new_user)
>>             return login_redirect(request)
>>
>>     context = {"form": { form },
>>         "title": _("Sign Up")
>>     }
>>     return render(request, template_name, context)
>>
>> end of code
>> As you see it's basically what the function signup in mezzanine's own 
>> views.py does.
>>
>> Thanks in advance.
>>
>> Eduardo
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to