Changes to default project layout?

41 views
Skip to first unread message

Victor Hooi

unread,
Nov 9, 2011, 1:14:54 AM11/9/11
to django...@googlegroups.com
heya,

NB: Not sure if this belongs in dev or general, but I'm assuming here - please let me know if I'm wrong.

I just noticed there was a change made to startproject/startapp, and the default Django layout in trunk (yes, I'm a bit behind the curve...haha).

https://code.djangoproject.com/changeset/16964
https://docs.djangoproject.com/en/dev/releases/1.4/#updated-default-project-layout-and-manage-py

Just a couple quick questions:
  1. Previously, we'd put the app name in INSTALLED_APPS in settings.py - however, since settings.py now lives inside one of the Django apps, I assume we don't need to put that app itself under INSTALLED_APPS? But we should put any other apps in there, right?
  2. ./manage.py is setup with a default DJANGO_SETTINGS_MODULE - however, what's the recommended practice if we want multiple settings.py files? (e.g. development, testing and production environments). And I assume having any other settings.py in other apps is a bad practice?
  3. I noticed there's a new wsgi.py file - anything we should be aware of here? I suppose projects like gunicorn, django_extensions etc. will have to be adapted to be aware of the changes?
Cheers,
Victor

Victor Hooi

unread,
Nov 9, 2011, 1:17:58 AM11/9/11
to django...@googlegroups.com
heya,

Also, I noticed that there's no models.py file in the first app that startproject creates - I assume this is by design, right?

Hmm, what's the rationale behind it?

Cheers,
Victor

Russell Keith-Magee

unread,
Nov 9, 2011, 5:08:47 AM11/9/11
to django...@googlegroups.com
Hi Victor,

All the answers you're looking for are in the draft release notes for
the 1.4 release:

https://docs.djangoproject.com/en/dev/releases/1.4/#updated-default-project-layout-and-manage-py

Yours,
Russ Magee %-)

> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/nRLeLBLsde0J.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

Lee Hinde

unread,
Jan 12, 2012, 10:07:40 PM1/12/12
to django...@googlegroups.com
Just following up on this, I don't think my question is answered, specifically, which settings.py file is intended to be used?
Reply all
Reply to author
Forward
0 new messages