I can modify position and look of the {{ form.to }} with <span 
style="position: absolute;">{{ form.to }}</span> tags and css but I don't 
think that's the intention...

On Wednesday, 16 March 2016 16:45:31 UTC-7, parker smith wrote:
>
> Hello,
>
> I am working on the django by example book and in ch. 2 I am having issues 
> getting the recipient email to display inside the template tag...
>
> here is the specific line of code that isn't working and what I changed it 
> to to get it some what working...
>
> views.py code referencing cd - 
>
>       ....
>       cd = form.cleaned_data
>       ....
>      send_mail(subject, message,'ad...@myblog.com',[cd['to']])
>
>
> code having issues - location is share.html
>       
>       ...
>       "{{ post.title }}" was successfully sent to {{ cd.to }}.
>       ...
>
>
> everything is displaying fine except that the {{ cd.to }} section is just 
> blank like this
>
>       
>        Post 3 was successfully sent to .
>
>
> however if I replace it with {{ form.to }} I do see the recipient email 
> address but it is floated to the left and is surrounded in in a grey box 
> with padding... so that it displays like 
>
>       bl...@email.com Post 3 was successfully sent to .
>
>
>
>
> I hope I am being clear and am hoping to get a better answer on how to get 
> it to display properly.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/221ec665-043e-4c62-8763-23b5a5bbc54f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to