简体   繁体   中英

My Django installs in virtual env are missing admin templates folder

When I Install a venv and install Django in it for example "DjangoUpgrade" then I am missing at this path the templates folder

:~/.venvs/DjangoUpgrade/local/lib/python2.7/site-packages/django/contrib/admin

Just to be clear this is the ls from that folder.

actions.py exceptions.py filters.py forms.py helpers.py __init__.py models.py options.py sites.py templatetags tests.pyc util.pyc validation.pyc widgets.py actions.pyc exceptions.pyc filters.pyc forms.pyc helpers.pyc __init__.pyc models.pyc options.pyc sites.pyc tests.py util.py validation.py views widgets.pyc

This happens at Django 1.3 / 1.4 in completely fresh venvs, both when nothing else is installed yet and when everything else is installed fine via pip.

When I copy the admin templates folder from a working colleagues correct install it works then perfectly. What is going wrong here?

[We're upgrading through the versions atm so forgive the older Django version, it's still supported though]

python 2.7.3. Django 1.4.20 pip 7.0.3

To solve this issue you should use "--no-binary" while installing django.

pip install --no-binary django -r requirements.txt 

or

pip install --no-binary django django==1.4.21

Remember to upgrade your PIP installation to have the "--no-binary" option.

You can get further information in this link: https://github.com/pypa/pip/issues/2823

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM