簡體   English   中英

zc buildout版本沖突。 django 1.3但django-debug-toolbar需要1.4.2

[英]zc buildout version conflict. django 1.3 but requires 1.4.2 for django-debug-toolbar

我正在嘗試進行擴建。 該項目在Django 1.3上運行。 當我嘗試進行擴建時,出現以下錯誤:

Installing django.
While:
  Installing django.
Error: There is a version conflict.
We already have: Django 1.3
but django-debug-toolbar 1.2.1 requires 'django>=1.4.2'.
make: *** [bin/django] Error 1

我在這里有什么選擇?

我的buildout.cfg

[buildout]
parts =
    apacheconf
    production.py
    my.cnf
    mkdir
    django
#   scribd-patch
    jquery-ui
    tinymce

download-cache = cache

eggs =
    PIL
    South
    django
    django-annoying
    django-sugar
    python-scribd
    django-mptt
    django-filebrowser-no-grappelli
    django-webtopay
    django-pagination
    django-registration
    feincms
    mock
    simplejson
    djangorestframework
    djangorestframework-csv
    markdown

extra-paths = project


allowed-eggs-from-site-packages =
    PIL
    setuptools
    distribute

extensions = mr.developer
sources = sources
sources-dir = parts
auto-checkout = *

versions = versions

servername = www.myproject.com
serveradmin = admin@myproject.com

[sources]
# my.package = svn http://example.com/svn/my.package/trunk
# some.other.package = git git://example.com/git/some.other.package.git
# bzr.package = bzr bzr+ssh://bazaar.launchpad.net/~user/project/branch/
python-scribd = svn http://python-scribd.googlecode.com/svn/trunk
django-annoying = hg https://bitbucket.org/sirex/django-annoying
django-sugar = git git://github.com/montylounge/django-sugar.git
django-filebrowser-no-grappelli = git git://github.com/wardi/django-filebrowser-no-grappelli.git
django-webtopay = git git://github.com/Motiejus/django-webtopay.git

[versions]
South = 0.7.3
django = 1.3
django-mptt = 0.4.2
django-pagination = 1.0.7
django-registration = 0.8
feincms = 1.4.2
mock = 0.8.0
simplejson = 2.2.1
djangorestframework = 2.2.7
markdown = 2.3.1

[django]
recipe = djangorecipe
project = project
settings = production
eggs = ${buildout:eggs}
extra-paths = ${buildout:extra-paths}
wsgi = true
wsgilog = ${buildout:directory}/var/log/wsgi.log

[mkdir]
recipe = z3c.recipe.mkdir
paths =
    ${buildout:directory}/var/htdocs/static
    ${buildout:directory}/var/log

[apacheconf]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/apache.conf.in
output = ${buildout:directory}/etc/apache.conf

[production.py]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/production.py.in
output = ${buildout:directory}/etc/production.py

[my.cnf]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/my.cnf.in
output = ${buildout:directory}/etc/my.cnf

[scribd-patch]
recipe = collective.recipe.patch
path = parts/python-scribd/scribd/
patches = patches/scribd-issue-3.diff

[jquery-ui]
recipe = hexagonit.recipe.download
url = http://jquery-ui.googlecode.com/files/jquery-ui-1.8.19.zip
destination = ${buildout:directory}/var/vendor-staticfiles
ignore-existing = true
excludes =
    index.html
    development-bundle/*

[tinymce]
recipe = hexagonit.recipe.download
url = https://github.com/tinymce/tinymce/archive/3.4.4.zip
destination = ${buildout:directory}/var/vendor-staticfiles
ignore-existing = true
excludes =
    tinymce/changelog.txt
    examples/*
strip-top-level-dir = true

Buildout加載了django-debug-toolbar最新版本,但該版本需要Django 1.4.2或更高版本。

您需要將其固定到仍支持Django 1.3的早期版本。 我可以在項目存儲庫中找到的最后一個版本是0.9.4版

將軟件包固定在[versions]部分中:

django-debug-toolbar = 0.9.4

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM