GithubHelp home page GithubHelp logo

Comments (4)

jasonjoh avatar jasonjoh commented on June 2, 2024 1

It's generated code though! :D I don't think changing it is the way to go, it may cause you issues down the road.

From what I see online, the error tends to point to how you have Python installed (multiple Python versions, virtual environments, etc.). For example: https://stackoverflow.com/questions/46210934/importerror-couldnt-import-django

It could also be related to the scope where you install Django. The instructions have you install it in the user scope. Try this to see if you get the same error.

In an empty directory:

pip install --user Django==3.1.4
django-admin startproject graph_tutorial
python manage.py runserver

Does the app start and can you browse to the welcome page at http://localhost:8000?

from msgraph-sample-pythondjangoapp.

cwoodybutler avatar cwoodybutler commented on June 2, 2024 1

I figured it out - I had like 47 different versions of python installed, and apparently it was using an older one. I got rid of all older ones and it seems like it's OK now. Der, sorry.

from msgraph-sample-pythondjangoapp.

jasonjoh avatar jasonjoh commented on June 2, 2024

manage.py is created by Django when you first create the project. If you downloaded this project, you'll need to run a pip install -r requirements.txt, which should install Django and the other dependencies for you.

from msgraph-sample-pythondjangoapp.

cwoodybutler avatar cwoodybutler commented on June 2, 2024

I did do the pip install part, it's a syntax error on the code, it's not throwing an error. Or at least I'm pretty sure it's a syntax error. :)

from msgraph-sample-pythondjangoapp.

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.