Code Monkey home page Code Monkey logo

Comments (10)

zecafig avatar zecafig commented on June 24, 2024 20

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())

ref: django/django@931c60c

from book-tdd-web-dev-python.

charolynmendoza avatar charolynmendoza commented on June 24, 2024 2

Fixed by installing a recent version of Django instead. https://www.djangoproject.com/download/

from book-tdd-web-dev-python.

hjwp avatar hjwp commented on June 24, 2024 1

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.

emmanuelmhetupython avatar emmanuelmhetupython commented on June 24, 2024

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.

hjwp avatar hjwp commented on June 24, 2024

I thought the latest point release of django 1.11 actually fixed this anyway?

from book-tdd-web-dev-python.

addohm avatar addohm commented on June 24, 2024

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.

hjwp avatar hjwp commented on June 24, 2024

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.

hjwp avatar hjwp commented on June 24, 2024

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.

garry5296 avatar garry5296 commented on June 24, 2024

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.
github_help

from book-tdd-web-dev-python.

mahbubu1640 avatar mahbubu1640 commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.