Django 1.10.x Documentation
variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s0 码力 | 2538 页 | 2.59 MB | 1 年前3Django 1.11.x Documentation
variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s0 码力 | 2747 页 | 2.67 MB | 1 年前3Django 1.10.x Documentation
into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s 10.9.dev20171123183751 The answer is to add namespaces to your URLconf. In the polls/urls.py file, go ahead and add an app_name to set the application namespace: polls/urls.py from django.conf.urls import0 码力 | 1817 页 | 6.19 MB | 1 年前3Django 2.0.x Documentation
variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s0 码力 | 2746 页 | 2.67 MB | 1 年前3Django 1.11.x Documentation
into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s {% url %} template tag? The answer is to add namespaces to your URLconf. In the polls/urls.py file, go ahead and add an app_name to set the application namespace: polls/urls.py from django.conf.urls import0 码力 | 1878 页 | 6.40 MB | 1 年前3Django 2.0.x Documentation
into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s {% url %} template tag? The answer is to add namespaces to your URLconf. In the polls/urls.py file, go ahead and add an app_name to set the application namespace: polls/urls.py from django.urls import0 码力 | 1880 页 | 6.41 MB | 1 年前3Django 2.1.x Documentation
variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s0 码力 | 2790 页 | 2.71 MB | 1 年前3Django 2.2.x Documentation
variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question view into the URLconf. Verify it’s working with the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re server is not running start it like so: $ python manage.py runserver Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 2.1.x Documentation
into the URLconf. Lets verify it’s working, run the following command: $ python manage.py runserver Go to http://localhost:8000/polls/ in your browser, and you should see the text “Hello, world. You’re app, part 2 27 Django Documentation, Release 2.1.16.dev20191202082911 Now, open a Web browser and go to “/admin/” on your local domain – e.g., http://127.0.0.1:8000/admin/. You should see the admin’s {% url %} template tag? The answer is to add namespaces to your URLconf. In the polls/urls.py file, go ahead and add an app_name to set the application namespace: Listing 26: polls/urls.py from django0 码力 | 1910 页 | 6.49 MB | 1 年前3Python 标准库参考指南 2.7.18
match() method of the RegexObject. This is the index into the string beyond which the RE engine will not go. lastindex 捕获组的最后一个匹配的整数索引值,或者 None 如果没有匹配产生的话。比如,对于字符串 'ab',表达式 (a)b, ((a)(b)), 和 ((ab)) 将得到 lastindex for major US time zones. def first_sunday_on_or_after(dt): days_to_go = 6 - dt.weekday() if days_to_go: dt += timedelta(days_to_go) return dt # US DST Rules # # This is a simplified (i.e., wrong for enhancements to configuration functionality will be added to dictConfig(), so it’s worth considering transitioning to this newer API when it’s convenient to do so. Examples of these sections in the file are given0 码力 | 1552 页 | 7.42 MB | 9 月前3
共 454 条
- 1
- 2
- 3
- 4
- 5
- 6
- 46