Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

ErrorCorner

ErrorCorner Logo ErrorCorner Logo

ErrorCorner Navigation

  • Home
  • Contact Us
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Contact Us
  • About Us
Home/ Questions/Q 413
Next
Answered
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 3
Kenil Vasani
Asked: December 11, 20202020-12-11T20:35:46+00:00 2020-12-11T20:35:46+00:00In: Python

SyntaxError: Generator expression must be parenthesized

  • 3

I just installed django and after installing that I created a django project and was trying to run django server by command:

python manage.py runserver

After that I’am getting error as:
SyntaxError: Generator expression must be parenthesized

error screenshot

djangopython
  • 1 1 Answer
  • 8 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    1 Answer

    • Voted
    1. Rohit Patel

      Rohit Patel

      • 0 Questions
      • 98 Answers
      • 0 Best Answers
      • 0 Points
      View Profile
      Best Answer
      Rohit Patel
      2020-12-11T20:35:26+00:00Added an answer on December 11, 2020 at 8:35 pm

      TL; DR: Upgrade Django to version 1.11.17+ or 2.0+


      This error is a known incompatibility related to Python issue #32012. Projects based on Django 1.11.16 and below will raise this exception when started with Python 3.7. A patch for this issue has been merged into Django 2.0 and 2.1 branches and cherry-picked later into Django 1.11.17.

      Note: Python 3.7 is officially supported by Django 1.11.17 and above, including any 2.x branch.

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    You must login to add an answer.

    Forgot Password?

    Kenil Vasani
    Kenil Vasani

    Kenil Vasani

    • 646 Questions
    • 567 Answers
    • 77 Best Answers
    • 26 Points
    View Profile
    • 0
    Kenil Vasani
    Asked: November 22, 20202020-11-22T09:26:59+00:00 2020-11-22T09:26:59+00:00In: Python

    SyntaxError: Generator expression must be parenthesized

    • 0

    I just installed django and after installing that I created a django project and was trying to run django server by command:

    python manage.py runserver
    

    After that I’am getting error as: SyntaxError: Generator expression must be parenthesized

    djangopython
    • 1 1 Answer
    • 9 Views
    • 0 Followers
    • 0
    Answer
    Share
    • Facebook

      1 Answer

      • Voted
      1. Kenil Vasani

        Kenil Vasani

        • 646 Questions
        • 567 Answers
        • 77 Best Answers
        • 26 Points
        View Profile
        Kenil Vasani
        2020-11-22T09:27:07+00:00Added an answer on November 22, 2020 at 9:27 am

        Generator expression must be parenthesized

        > Update Django version to 1.11.17

        pip install django==1.11.17
        • 0
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp

      You must login to add an answer.

      Forgot Password?

      Sidebar

      Ask A Question
      • Popular
      • Kenil Vasani

        SyntaxError: invalid syntax to repo init in the AOSP code

        • 5 Answers
      • Kenil Vasani

        xlrd.biffh.XLRDError: Excel xlsx file; not supported

        • 3 Answers
      • Kenil Vasani

        Homebrew fails on MacOS Big Sur

        • 3 Answers
      • Kenil Vasani

        runtimeError: package fails to pass a sanity check for numpy ...

        • 3 Answers
      • Kenil Vasani

        Python, Error while installing matplotlib

        • 2 Answers

      Explore

      • Most Answered
      • Most Visited
      • Most Voted
      • Random

      © 2020-2021 ErrorCorner. All Rights Reserved
      by ErrorCorner.com