Django 1.8.x DocumentationOnce one of the regexes matches, Django imports and calls the given view, which is a simple Python function. Each view gets passed a request object – which contains request metadata – and the values captured regex. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views. article_detail(request, '2005', '05', '39323'). 2.1.6 Write your views Each view is aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 1685 页 | 6.01 MB | 1 年前3
Django 1.8.x DocumentationOnce one of the regexes matches, Django imports and calls the given view, which is a simple Python function. Each view gets passed a request object – which contains request metadata – and the values captured regex. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views.article_detail(request, '2005', '05', '39323'). Write your views Each view is responsible aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 2454 页 | 2.85 MB | 1 年前3
Django 2.2.x Documentationload time. Once one of the URL patterns matches, Django calls the given view, which is a Python function. Each view gets passed a request object – which contains request metadata – and the values captured pattern. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views.article_detail(request, year=2005, month=5, pk=39323). Write your views Each view is aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 1.11.x Documentationcompiled at load time. Once one of the regexes matches, Django calls the given view, which is a Python function. Each view gets passed a request object – which contains request metadata – and the values captured regex. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views.article_detail(request, '2005', '05', '39323'). Write your views Each view is responsible aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 2.1.x Documentationload time. Once one of the URL patterns matches, Django calls the given view, which is a Python function. Each view gets passed a request object – which contains request metadata – and the values captured pattern. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views.article_detail(request, year=2005, month=5, pk=39323). Write your views Each view is aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.1.x Documentationload time. Once one of the URL patterns matches, Django calls the given view, which is a Python function. Each view gets passed a request object – which contains request metadata – and the values captured pattern. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views. article_detail(request, year=2005, month=5, pk=39323). 2.1.6 Write your views Each aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 1.11.x Documentationcompiled at load time. Once one of the regexes matches, Django calls the given view, which is a Python function. Each view gets passed a request object – which contains request metadata – and the values captured regex. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views. article_detail(request, '2005', '05', '39323'). 2.1.6 Write your views Each view is aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 2.0.x Documentationload time. Once one of the URL patterns matches, Django calls the given view, which is a Python function. Each view gets passed a request object – which contains request metadata – and the values captured pattern. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views.article_detail(request, year=2005, month=5, pk=39323). Write your views Each view is aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 2746 页 | 2.67 MB | 1 年前3
Django 2.0.x Documentationload time. Once one of the URL patterns matches, Django calls the given view, which is a Python function. Each view gets passed a request object – which contains request metadata – and the values captured pattern. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views. article_detail(request, year=2005, month=5, pk=39323). 2.1.6 Write your views Each aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 1880 页 | 6.41 MB | 1 年前3
Django 1.10.x DocumentationOnce one of the regexes matches, Django imports and calls the given view, which is a simple Python function. Each view gets passed a request object – which contains request metadata – and the values captured regex. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views.article_detail(request, '2005', '05', '39323'). Write your views Each view is responsible aren’t used only for attribute lookup. They also can do dictionary-key lookup, index lookup and function calls. Note {{ article.pub_date|date:"F j, Y" }} uses a Unix-style “pipe” (the “|” character).0 码力 | 2538 页 | 2.59 MB | 1 年前3
共 92 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













