Opened 4 years ago

Closed 4 years ago

#17475 closed Bug (fixed)

startproject template misnaming top-level folders

Reported by: Alex Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I'm not sure what the precise cause of this is (as there are a bunch of test for it), but here's the quite simple shell session (you can see the part where I type ls about 3 times because I was so confused):

(tracebin)alex@alex-gaynor-laptop:~/projects$ startproject tracebin --template=~/projects/django-project-skeleton/ -epy,rst(tracebin)alex@alex-gaynor-laptop:~/projects$ ls
blagoblog     django                       gcc        koala  presentations  pypy      tracebin
cpython       django-project-skeleton      hack       numpy  pycon-bot      pypy-benchmarks  pypy-py3k  sqlalchemy        tracebin-mockup
cross_system  django-template-compilation  jitviewer  plb    pygments-main  pypy-extradoc    pypy-z     sublime-projects  yaffi
(tracebin)alex@alex-gaynor-laptop:~/projects$ cd^C
(tracebin)alex@alex-gaynor-laptop:~/projects$ cd tracebin
(tracebin)alex@alex-gaynor-laptop:~/projects/tracebin$ ls
emplates  equirements  README.rst  roject_name  tatic
(tracebin)alex@alex-gaynor-laptop:~/projects/tracebin$ ls
emplates  equirements  README.rst  roject_name  tatic
(tracebin)alex@alex-gaynor-laptop:~/projects/tracebin$ ls
emplates  equirements  README.rst  roject_name  tatic
(tracebin)alex@alex-gaynor-laptop:~/projects/tracebin$ ls roject_name/  settings
(tracebin)alex@alex-gaynor-laptop:~/projects/tracebin$ ls ~/projects/django-project-skeleton/
project_name  README.rst  requirements  static  templates

Change History (3)

comment:1 Changed 4 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

Indeed, this is reproducible:

myk@mYk django-trunk % cd ..                                                                                ~/Documents/dev/django-trunk
myk@mYk dev % git clone                                                  ~/Documents/dev
Cloning into django-project-skeleton...
remote: Counting objects: 36, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 36 (delta 11), reused 29 (delta 4)
Unpacking objects: 100% (36/36), done.
myk@mYk dev % cd django-trunk                                                                                            ~/Documents/dev
myk@mYk django-trunk % PYTHONPATH=. django/bin/ startproject tracebin --template=../django-project-skeleton/ -epy,rst
myk@mYk django-trunk % ls tracebin                                                                          ~/Documents/dev/django-trunk
README.rst   emplates/    equirements/ roject_name/ tatic/
Last edited 4 years ago by aaugustin (previous) (diff)

comment:2 Changed 4 years ago by aaugustin

  • Severity changed from Normal to Release blocker

comment:3 Changed 4 years ago by ramiro

  • Resolution set to fixed
  • Status changed from new to closed

In [17287]:

Made sure the new project template functionality works when the template
path specified has a trailing path separator.

Thanks Alex for the report.

Fixes #17475.

Note: See TracTickets for help on using tickets.
Back to Top