Re: Error in manage.py when I do python manage.py runserver

2020-07-22 Thread Jagtar Singh Lakhyan
Use python3 & install if Not installed then run python3 manage.py runserver On Wed, Jul 22, 2020 at 8:08 PM Kovy Jacob wrote: > It gives me a syntax error > > Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver > 0.0.0.0:8000 > File "manage.py", line 16 > ) from exc: > ^ >

Re: manage.py is giving me an error

2020-07-21 Thread Jagtar Singh Lakhyan
Use python3 & install if Not installed On Tue, Jul 21, 2020 at 11:19 PM Kovy Jacob wrote: > Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver > 0.0.0.0:8000 > > File "manage.py", line 16 > > ) from exc > > ^ > > SyntaxError: invalid syntax > > > why am I getting

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
@soham will keep in mind next time You forgot one step after enabling ufw. You have to execute sudo ufw allow ssh. @Aldian will try n update the same On Mon, Apr 13, 2020 at 10:30 PM Jagtar Singh Lakhyan < jagtar.lakhe...@gmail.com> wrote: > sudo journalctl -u gunicorn > > -- Lo

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
sgi() Apr 13 19:49:36 wms gunicorn[2515]: File "/home/wms/iitians/iitiansenv/lib/python3.6/site-packages/gunicorn/workers/base.py project/project/ ls *asgi.py* *__init__.py* *__pycache__* *settings.py* *urls.py* *views.py* *wsgi.py* On Mon, Apr 13, 2020 at 10:21 PM Jagtar Singh Lakhya

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
the 502 error? If yes, > the orginal error it means your nginx cannot connect to your gunicorn. > > Have you tested your app on dev server, i.e: `python manage.py runserver` ? > > On Sat, Apr 11, 2020 at 11:53 PM Jagtar Singh Lakhyan < > jagtar.lakhe...@gmail.com> wrote: >

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
you to > access your server via ssh? > > > V V pon., 13. apr. 2020 ob 13:37 je oseba Jagtar Singh Lakhyan < > jagtar.lakhe...@gmail.com> napisala: > >> You mean to say >> >> >> https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-post

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
et-up-django-with-postgres-nginx- > > *AJAYI Sunday * > (+234) 806 771 5394 > *sunnexaj...@gmail.com * > > > > On Sun, Apr 12, 2020 at 2:57 PM Jagtar Singh Lakhyan < > jagtar.lakhe...@gmail.com> wrote: > >> Hi Ajayi, >> >> sudo systemctl reloa

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-12 Thread Jagtar Singh Lakhyan
e how that worked out > > V V ned., 12. apr. 2020 ob 17:47 je oseba Jagtar Singh Lakhyan < > jagtar.lakhe...@gmail.com> napisala: > >> sudo ufw status >> >> [sudo] password for wms: >> >> Status: inactive >> >> >> No funky settings as

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-12 Thread Jagtar Singh Lakhyan
b 17:40 je oseba Rok Klancar > napisala: > >> Everything seems to be in order >> >> Maybe it's the firewall's fault. >> What do you get when you type >> 'sudo ufw status' ? >> >> V V ned., 12. apr. 2020 ob 16:09 je oseba Jagtar Singh Lakhyan < >&

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-12 Thread Jagtar Singh Lakhyan
tes-available and your > gunicorn.service file > > V V ned., 12. apr. 2020 ob 15:57 je oseba Jagtar Singh Lakhyan < > jagtar.lakhe...@gmail.com> napisala: > >> Hi Ajayi, >> >> sudo systemctl reload daemon-reload >> >> Failed to reload daemon-r

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-12 Thread Jagtar Singh Lakhyan
inx > > wait for about 2-5minutes then run > sudo systemctl status gunicorn > > IT shoud display error in your code > > *AJAYI Sunday * > (+234) 806 771 5394 > *sunnexaj...@gmail.com * > > > > On Sun, Apr 12, 2020 at 5:54 AM Jagtar Singh Lakhyan < >

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-11 Thread Jagtar Singh Lakhyan
e a symbolic link error. I don’t know. If you see some web page > with an error message like Internal Error 500 or the default nginx page, > let us know. > > On Sat, Apr 11, 2020 at 1:39 PM Jagtar Singh Lakhyan < > jagtar.lakhe...@gmail.com> wrote: > >> sudo systemct

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-11 Thread Jagtar Singh Lakhyan
A high performance web server and a reverse pr On Sat, Apr 11, 2020 at 11:07 PM Rok Klancar wrote: > Dude, try "sudo systemctl status nginx" > > Dne sobota, 11. april 2020 18.53.50 UTC+2 je oseba Jagtar Singh Lakhyan > napisala: >> >> Im trying to deploy django

502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-11 Thread Jagtar Singh Lakhyan
Im trying to deploy django app using nginx & gunicorn but its showing error sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful sudo systemctl status gunicorn.service gunicorn.service - gunicorn