On Sun, Dec 30, 2012 at 11:01 PM, Luke Plant <l.plant...@cantab.net> wrote:
> On 29/12/12 04:08, Cal Leeming [Simplicity Media Ltd] wrote: > > > Could we not have something like this in the settings.py, which in turn > > enabled the code pasted above? > > TEMPLATE_PATH_RELATIVE=True > > For consistency, we'd need STATICFILES_PATH_RELATIVE, > STATIC_ROOT_PATH_RELATIVE, MEDIA_ROOT_PATH_RELATIVE etc. which is > craziness. Having just one extra setting is a big deal. > > There are use cases for all of these being absolute paths (or at least > some of them), and use cases for all of them being relative. We've > already chosen absolute paths, and you can generate absolute from > relative using os.path.realpath etc. > > The only option I can is whether we put that snippet of code (e.g. > PROJECT_ROOT=os.path.realpath(os.path.dirname(__file__)) ) into the > settings file generated when starting a new project. > +1 > > Luke > > > -- > "If we could just get everyone to close their eyes and visualise > world peace for an hour, imagine how serene and quiet it would be > until the looting started" -- Anon > > Luke Plant || http://lukeplant.me.uk/ > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-developers@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.