UWSGI + Django

Sekcia: Konfigurácia 06.04.2013 | 18:12
Avatar johnny.ha ArchLinux  Používateľ
Zdravim ludia, mohli by ste mi poradit ako nastavit uwsgi + django, lebo ako sa snazim, tak sa snazim, ale stale mi to nechce zobrazit a poriadne fungovat.

project mam v /srv/Site/site , dalej VirtualEnv v /srv/Site/venv.

v site.ini:

[uwsgi]
chdir = /srv/Site/site
module = django_wsgi
env = DJANGO_SETTINGS_MODULE=site.settings
master = true
pidfile = /tmp/site.pid
socket = 127.0.0.1:49152
virtualenv = /srv/Site/venv/
enable-threads = true
uid = 1000
gid = 1000
processes = 5



django_wsgi.py:

import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'site.settings'

import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()




LOG:
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:00 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:00 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:00 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:00 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:00 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:00 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:01 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip
Sat Apr 6 16:12:01 2013 - error parsing request
invalid request block size: 21573 (max 4096)...skip


Poradte PLS
    • Re: UWSGI + Django 08.04.2013 | 00:34
      Avatar Miroslav Bendík Gentoo  Administrátor
      Túto chybu s presne touto veľkosťou vyhadzuje uwsgi pri pokuse o priamy prístup pomocou prehliadača. Uwsgi je samostatný protokol (žiadne http), pristupovať k uwsgi sa teda dá len cez HTTP server (napr. nginx, apache2 ...).
      • RE: Re: UWSGI + Django 30.12.2015 | 09:50
        Avatar Milan Dvorský debian,mint kde,android  Administrátor

        miro, v praci mame jeden projekt na djangu, chceme zmenit settings.py, no i ked sme ako root, nedari sa nam to ulozit. any idea?

        • RE: Re: UWSGI + Django 30.12.2015 | 12:26
          Avatar Miroslav Bendík Gentoo  Administrátor

          Je to na read only partícii? Práva na zápis sa dajú zmeniť?

          • RE: Re: UWSGI + Django 30.12.2015 | 12:51
            Avatar Milan Dvorský debian,mint kde,android  Administrátor

            uz to poriesili. nieco ho lockovalo akoby. ale vdaka.