User Tools

Site Tools


python:django

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python:django [2015/10/17 09:06] – [Create virtual environment and run django] adminpython:django [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 123: Line 123:
 admin.site.register(Question) admin.site.register(Question)
 </code>   </code>  
-==== write routing urls and view for poll ====+==== write routing urls(URL Dispatcher) and view for poll ====
 refer: https://docs.djangoproject.com/en/1.7/intro/tutorial03/ refer: https://docs.djangoproject.com/en/1.7/intro/tutorial03/
   - Step1: Open the file **polls/views.py** and put the following Python code in it:<code python>   - Step1: Open the file **polls/views.py** and put the following Python code in it:<code python>
python/django.1445072808.txt.gz · Last modified: 2022/10/29 16:15 (external edit)