Re: [Django] #11816: defaults in genereated settings.py are absolute paths for template directories, media directories and media urls

2011-12-17 Thread Django
#11816: defaults in genereated settings.py are absolute paths for template
directories, media directories and media urls
-+-
 Reporter:  Jacques Mattheij |Owner:  nobody
    |   Status:  closed
 Type:   |  Version:  1.1
  Cleanup/optimization   |   Resolution:  duplicate
Component:  Core (Management | Triage Stage:  Design
  commands)  |  decision needed
 Severity:  Normal   |  Needs documentation:  0
 Keywords:   |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-
Changes (by aaugustin):

 * status:  new => closed
 * ui_ux:   => 0
 * resolution:   => duplicate
 * easy:   => 0


Comment:

 This is a duplicate of #16504 which was closed as wontfix.

 I have mixed feelings about this idea.

 While it would make the initial setup of a new project slightly faster and
 more-beginner friendly, I really, really don't want people to store
 uploaded data (media files) next to code in production. This is prone to
 awful misconfigurations — from making the Python code writable by the
 webserver to serving uninterpreted Python files from the web root, and
 probably several others.

 Since we can't guess what a good location would be (maybe
 `/var/www/media`, `/var/www/{{ projectname }}/media`, `D:\\media`, ...),
 the default is empty.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #11816: defaults in genereated settings.py are absolute paths for template directories, media directories and media urls

2009-09-18 Thread Django
#11816: defaults in genereated settings.py are absolute paths for template
directories, media directories and media urls
--+-
  Reporter:  Jacques Mattheij   | Owner:  nobody
Status:  new  | Milestone:
 Component:  django-admin.py  |   Version:  1.1   
Resolution:   |  Keywords:
 Stage:  Design decision needed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by Alex):

  * stage:  Unreviewed => Design decision needed

Comment:

 Marking as DDN.  It could also be considered a dupe of #694.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #11816: defaults in genereated settings.py are absolute paths for template directories, media directories and media urls

2009-09-18 Thread Django
#11816: defaults in genereated settings.py are absolute paths for template
directories, media directories and media urls
--+-
  Reporter:  Jacques Mattheij   | Owner:  nobody
Status:  new  | Milestone:
 Component:  django-admin.py  |   Version:  1.1   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by Jacques Mattheij ):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 two weeks and not out of triage ?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #11816: defaults in genereated settings.py are absolute paths for template directories, media directories and media urls

2009-09-02 Thread Django
#11816: defaults in genereated settings.py are absolute paths for template
directories, media directories and media urls
-+--
 Reporter:  Jacques Mattheij   |   Owner:  nobody
   Status:  new  |   Milestone:
Component:  django-admin.py  | Version:  1.1   
 Keywords:   |   Stage:  Unreviewed
Has_patch:  0|  
-+--
 'best practice' seems to be to use

 {{{

 import os

 OUR_ROOT = os.path.realpath(
 os.path.dirname(__file__)
 )

 MEDIA_ROOT = os.path.join(OUR_ROOT, 'media')

 MEDIA_URL = '/media/'

 TEMPLATE_DIRS = (
 # Put strings here, like "/home/html/django_templates" or
 "C:/www/django/templates".
 # Always use forward slashes, even on Windows.
 # Don't forget to use absolute paths, not relative paths.
 os.path.join(OUR_ROOT, 'templates')
 )

 }}}

 Shouldn't the automatically generated settings.py file include these
 things right from the beginning ?

 It can take a newbie like me a long time to figure out all these little
 details required to make a project relocatable.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---