#8713: Django core depends on django.contrib ------------------------------------------------------+--------------------- Reporter: Piotr Lewandowski <[EMAIL PROTECTED]> | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ------------------------------------------------------+--------------------- I believe that it should be possible to strip `django/contrib` directory and still have a functional Django. However, currently there are some imports from `django.contrib` present in non-contrib part of Django. It's contrary to the [http://docs.djangoproject.com/en/dev/misc/design- philosophies/#id1 loose-coupling idea] and [http://docs.djangoproject.com/en/dev/ref/contrib/#the-django-contrib-add- ons description of contrib package] (a variety of extra, '''optional''' tools). {{{ #!sh $ egrep -ohr --include='*.py' --exclude-dir=contrib --exclude-dir=conf 'django[.]contrib[.][[:alnum:]]+' django-trunk/django/ | sort | uniq -c | sort -n 2 django.contrib.localflavor 2 django.contrib.sites 3 django.contrib.sessions 4 django.contrib.contenttypes 5 django.contrib.auth
$ egrep -lr --include='*.py' --exclude-dir=contrib --exclude-dir=conf 'django.contrib.[[:alnum:]]+' django-trunk/django/ django-trunk/django/test/client.py django-trunk/django/db/models/sql/subqueries.py django-trunk/django/db/models/fields/__init__.py django-trunk/django/db/models/base.py django-trunk/django/core/management/commands/cleanup.py django-trunk/django/core/management/sql.py django-trunk/django/core/context_processors.py django-trunk/django/views/generic/create_update.py django-trunk/django/views/defaults.py django-trunk/django/middleware/cache.py }}} -- Ticket URL: <http://code.djangoproject.com/ticket/8713> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
