Comments (10)
To fix this, edit this file: [virtual env directory]/lib/python3.7/site-packages/django/contrib/admin/widgets.py
delete the following lines [150-153]
related_url += '?' + '&'.join(
'%s=%s' % (k, v) for k, v in params.items(),
)
and add this in place:
related_url += '?' + '&'.join('%s=%s' % (k, v) for k, v in params.items())
from book-tdd-web-dev-python.
Fixed by installing a recent version of Django instead. https://www.djangoproject.com/download/
from book-tdd-web-dev-python.
just to re-iterate: i recommend you use the latest version of django 1.11
that exists, and as far as i know it is compatible with python 3.7. if you upgrade to django 3 you will have to spend time figuring out which problems are real problems and which are just due to django version differences.
from book-tdd-web-dev-python.
Thanks, l also have that problem and was solved with your suggestion. l hope that there are no more problems using python3.7 and django in virtualenv
from book-tdd-web-dev-python.
I thought the latest point release of django 1.11 actually fixed this anyway?
from book-tdd-web-dev-python.
I thought the latest point release of django 1.11 actually fixed this anyway?
It's still an issue.
from book-tdd-web-dev-python.
I can't reproduce this:
👉 cd /tmp
👉 python3 -m venv .venv
👉 source .venv/bin/activate
👉 python --version
Python 3.7.3
👉 pip install 'django<2'
Collecting django<2
Downloading https://files.pythonhosted.org/packages/61/cb
[...]
Successfully installed django-1.11.23 pytz-2019.2
👉 which django-admin
/tmp/.venv/bin/django-admin
👉 django-admin startproject myproject
👉 cd myproject
👉 ls
manage.py myproject
👉 python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
August 15, 2019 - 13:06:00
Django version 1.11.23, using settings 'myproject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
^C%
?
from book-tdd-web-dev-python.
from https://docs.djangoproject.com/id/2.1/releases/1.11.17/
Django 1.11.17 fixes several bugs in 1.11.16 and adds compatibility with Python 3.7.
from book-tdd-web-dev-python.
i m not able to reach that location on the machine can u please help out [virtual env directory]/lib/python3.7/site-packages/django/contrib/admin/widgets.py.
from book-tdd-web-dev-python.
thank you very much
where can I talk to you
can you share me your any social media account
from book-tdd-web-dev-python.
Related Issues (20)
- Add next chapter link in chapter_unit_test_first_view
- asciidoctor: ERROR: book.asciidoc
- Wrong class in code snippet in chapter 23
- ch07l006 - Useless assertion HOT 2
- Page 187 (Kindle version) - Confusing shell command
- Page 226: `lists/tests/test_model.py`
- ch11l032 - Typo in the test
- ch17|023 - Replace import to enable easier migration to Django 2 HOT 1
- Outdated section | 'What to do next' -> 'Test for Graceful Degradation'
- Dive Into Python URL is wrong HOT 1
- Realy stuck on unix socket HOT 1
- Typos on server-quickstart.md
- Geckodriver Source URL incorrect HOT 1
- Quotation marks needed for "$ python -c from selenium..."? HOT 1
- early release book ~issue / geckodriver.log HOT 2
- Python version mismatch HOT 1
- Makefile uses plain python instead of python3 which leads to command not found error HOT 7
- Chapter 10: Django 4.2.7 still displayed as the result of pip freeze | grep -i django HOT 1
- Chapter 10: callout numbers for annotation texts are not correct in source code block ch09l005 HOT 2
- Broken code listing id-s in Chapter 13 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from book-tdd-web-dev-python.