我看过这行:
{% url "requests:applications" as applications_index_url %}
我熟悉这种结构,但不熟悉 requests:
。任何人都可以向我解释这是什么意思吗?
提前致谢!
答案 0 :(得分:1)
这是combine_first
,applications
标记正在解析requests
命名空间中名为{% load staticfiles %}
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="{% static "ckeditor/ckeditor/ckeditor.js" %}"></script>
<script type="text/javascript" src="{% static "ckeditor/ckeditor-init.js" %}"></script>
</head>
<body>
<form method="post" action="./">
{% csrf_token %}
{{ form.as_p }}
<p><input type="submit" value="post"></p>
</form>
</body>
</html>
的视图