Django

Code

Ticket #5465 (closed: invalid)

Opened 1 year ago

Last modified 1 year ago

Summer of Code 2007: Reusable Django applications

Reported by: jezdez Assigned to: jezdez
Milestone: Component: Core framework
Version: SVN Keywords: packaging, sprintsept14, feature
Cc: Triage Stage: Design decision needed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

As one result of my work during the Google summer of code 2007 I changed django.core.management a little and added a new django.utils.package with a metadata assistent and setuptools-based application creation. For more detail ping me on IRC (jezdez) or look at http://jannisleidel.com/ and http://groups.google.com/group/django-developers/browse_thread/thread/bc830d718957beb8

Attachments

django-package.diff (31.5 kB) - added by jezdez on 09/14/07 13:07:10.
django-package2.diff (31.5 kB) - added by jezdez on 09/15/07 04:26:42.
changed the order of the subcommands and options in the docs, following a backwards incompatible change from #6075 (http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#django-admin.pyandmanage.pynowrequiresubcommandstoprecedeoptions)

Change History

09/14/07 13:07:10 changed by jezdez

  • attachment django-package.diff added.

09/14/07 13:09:36 changed by jezdez

  • needs_better_patch changed.
  • has_patch set to 1.
  • needs_tests changed.
  • needs_docs changed.

09/14/07 14:25:02 changed by anonymous

  • keywords changed from packaging to packaging, sprintsept14.

09/14/07 14:53:15 changed by Rob Hunter <robertjhunter@gmail.com>

I love the concept. I'm not sure about the effect on tutorial-followers.

An instruction to run manage startapp polls makes enough sense to accept at the time, and understand later. Adding a {{--noskeleton}} is confusing, although being prompted for their name and what-have-you is probably confusing too.

09/14/07 15:15:07 changed by jezdez

Yeah, unfortunately the whole "project" metaphor is quite misleading and was only introduced to make it easier for beginners to start. One effect of practice within the developer community is that most of them don't think that Django apps are also Python modules and can be used like it.

You are right, having to add --noskeleton to the tutorial is not logical - but my goal in the GSoC was to patch as little as possible of the current code base, so I dropped alternative ideas like introducing a whole new "package" command and other re-factoring possibilities. We need to tell the beginners what it means to have a distributable version of a Django application. I wonder how the usual way is to describe the use of e.g. django-tagging to a newbie?

One thing was also on my screen during the research for GSoC: setuptools and how it's used by Paste. Very nice and intuitive, but to complicated combine with Django, which implements very much itself than using an external library.

09/14/07 17:43:00 changed by Simon G. <dev@simon.net.nz>

  • stage changed from Unreviewed to Design decision needed.

jezdez - can you raise this on django-dev?

09/14/07 17:49:38 changed by jezdez

Sure, but do you mean this specific ticket or the general topic of best practices, setuptools and tutorials?

09/15/07 04:26:42 changed by jezdez

  • attachment django-package2.diff added.

changed the order of the subcommands and options in the docs, following a backwards incompatible change from #6075 (http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#django-admin.pyandmanage.pynowrequiresubcommandstoprecedeoptions)

09/15/07 14:45:15 changed by PhiR

  • keywords changed from packaging, sprintsept14 to packaging, sprintsept14, feature.

12/01/07 14:23:33 changed by jacob

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

This is a lot bigger than a ticket. Since there isn't exactly a "next action" on this ticket, I'm going to mark it invalid while we discuss the bigger issues on django-dev.


Add/Change #5465 (Summer of Code 2007: Reusable Django applications)




Change Properties
Action