I just checked in a change (revision 1556) that adds the file
"manage.py" to any new project created with "django-admin.py
startproject".

This is a light wrapper around django-admin.py, except that it
automatically makes sure your project is on the PYTHONPATH and
automatically sets DJANGO_SETTINGS_MODULE. This should help prevent a
lot of newbie gotchas. Of course, the standard django-admin.py still
works.

The next step is to craft a "Welcome to Django" page, so that the
process of starting with Django becomes this:

1. Install Django.
2. Run "django-admin.py startproject myproject".
3. Run "python myproject/manage.py runserver".
4. Go to browser and see "Welcome to Django -- it worked" page.
5. Edit database settings, start an app, etc.

The question is where that "Welcome to Django" view lives. It
shouldn't be in the URLconf by default, because that's crufty. (That
forces people to remember to delete it.) It's probably safe to
activate it when the URLconf pointed to by ROOT_URLCONF is empty, but
for security reasons the welcome page should only ever be activated in
the runserver, not in mod_python or other WSGI contexts.

Adrian

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

Reply via email to