[Answer]-Django 1.6 with python 3.3 default settings.py file

1👍

The default project template has been simplified in Django 1.6.You can see an explanation of the changes on the commit message on GitHub. If you need a setting like MEDIA_URL, then add it in.

0👍

As we can see from the django 1.6 release

https://github.com/django/django/blob/master/docs/releases/1.6.txt

Simplified default project and app templates

The default templates used by :djadmin:startproject and :djadmin:startapp
have been simplified and modernized. The :doc:admin
</ref/contrib/admin/index>
is now enabled by default in new projects; the
:doc:sites </ref/contrib/sites> framework no longer is. :ref:clickjacking
prevention <clickjacking-prevention>
is now on and the database defaults to
SQLite.

If the default templates don’t suit your tastes, you can use :ref:custom
project and app templates <custom-app-and-project-templates>

So we can just create a app ,such as django-admin.py startapp testapp,and create templates/testapp dir.Then put the html in the test/app/templates/testapp/test.html

we can use the html in the views.py like this

def index(request):
    return render_to_response('testapp/test.html')

we should not add anything in the settings.py.

👤wcc526

Leave a comment