Opened 13 years ago

Closed 13 years ago

#17475 closed Bug (fixed)

startproject template misnaming top-level folders

Reported by: Alex Gaynor Owned by: nobody
Component: Core (Management commands) Version: dev
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

Description

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$ django-admin.py startproject tracebin --template=~/projects/django-project-skeleton/ -epy,rst(tracebin)alex@alex-gaynor-laptop:~/projects$ ls
blagoblog     django                       gcc        koala  presentations  pypy             pypy.org   readthedocs.org   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 readthedocs.org/^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/
__init__.py  settings  urls.py  wsgi.py
(tracebin)alex@alex-gaynor-laptop:~/projects/tracebin$ ls ~/projects/django-project-skeleton/
project_name  README.rst  requirements  static  templates

Change History (3)

comment:1 by Aymeric Augustin, 13 years ago

Triage Stage: UnreviewedAccepted

Indeed, this is reproducible:

myk@mYk django-trunk % cd ..                                                                                ~/Documents/dev/django-trunk
myk@mYk dev % git clone https://github.com/alex/django-project-skeleton                                                  ~/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 % rm -r tracebin                                                                       ~/Documents/dev/django-trunk
myk@mYk django-trunk % PYTHONPATH=. django/bin/django-admin.py 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/
Version 0, edited 13 years ago by Aymeric Augustin (next)

comment:2 by Aymeric Augustin, 13 years ago

Severity: NormalRelease blocker

comment:3 by Ramiro Morales, 13 years ago

Resolution: fixed
Status: newclosed

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