Re: got url error in app/urls.py file
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 creating my assignment django project. When I make migration with the > command of python manage.py makemigrations. I got a name_error in the > urls.py file. Please help me to remove that error. > > The files I mentioned below are . > 1). views(1) & views(2) are views.py files. > 2). urls file > 3). error on cmd file > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b8d057b6-329b-4dc9-b275-771f32ebba95n%40googlegroups.com.
Re: uwsgi
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 UTC+2, Larry Martell a écrit : > I normally deploy my django apps using nginx and uwsgi. I recently > found that the uwsgi mailing list is defunct, and I read this on the > uwsgi github page: > > Note: The project is in maintenance mode (only bugfixes and updates > for new languages apis). Do not expect quick answers on github issues. > > Are folks still deploying new apps with uwsgi, or have people switched > to Gunicorn or something else? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/169e1c52-b04b-4b21-8c31-cfbcfebd3e83n%40googlegroups.com.
Django dpahne prod
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 there any big difference using daphne -b 0.0.0.0 -p 8000 main.asgi:application Instead of: python manage.py runserver [uwsgi] uid = www-data gid = www-data socket = 0.0.0.0:5000 for-readline= /srv/settings.env env = %(_) endfor = plugin = python3 chdir = /var/www/application module = main.wsgi:application virtualenv = /srv/env daemonize = /var/log/uwsgi/uwsgi_worker.log attach-daemon = sh -c "cd /var/www/application/ ; source /srv/env/bin/activate && python manage.py runserver 0.0.0.0:8000" attach-daemon = sh -c "cd /var/www/application/ ; source /srv/env/bin/activate && python manage.py qcluster" -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5fc9c244-b593-46d4-8fe8-734269936c52n%40googlegroups.com.