wsgi

  1. N

    Easy WSGI reset for Python/Django/Wagtail hosted websites

    If your OpenLiteSpeed setup is pointed to the wsgi.py file in python it can be confusing when changes made in your local python app won't update as expected when changes are pulled to your website or pushed. Graceful (from OLS Backend), Soft & Hard (from Linux command line) OLS server resets...
  2. maicol07

    How to configure OLS LSWGI with a DJango app

    Hi, I'm trying to install Weblate, a DJango app. I've followed this guide: https://openlitespeed.org/kb/python-wsgi-applications/#Set_up_Django_with_a_Virtual_Environment and installed LSWGI and configured the context app server with these parameters: When I try to go to the website, I get a...
  3. M

    Why does OpenLiteSpeed Django app give errors when save or delete very simple model in admin view ?

    I have an OpenLiteSpeed Django app in Google Cloud Compute Engine which connects a SQLite DB. I've created some models and views, in these views I can show lists and graphics of SQLite data. I am also able to list and search the data in admin views. However in admin view when I try to make some...
  4. P

    Fatal Python error: Py_Initialize: Unable to get the locale encoding

    Has anyone successfully configured python wsgi? Trying to make Falcon work with openlitespeed but I can even make Flask work following instruction here: https://openlitespeed.org/kb/python-wsgi-applications/ I keep stumbling with following error in stderr.log 2020-05-09 08:59:17.306 [STDERR]...
  5. K

    problem importing python module into wsgi file

    This returns a 500 error (doesn't work): from pyadd.lib import addme def application(environ, start_response): q = environ['QUERY_STRING'] num1 = int(q[(q.index('=') + 1)]) num2 = int(q[(q.index('=',6) + 1)]) sum = str(addme(num1, num2)) start_response('200 OK'...
  6. D

    Issues With Python WSGI

    I have followed the guides to setup WSGI including this one. I'm currently using the hello world script and keep getting a 503 error. I'm running on Ubuntu 16.04, no special install of the OS with latest stable OpenLiteSpeed installed (1.4.28) and wsgi-lsapi 1.2 Any help/guidance would be...
Top