Wacky installer behavior
See original GitHub issueHow to get a broken virtual environment:
$ mkdir test
$ cd test
$ virtualenv -p python2 .venv
$ source .venv/bin/activate
$ pip install django==1.3.7
If you try to run or make a new project your project will not work well. Because pip
collects all non-pythonic django files (images, html, css, js, and files of locale) and installs to the new different folder. For example:
$ find .venv -iname *.css -print
.venv/django/contrib/admin/media/css/login.css
.venv/django/contrib/admin/media/css/base.css
.venv/django/contrib/admin/media/css/widgets.css
.venv/django/contrib/admin/media/css/forms.css
.venv/django/contrib/admin/media/css/dashboard.css
.venv/django/contrib/admin/media/css/ie.css
.venv/django/contrib/admin/media/css/rtl.css
.venv/django/contrib/admin/media/css/changelists.css
The original path according to django archive for these files must be .venv/lib/python2.7/site-packages/django/contrib/admin/media/css/
And if you install django from archive:
$ python Django-1.3.7/setup.py install
Your project will works fine.
Can anybody explain why and how to fix it?
P.S. --no-binary
doesn’t help (and doesn’t have to)
Environment
- pip version: 19.1.1
- Python version: python 2.7
- OS: Linux dell 5.1.15-arch1-1-ARCH #1 SMP PREEMPT Tue Jun 25 04:49:39 UTC 2019 x86_64 GNU/Linux (Also you can reproduce from Ubuntu 18.04 LTS x86_64)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Systems Management : Wacky Installshield Behavior - ITNinja
Hey guys, I have this one application, Avaya Modular Messaging, that is giving me fits during SMS distribution. The install works fine during...
Read more >Unexplained Windows or software behavior may be caused ...
Cause. This issue may occur when deceptive software, such as spyware that is known as "grayware," is installed on your computer. This kind...
Read more >BIZARRE Claims - Body Language Experts Reveal The Truth
The Behavior Panel is a group made up of the world's top 4 body language and behavior experts, Scott Rouse, Mark Bowden, Chase...
Read more >Wacky Wheels - PCGamingWiki PCGW
Weird controller behavior with DOSBox • Link · Open the DOSBox configuration (in the GOG.com version, that's dosbox_wwheels.conf ) · Locate the [joystick]...
Read more >10 Reasons Your Android is Acting Weird - Clario
If your Android phone won't let you install new apps, randomly fails to open or shuts down existing ones, and spams you with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Regarding my issue… Django 1.3.7 installed via pip
If you’ve got the same just add this code into your
settings.py
Thanks for filing this and closing this.
A tiny little nit-bit of advice: You should really be using a more modern version of Django and please ask any further Django related queries on a channel where people more directly related to Django would respond - https://www.djangoproject.com/community/