mirror of
https://github.com/DerTyp7/tealcode-django-python.git
synced 2025-10-29 12:32:09 +01:00
fr
This commit is contained in:
@@ -7,7 +7,11 @@
|
|||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
||||||
|
{% if description %}
|
||||||
|
<meta name="description" content="TealCode - {{description}}"/>
|
||||||
|
{% else %}
|
||||||
<meta name="description" content="TealCode - Your Code Snippet directory - Java, JavaScript, C, C#, C++, Python"/>
|
<meta name="description" content="TealCode - Your Code Snippet directory - Java, JavaScript, C, C#, C++, Python"/>
|
||||||
|
{% endif %}
|
||||||
<link rel="stylesheet" href="{% static 'css/fonts.css' %}">
|
<link rel="stylesheet" href="{% static 'css/fonts.css' %}">
|
||||||
<link rel="stylesheet" href="{% static 'css/base.css' %}">
|
<link rel="stylesheet" href="{% static 'css/base.css' %}">
|
||||||
<link rel="stylesheet" href="{% static 'main/css/topic.css' %}">
|
<link rel="stylesheet" href="{% static 'main/css/topic.css' %}">
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ from django.http.response import HttpResponse
|
|||||||
from django.shortcuts import render, redirect
|
from django.shortcuts import render, redirect
|
||||||
from .models import Category, Topic
|
from .models import Category, Topic
|
||||||
from analytics.models import View
|
from analytics.models import View
|
||||||
from django.views.generic.base import TemplateView
|
|
||||||
|
|
||||||
def index(req):
|
def index(req):
|
||||||
view = View(ip=get_client_ip(req), home=True)
|
view = View(ip=get_client_ip(req), home=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user