mirror of
https://github.com/DerTyp7/tealcode-django-python.git
synced 2025-10-29 12:32:09 +01:00
renamed list to category
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<h1>TealFire</h1>
|
||||
|
||||
<div>
|
||||
<a>Python</a>
|
||||
<a href="/category/python/">Python</a>
|
||||
<a>C#</a>
|
||||
<a>C++</a>
|
||||
<a>C</a>
|
||||
@@ -29,11 +29,7 @@
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
<div id="main-content">
|
||||
<div id="main-headline">
|
||||
<h2>How To Convert a String to Int</h2>
|
||||
</div>
|
||||
|
||||
<div id="main-content">
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{% extends "main/base.html" %}
|
||||
{% block content %}
|
||||
<div id="main-content-code">
|
||||
<pre><code style="padding-top: 5px; padding-bottom: 5px;"class="language-c">int c;
|
||||
c = int.c * t/g;</code></pre>
|
||||
</div>
|
||||
<div id="main-headline">
|
||||
<h2>Index</h2>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
12
TealCode/main/templates/main/topic.html
Normal file
12
TealCode/main/templates/main/topic.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "main/base.html" %}
|
||||
{% block content %}
|
||||
<div id="main-headline">
|
||||
<h2>How To Convert a String to Int</h2>
|
||||
</div>
|
||||
|
||||
<div id="main-content-code">
|
||||
<pre><code style="padding-top: 5px; padding-bottom: 5px;"class="language-c">int c;
|
||||
c = int.c * t/g;</code></pre>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
||||
@@ -3,5 +3,6 @@ from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name="main-index"),
|
||||
path('list/', views.list, name="main-list"),
|
||||
path('topic/<str:category>/<str:topic>/', views.topic, name="main-topic"),
|
||||
path('category/<str:category>/', views.category, name="main-category"),
|
||||
]
|
||||
|
||||
@@ -3,5 +3,8 @@ from django.shortcuts import render
|
||||
def index(req):
|
||||
return render(req, "main/index.html")
|
||||
|
||||
def list(req):
|
||||
return render(req, "main/list.html")
|
||||
def topic(req, category, topic):
|
||||
return render(req, "main/topic.html")
|
||||
|
||||
def category(req, category):
|
||||
return render(req, "main/category.html")
|
||||
Reference in New Issue
Block a user