Comments (4)
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.
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.
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.
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)
- Sign in does not work HOT 6
- Home Page is Not rendering after Providing Credentials HOT 12
- Question about Tutorial code HOT 1
- Not pulling calendar events HOT 3
- Replace get_sign_in_url with get_sign_in_flow
- Update documentation HOT 1
- settings.py needs to be updated for templates and static folders HOT 5
- Redirection to the incorrect locale HOT 3
- is user_athenticated not being set to true on login HOT 6
- ValueError ("state missing from auth_code_flow") HOT 4
- OWA graph simple example required - no django HOT 6
- authority issue needs to be discussed in tutorial HOT 2
- Unauthenticated user cannot access the site. HOT 1
- Tutorial part 3: Sign-In throws error - localhost refused to connect. HOT 4
- Authentication Problem - ValueError at /callback HOT 1
- Why is pycparser needed? HOT 2
- Use the O365 package? HOT 2
- Quickstart Fails to Authenticate. HOT 8
- Unauthenticated User Exception HOT 2
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 msgraph-sample-pythondjangoapp.