Django 5.1.2 Documentationconfiguration How to create CSV output Using the Python CSV library Using the template system Other text-based formats How to create PDF files Install ReportLab Write your view Other formats How to override django.utils.html django.utils.http django.utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re at the polls index.”, which you defined in the index view. Page not found?0 码力 | 3519 页 | 3.17 MB | 1 年前3
Django 5.1 Documentationconfiguration How to create CSV output Using the Python CSV library Using the template system Other text-based formats How to create PDF files Install ReportLab Write your view Other formats How to override django.utils.html django.utils.http django.utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re at the polls index.”, which you defined in the index view. Page not found?0 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.0.x Documentationconfiguration How to create CSV output Using the Python CSV library Using the template system Other text-based formats How to create PDF files Install ReportLab Write your view Other formats How to override django.utils.html django.utils.http django.utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re at the polls index.”, which you defined in the index view. Page not found?0 码力 | 3407 页 | 3.21 MB | 1 年前3
Django 5.1.2 Documentationpython manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text“Hello, world. You’re at the polls index.”, which you defined in the index view. Page not found? Question and Choice. A Question has a question and a publication date. A Choice has two fields: the text of the choice and a vote tally. Each Choice is associated with a Question. These concepts are represented Listing 11: polls/models.py from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField("date published") class Choice(models0 码力 | 2923 页 | 9.62 MB | 1 年前3
Django 5.1 Documentationpython manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text“Hello, world. You’re at the polls index.”, which you defined in the index view. Page not found? Question and Choice. A Question has a question and a publication date. A Choice has two fields: the text of the choice and a vote tally. Each Choice is associated with a Question. These concepts are represented Listing 11: polls/models.py from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField("date published") class Choice(models0 码力 | 2917 页 | 9.59 MB | 1 年前3
Django 5.0.x Documentationpython manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text“Hello, world. You’re at the polls index.”, which you defined in the index view. Page not found? Question and Choice. A Question has a question and a publication date. A Choice has two fields: the text of the choice and a vote tally. Each Choice is associated with a Question. These concepts are represented Listing 11: polls/models.py from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField("date published") class Choice(models0 码力 | 2878 页 | 9.60 MB | 1 年前3
Django 1.10.x Documentationpython manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re at the polls index.”, which you defined in the index view. The url() function Question and Choice. A Question has a question and a publication date. A Choice has two fields: the text of the choice and a vote tally. Each Choice is associated with a Question. These concepts are represented like this: polls/models.py from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models0 码力 | 1817 页 | 6.19 MB | 1 年前3
Django 1.10.x Documentationand tweak Outputting CSV with Django Using the Python CSV library Using the template system Other text-based formats Outputting PDFs with Django Install ReportLab Write your view Complex PDFs Other formats django.utils.html django.utils.http django.utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re at the polls index.”, which you defined in the index view. The url() function0 码力 | 2538 页 | 2.59 MB | 1 年前3
Django 2.2.x Documentationand tweak Outputting CSV with Django Using the Python CSV library Using the template system Other text-based formats Outputting PDFs with Django Install ReportLab Write your view Other formats Overriding django.utils.html django.utils.http django.utils.module_loading django.utils.safestring django.utils.text django.utils.timezone django.utils.translation Validators Writing validators How validators are python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re at the polls index.”, which you defined in the index view. Page not found?0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 1.11.x Documentationpython manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re at the polls index.”, which you defined in the index view. The url() function Question and Choice. A Question has a question and a publication date. A Choice has two fields: the text of the choice and a vote tally. Each Choice is associated with a Question. These concepts are represented like this: polls/models.py from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models0 码力 | 1878 页 | 6.40 MB | 1 年前3
共 59 条
- 1
- 2
- 3
- 4
- 5
- 6













