Yes. I managed to "fix" your code.,

https://github.com/XJoma/mk-center1/blob/master/home/views.py#L47

Firstm never, ever pass locals() anywhere it's best way to introduce a lot
of bugs. Also you have quite a good record of from foo import * which is as
bad as well.

But your problem is that fourth parameter to render() is actually
content_type. Now you're passing total garbage for content_type which
causes browser to think that incoming data is something it can't handle and
downloads it.

There is no parameter that would fit anything what could take another dict
besides context which you're already passing in.


On Thu, Mar 29, 2018 at 3:03 PM, Jamaldin Pro <jamalsema2...@gmail.com>
wrote:

> Can you help?
>
> --
> 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/46a977ea-0582-44c0-bb9a-5de39b0654c1%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/46a977ea-0582-44c0-bb9a-5de39b0654c1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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/CAHn91of9bcp%3DxcRHgnM_8MZa2pMZ1bZ5B5_yKsWU%3DX7N%2BuOrwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to