Code

Opened 2 years ago

Closed 2 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

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

Attachments (0)

Change History (3)

comment:1 Changed 2 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 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 2 years ago by aaugustin (next)

comment:2 Changed 2 years ago by aaugustin

  • Severity changed from Normal to Release blocker

comment:3 Changed 2 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.