Earlier today I made a small change to the output of "django-admin.py
startapp" -- it creates a file "views.py" instead of a directory
"views". This is for simplicity's sake. It means fewer files called
(in the case of the tutorial example) "polls.py", and a lighter
directory structure in general.

This is fully backwards-compatible. If you want to keep your views in
a "views" directory, that's perfectly all right. The thinking is that
the common case will only need a single file called views.py.

IMPORTANT NOTE: "svn update" probably won't delete the directory
"django/conf/app_template/views" in your Django distribution. You'll
need to delete this file manually. Otherwise, "startproject" will
create both a views.py and a "views" directory, which will confuse
Python.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to