user = models.OneToOneField(User)
count = models.ManyToManyField(Article)
название поля не отвечает содержимому{% load static %}
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>{{ page_title }}</title>
<link rel="stylesheet" href="{% static "css/main.css" %}">
<link rel="shortcut icon" type="image/png" href="{% static "favicon.ico" %}">
....
def depth(arr):
if hasattr(arr, '__getitem__'):
return max(depth(i) for i in arr) + 1
else:
return 0
def depth(arr):
if hasattr(arr, '__getitem__'):
return max(map(depth, arr)) + 1
else:
return 0
list(filter(lambda attr: not callable(getattr(obj, attr)), dir(obj)))