from django.shortcuts import render
from .models import Post

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

def news(request):
    return render(request, 'mainApp/news.html')


def post_list(request):
    post = Post.objects.filter(moder=True)
    return render(request, "news/post_list.html", {"posts": post})
5e316384cc9c3430b1366bf9dc843e8f61002b95
<mask token>


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


<mask token>

<mask token>


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


<mask token>


def post_list(request):
    post = Post.objects.filter(moder=True)
    return render(request, 'news/post_list.html', {'posts': post})

<mask token>


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


def news(request):
    return render(request, 'mainApp/news.html')


def post_list(request):
    post = Post.objects.filter(moder=True)
    return render(request, 'news/post_list.html', {'posts': post})

from django.shortcuts import render
from .models import Post


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


def news(request):
    return render(request, 'mainApp/news.html')


def post_list(request):
    post = Post.objects.filter(moder=True)
    return render(request, 'news/post_list.html', {'posts': post})

from django.shortcuts import render
from .models import Post

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

def news(request):
    return render(request, 'mainApp/news.html')


def post_list(request):
    post = Post.objects.filter(moder=True)
    return render(request, "news/post_list.html", {"posts": post})