# apt install uwsgi uwsgi-core python3.8-dev
# apt install uwsgi-src
# cd /usr/src/uwsgi
# PYTHON=python3.8 uwsgi --build-plugin "plugins/python python38"
# cp python38_plugin.so /usr/lib/uwsgi/plugins/
# uwsgi --plugin python38 ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package: * | |
Pin: release n=bullseye-backports | |
Pin-Priority: 900 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from opbeat import Client | |
from twisted.logger import ILogObserver | |
from zope.interface import implementer | |
@implementer(ILogObserver) | |
class OpbeatLogObserver(object): | |
""" | |
A twisted log observer which logs errors to Opbeat service. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import transaction | |
from django.core.urlresolvers import reverse | |
from django.http import HttpResponseRedirect | |
from django.utils.translation import ugettext_lazy as _ | |
from django.views.generic import DeleteView | |
from oscar.core.loading import get_model | |
from apps.oscar_authorize.facade import Facade |