Questions tagged [uWSGI] (111)

2
answers

Why gives django + nginx = permission denied?

Took from here. CentOS 7 Start: uwsgi --socket pud.sock --wsgi-file test.py --chmod-socket=666 Get: 2020/03/13 12:24:27 [crit] 2070#2070: *23 connect() to unix:///root/pud/pud.sock failed (13: Permission denied) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: site.ru, request: "GET / HTTP/1.1", upstream:...
samara.Mr asked April 8th 20 at 17:14
1
answer

Configure django wsgi.py for multiple servers?

Have configured server to Ubuntu18, nginx, uwsgi (call it stage) In Django settings (settings.py) is divided separately for development, staging. base.py ALLOWED_HOSTS = ['127.0.0.1'] development.py from .base import * DEBUG = True staging.py from .base import * ALLOWED_HOSTS += 'staging.site.com' DEBUG = False wsgi.p...
Timothy7 asked April 8th 20 at 10:27
1
answer

Why UWSGI doesn't see the Django app?

I don't know to solve this problem, uwsgi tells me that my app no:--- no python application found, check your startup logs for errors --- [pid: 707|app: -1|req: -1/6] 89.235.190.56 () {38 vars in 585 bytes} [Tue Oct 1 12:31:59 2019] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0...
Jenifer asked March 31st 20 at 14:28
1
answer

How to run flask on a server?

Hi! Trying to run application on Ubuntu. Original data: Created venv, have set up flask, uwsgi mainapp.pyfrom flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Bye Bye World!!!' if __name__ == '__main__': app.run() wsgi.pyfrom mainapp import app as application if __name__ == "__main__": app...
dianna_Jast61 asked March 27th 20 at 12:27
1
answer

How to configure and ASGI WSGI server for Django app?

first encountered on the project with Django's channels and unfortunately I have no idea how to configure a production server with the availability of chanels. When I opened the project on the intranet and launched manage.py runserver then noticed that the console shows Starting ASGI/Channels version 2.1.6 development serv...
alena asked March 27th 20 at 11:30
1
answer

How to add variables .env in uwsgi?

Use .env file to hide the settings to the database in the project in Django. On the LAN via pipenv all the rules and pulled, tell me how to uwsgi, add these data to the server. Now errorsettings.DATABASES is improperly configured. Please supply the NAME value.
mabel25 asked March 24th 20 at 13:08
1
answer

How to configure uwsgi to work with Django and pipenv?

Configure the server to work with Django app. Django python 2.2 3.7. Server nginx + uwsgi. The first time I had to install pipenv is virtualenv + virtualenvwrapper it clear Env folder , one of the questions correctly if I define the path to the virtual environment, as I could not find a clear description of where it is loca...
remington21 asked March 24th 20 at 11:19
1
answer

Configuring virtualhosts in uWSGI?

I want to try to do two sites with one backend. Plan to use Django-sites-framework + uWSGI + NGINX. For configuring the necessary network, like information, but in conjunction Django-sites-framework + uWSGI managed to find not much. As I understand from what has been read - need to configure virtualhosts socket and uWSGI t...
dell96 asked March 23rd 20 at 19:08
0
answer

How to configure nginx+uwsgi for a few projects?

I must say, it's a stupid question. There are 2 projects on django, I configured them anyways, all is well - supervisor, uwsgi (also vassals). However, I got error duplicate upstream "django" in ФАЙЛ_НАСТРОЕК_NGINX And that's because I have really duplicated. In the first project settings:upstream django { server unix://P...
Caesar_Nicolas asked March 19th 20 at 19:37
2
answers

Internal Server Error with django logging settings?

Emboss an error is added to settings. settings.py... LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'file': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': 'home/django/pro/djangopt/log/debug.log', # path to file }, }, 'loggers': { 'django': { #<-- do Not quite unders...
fanny_Nicolas asked March 19th 20 at 19:00