Django dpahne prod

2023-06-05 Thread Paul Haguet
Hello everyone, I'am looking to deploy Django ASGI project in production. This is the actual setup. Because Daphne is installed into the project python manage.py runserver use the asgi.py file instead of wsgi. Si with this config the project run with asgi on port 8000 and wsgi on port 5000. Is

Re: uwsgi

2023-06-05 Thread Paul Haguet
I like uwsgi because it run natively for example: "service uwsgi start" on Debian Then I don't like how supervisor manage the environement vars. Notice if you want to use supervisor I suggest you to use dotenv library: https://pypi.org/project/python-dotenv/ Le dimanche 4 juin 2023 à 22:14:31 U

Re: got url error in app/urls.py file

2023-06-06 Thread Paul Haguet
It's extremely basic error... File urls.py line 3 the import is invalid as it say into the trace. cretae??? Where is this function? I think "create" is the good function name: canno't import name crétin from 'audio_api.views... Le mardi 6 juin 2023 à 14:15:25 UTC+2, AKHIL KORE a écrit : > I'm