Django-ckeditor showing content as textarea

I'm working with django ckeditor now and I can't display content that can be saved normally and is displayed in the admin panel. Content is always displayed as textarea enter image description here

As you can see at the image, editor is working properly, also if i go to admin panel everything is OK, but if i want to display content of "body" ({{ form.body|safe}}), it will display only textarea of HTML code.

class Stage(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    game_id = models.ForeignKey(Game,
    name = models.CharField(max_length=128)
    sequence = models.IntegerField(null=False)
    body = RichTextUploadingField(config_name='LeftFields', blank=True, null=True)
    def get_questions(self):
        return Question.objects.filter(stage_id =

    def __str__(self):
        return str(

class StageForm(ModelForm):
    class Meta:
        model = Stage
        fields = ['body','name']
        widgets = {
        'name': TextInput(attrs={
                'class': "left_input",
                'style': "width: 69.3%;",

@user_passes_test(lambda u: u.is_staff)
def edit(request, gameid,id):
        stage = Stage.objects.get(pk=id)
        if request.method == 'POST':
            form = StageForm(request.POST, instance=stage)
            if form.is_valid():
            return redirect('/edit/' + gameid + '/' + id)
        form = StageForm(instance=stage)
        return render(request, "homeSuperuser/edit_stage.html", {'stage': stage, 'form': form,'gameid':gameid})


<!doctype html>
  <head> {% load static %}
    <link rel="stylesheet" href="{% static 'css/edit_pages.css' %}" />
    <link rel="stylesheet" href="" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src=""></script>
    <script type="text/javascript" src="{% static 'js/edit.js' %}"></script>
    <div class="row" id="mainDIV">
      <form id="main" method="post" action="{{ request.path }}"> 
      {% csrf_token %} 
      <div class="divs">
        <a>Název: </a>
        <div class="divs"><a>Kontent:</a>
          {{ }}
          {{ form.body}}
        <div class="div_cent"><input type="submit" value="Uložit" class="subm" /></div>
    {{ form.body|safe}}

form.body is the field itself, so includes the HTML textarea markup.

Instead of

{{ form.body|safe}}


{{ form.body.value|safe}}
Back to Top