这个目录结构为django 1.6形式。
mysite/
|——manage.py
|——mysite/
| |—— __init__.py
| |——settings.py
| |——urls.py
| |——wsgi.py
|——polls/
| |—— __init__.py
| |——admin.py
| |——models.py
| |——static/
| | |——polls/
| | |——images/
| | |——background.gif
| | |——style.css
| |——templates/
| | |——polls/
| | |——detail.html
| | |——index.html
| | |——results.html
| |——tests.py
| |——urls.py
| |——views.py
|—— templates/
|——admin/
|——base_site.html
| | |——polls/
| | |——detail.html
| | |——index.html
| | |——results.html
| |——tests.py
| |——urls.py
| |——views.py
|—— templates/
|——admin/
|——base_site.html
这种结构,调试app,它可以使用各种新语法,不会干扰其他app。
而且,很方便的解决static问题。