/namespace-django

Use namespace packages in Django

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

Copyright © 2011 Reality Jockey Ltd. and Contributors.

This file is part of namespace-django.

Namespace-django is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Django-tornado is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with namespace-django. If not, see http://www.gnu.org/licenses/.

Use namespace packages with Django

Installation with Buildout

  • Add "nsdjango" to your requirements in setup.py

Example configuration with Buildout

buildout.cfg (excerpt)

[buildout]
find-links = http://download.rjdj.me/python

[versions]
Django=1.3
zc.buildout=1.5.2
nsdjango=0.1

[instance]
recipe = zc.recipe.egg:script
eggs = my.project
scripts = instance
arguments = settings
initialization = from my.project import settings

setup.py (excerpt)

setup(name = "my.project",
      version = "0.0.1",
      author = '',
      author_email = '',
      description = 'My Project',
      url = '',
	  namespace_packages = [],
      packages = find_packages('src'),
      package_dir = {'':'src'},
      install_requires = ['Django',
                          'nsdjango',
                         ],
      entry_points = {
          'console_scripts':['instance=nsdjango.management:execute_manager']
          },
      include_package_data = True,
      zip_safe = False,
      extras_require = dict(instance=[]),
)

####GitHub Repository:

     git://github.com/rjdj/namespace-django.git