[1]For example i have such html page(main page) [1]: https://i.stack.imgur.com/PJlbd.png
Also there are three hyperlink tags, and i want to generate some template for each tag when it's clicked. For example, if "home" is clicked, i will generate the same page with template of all posts of my blog. If 'create' is clicked, i'll generate the same page with another template that contains a form for creating of a post. It's a code of my main page
<body>
<div class="left-menu">
<img src="/static/POST PROJECT.png" class="logo" alt="">
<ul class="left-ul">
<li class="left-li">
<a href="{% url 'main'%}">Home</a>
</li>
<li class="left-li">
<a href="{% url 'main'%}">Create</a>
</li>
<li class="left-li">
<a href="{% url 'main'%}">Find</a>
</li>
</ul>
</div>
<div class="main">
{% block content %}
{% endblock %}
</div>
</body>
My urls.py
urlpatterns = [
path('', views.main, name='main')
]
It's my views.py
def main(request):
return render(request, "index.html", {})