#17503: startproject can't create new project directly in current working 
directory
-------------------------------------+-------------------------------------
               Reporter:  carljm     |          Owner:  carljm
                   Type:  Bug        |         Status:  new
              Component:  Core       |        Version:  1.3
  (Management commands)              |       Keywords:
               Severity:  Normal     |      Has patch:  0
           Triage Stage:  Accepted   |    Needs tests:  0
    Needs documentation:  0          |  Easy pickings:  0
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 The current fix for #17042, although it allows more flexibility with
 regard to where `startproject` and `startapp` create the new app/project,
 doesn't actually meet the original use case that motivated that ticket.
 Several people (including at least one or two core devs) had
 [http://groups.google.com/group/django-developers/msg/4d155579ab98c536
 expressed the wish] to be able to take an existing directory that they had
 already created (for instance, initialized as a vcs repo) and convert it
 into a stock Django project using `startproject`. But the current
 implementation of the optional second argument to `startproject` doesn't
 allow you to ever reuse an existing directory, it always creates a new one
 and just allows you to specify where it will do so. To make it clearer
 with an example:

 Current behavior:
 {{{
 $ mkdir /home/carljm/target
 $ django-admin.py startproject someproj /home/carljm/target
 $ tree /home/carljm/target/
 /home/carljm/target/
 `-- someproj
     |-- manage.py
     `-- someproj
         |-- __init__.py
         |-- settings.py
         |-- urls.py
         `-- wsgi.py

 }}}

 Desired behavior:
 {{{
 $ mkdir /home/carljm/target
 $ django-admin.py startproject someproj /home/carljm/target
 /home/carljm/target/
 |-- manage.py
 `-- someproj
     |-- __init__.py
     |-- settings.py
     |-- urls.py
     `-- wsgi.py
 }}}

 Jannis (author of r17246, the fix for #17042) agreed on IRC that this
 behavior could be changed to meet the original use case.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17503>
Django <https://code.djangoproject.com/>
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.

Reply via email to