python:django
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
python:django [2015/05/13 23:44] – [Django themes] admin | python:django [2016/01/19 16:35] – [write routing urls and view for poll] admin | ||
---|---|---|---|
Line 51: | Line 51: | ||
</ | </ | ||
==== Create virtual environment and run django ==== | ==== Create virtual environment and run django ==== | ||
+ | Why create virtual environment? | ||
- Step1: Install virtualenv:< | - Step1: Install virtualenv:< | ||
pip install virtualenv | pip install virtualenv | ||
Line 122: | Line 123: | ||
admin.site.register(Question) | admin.site.register(Question) | ||
</ | </ | ||
- | ==== write routing urls and view for poll ==== | + | ==== write routing urls(URL Dispatcher) |
refer: https:// | refer: https:// | ||
- Step1: Open the file **polls/ | - Step1: Open the file **polls/ | ||
Line 637: | Line 638: | ||
Admin themes: | Admin themes: | ||
* https:// | * https:// | ||
- | Front-End themes: | ||
* https:// | * https:// | ||
+ | * https:// | ||
+ | Front-End themes: | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// |
python/django.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1