Django

Code

Ticket #7268 (closed: duplicate)

Opened 5 months ago

Last modified 4 months ago

Have a consistent handling of Django scripts for upstream distributors

Reported by: Raphaƫl Hertzog <hertzog@debian.org> Assigned to: nobody
Milestone: 1.0 alpha Component: Tools
Version: SVN Keywords:
Cc: gav@thataddress.com Triage Stage: Design decision needed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Hello, I'm one of the debian maintainer of python-django and have some suggestions.

It would be nice if all the scripts in django/bin/ could:
- be named consistently "django-<something>" so that they can be installed in /usr/bin/ without polluting the namespace (the manual pages in docs/man need to be renamed too)
- all have the standard shebang line "#!/usr/bin/env python" (django/bin/profiling/gather_profile_stats.py lacks it)
- be made executable by default (add the svn:executable property or make sure that setup.py add the executable bits)

Currently Debian already installs django-admin in /usr/bin together with the associated manual page. If the other scripts were renamed, we could so the same and have django-make-messages on the $PATH instead of hidden deep in the standard python hierarchy. BTW, I attach a patch for extras/django_bash_completion that also accept "djando-admin" as name for the django-admin.py script.

Thanks for considering those issues that matters mainly for distributors.

Attachments

02_bash_completion.diff (1.4 kB) - added by Raphael Hertzog <hertzog@debian.org> on 05/19/08 16:35:39.
Make bash completion file recognize "django-admin" command

Change History

05/19/08 16:35:39 changed by Raphael Hertzog <hertzog@debian.org>

  • attachment 02_bash_completion.diff added.

Make bash completion file recognize "django-admin" command

05/20/08 10:06:26 changed by anonymous

  • cc set to gav@thataddress.com.
  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

06/14/08 02:18:34 changed by Simon Greenhill

  • has_patch set to 1.
  • summary changed from Have a consistent handling of Django scripts to Have a consistent handling of Django scripts for upstream distributors.
  • stage changed from Unreviewed to Ready for checkin.

06/15/08 23:09:44 changed by adrian

(In [7658]) Added shebang line to bin/profiling/gather_profile_stats.py. Refs #7268

06/18/08 08:17:25 changed by russellm

(In [7690]) Refs #7268 -- Added django-admin as an alias in the django-bash-completion script. Thanks, Raphael Hertzog <hertzog@debian.org>

06/18/08 08:27:24 changed by russellm

(In [7691]) Refs #7268 -- Added svn:executable flag for the Bash completion script.

06/18/08 08:32:58 changed by russellm

  • has_patch deleted.
  • stage changed from Ready for checkin to Design decision needed.
  • milestone set to 1.0 alpha.

There is one outstanding part to this ticket - renaming of scripts and man pages to have a common prefix. This would be a backwards incompatible change, so we need to make a decision pre-v1. Moving to Design Decision Required with a version tag of 1.0-alpha to remind us to discuss this at a sprint.

06/25/08 12:53:39 changed by jezdez

FYI, I intend to move most of the scripts in django/bin to django.core.management.commands as discussed in #5522 (which has patches and docs).

06/25/08 18:04:36 changed by russellm

  • status changed from new to closed.
  • resolution set to duplicate.

Ok; Closing remaining parts of ticket in favour of #5522.


Add/Change #7268 (Have a consistent handling of Django scripts for upstream distributors)




Change Properties
Action