Django CKEditor not template tags not working

Hello iam stuck with CKEditor which works in admin panel but in template not, I tried to make it many times but nothing, also tryed many tutorials/offical installation guide. Do you know where the issue is ? Thanks for help.

part of settings.py

from pathlib import Path
import os

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'netusim',
    'ckeditor',
]
ROOT_URLCONF = 'lamo.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR,'templates')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]
STATIC_URL = 'static/'
STATIC_ROOT = BASE_DIR / 'static'
MEDIA_URL = 'media/'
MEDIA_ROOT = BASE_DIR / 'media'

urls.py

from django.contrib import admin
from django.urls import path
from netusim.views import *

urlpatterns = [
    path('admin/', admin.site.urls),
    path('test/', index),
] 

views.py

from django.shortcuts import render


def index(request):
    return render(request, 'index.html')

models.py

from django.db import models
from ckeditor.fields import RichTextField

class Post(models.Model):
    content = RichTextField()

index.html

<html>
    <head>
        {% load static %}
        <script type="text/javascript" src="{% static "ckeditor/ckeditor-init.js" %}"></script>
        <script type="text/javascript" src="{% static "ckeditor/ckeditor/ckeditor.js" %}"></script>
        
    </head>
<body>
<form>
    {{ form.media }}     
    {{ myform.as_p }}
    <input type="submit"/>
</form>
</body>
</html>
Back to Top