App Insights in Django OpencensusMiddleware issue '_is_coroutine' - django

I am trying to use Azure App Insights for my Django application.
I have followed the tutorial here:
https://learn.microsoft.com/en-us/azure/azure-monitor/app/opencensus-python-request
So far, I have only added the middleware and the OPENCENSUS change to my settings.py file in the app.
I installed all necessary dependencies, including the asgiref package that was recommended in a similar post.
I am getting the following error:
'OpencensusMiddleware' object has no attribute '_is_coroutine'
I don't have anything else to work off and it does not seem like this is a common problem. Has anyone encountered it before or knows more about App Insights than I do?
Thanks in advance!

I was experiencing the same issue - I downgraded to Django 4.0.8 and that made the error go away...so I would suggest looking at your Django version

Related

A fix using `browsersList` is not working in Expo

I could really use some help getting this to run on web...
I'm building a web app that uses leaflet. (MapView is non-web in Expo right now).
And using the react-leaflet library is giving an error with React 18.
The provided solution everyone mentions has to do with changing the browsersList in package.json. However this isn't working.
I'm wondering if it might be because of Expo somehow?
Please help 🙏 🙂
Here's a couple links to the issues:
https://github.com/facebook/create-react-app/issues/9468
https://github.com/PaulLeCam/react-leaflet/pull/885

How can i make Mezzanine 4.3 work with django 3 without errors?

How to make Mezzanine 4.3 work with django 3 on AZURE without issues
l've made a mezzanine blog and i'm facing challenges deploying it in AZURE cloud. Everything goes well but, when bind the blog with Engine X it requires me to Update Django for static files (css, js, images to show). When i update django I have the worst problems. It needs me to change lots of file settings some of which i dont even understand. May someone help me if there is a way to Deploy Mezzanine 4.3 and any version of Django without such challenges. It seems building was better than deployment Now.
I will be glad to be help in simple steps possible for this to work.
Thank you very much in advance
Mezzanine doesn't run on Django 3 yet. Actually, the community is trying to make it support Django 2.2. As far as Mezzanine is concerned, you're stuck with Django 2 still. The original maintainer has stopped working on the project for a long time and the community is trying to find a way forward for the project. If I was you, I wouldn't start a new project on Mezzanine. Its future is very uncertain.

Django App to open github issues on server 500

I am working on a Django project and, so far, we are receiving e-mails when a Server Error 500 happens in our backend. However, as we are a team of developers, we would like to open Github Issues instead of sending these e-mails. We have our project on Github of course.
I have been searching for an existing Django App that we could reuse but unfortunately I did not find any integrating such functionality.
Does anyone know if there is such Django application? The idea seems pretty simple and I am surprised i could not find any application available for this purpose.
Moreover, a search on django packages does not show many results...
Thanks in advance

ImportError in Django Rest Framework with Google App Engine

I have develop a simple app to learn Django rest framework and then uploaded it into Google app engine. But each time I try to access my data it shows me "no module name rest_framework". it works ok if I dont use Google App engine and stop working if I use (both local install or deploy the codes). I am using django 1.4 and using Cloud SQL. Can anyone please tell me what might be the problem?
regards
Samin
screenshot:
A bit late but might help someone else, I was also trying to get a solution for this error then I came across this link which has all the thirdparty apps, google app engine support. It doesn't have rest_framework.
So a as a solution you will have to copy the third-party library's pure-Python source code into your application's source code.
here is a solution in detail.
Hope that helps!

Deploying django websites in apache2 server

I am looking for step by step details of how to deploy django websites in apache2 server with one example.
I am using ubuntu operating system
Please give some link or give the details.
There is a manual on Django website. There is also information about integration on ModWsgi website.
Firstly I suggest to read official documentation here, then try to see also Django Book. And then if you face some problems, we SO is ready to help! :) Also I don't know if these instructions work (never tried, because it just first result showed by google), but you can try.
I guess you already have searched Stack Overflow for questions similar to the one you have posted. Anyway, I'd like to point out here a significant post I have found.
mod_wsgi in apache and django (with a link for ubuntu too)
Hope this help.