Sending unsafe requests from web extension to DRF - cannot send Referer

2021-09-30 Thread Brad Solomon
We have a web extension using Chrome Manifest V3 , which talks with a backend web service written with Django (3.2) / Django Rest Framework, and served with Gunicorn/Nginx. After turning on HTTPS, we are no longer to successfully make uns

Re: Python code changes are not reflecting on Django-based web server.

2021-09-30 Thread Ryan Nowakowski
You can use the ps command: ps -aef | grep "apache\|httpd" The process id(pid) is the second column usually. If it changes, then you know the process was restarted. - Ryan N On Thu, Aug 19, 2021 at 10:52:04PM -0400, Hasan Baig wrote: > Yes systemctl stop and start httpd, i verified by che

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread Kasper Laudrup
On 30/09/2021 11.43, emmanuel odor wrote: Hi Everyone, I tried to run Django micro crm locally on my windows host and  whenever i run this on my browser i get these errors below. Any reason you want to use HTTPS for your development server? Why not simply access it through HTTP, ie. http:/

Re: Is DATE_TIME_FORMAT in settings operationnal

2021-09-30 Thread dilo...@gmail.com
thanks I had read the note but the language was incorrectly set. Thanks Le jeudi 30 septembre 2021 à 15:33:04 UTC+2, bnmng a écrit : > I haven't experimented with this yet so I'm not sure, but what about this > note in > https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-DATE_FORM

Unable to see pie chart in template using django and chart js

2021-09-30 Thread shreyas kshirsagar
*I want to count the number of companies in companytype model and show that in pie chart. The count should by the name field in company table.* eg: If Company Type is medical and there are 4 companies in that category then i want to show its count on pie chart. *models.py* class CompanyType(mode

Django Channels and Mac users can't connect to wss

2021-09-30 Thread Mickie Blair
I have been running a program for three weeks with no issues. Suddenly yesterday people using IPad and Macs can no longer connect to the websocket. I am using Ubuntu 20.04 on AWS. I am not sure why other details would be helpful, I am just wondering if anyone else is having trouble. Thank

Re: Is DATE_TIME_FORMAT in settings operationnal

2021-09-30 Thread bnmng
I haven't experimented with this yet so I'm not sure, but what about this note in https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-DATE_FORMAT When USE_L10N is True, the locale-dictated format has hig

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread emmanuel odor
I am being routed here *Emmanuel Odor* Phone: *+234-7037-411553* <+234-7037-411553> Mobile: *+234-9 <+234-8093-910965>055511066* Skype: *Emmanuel Odo r * 24 Bajulaiye Road, Shomolu, Lagos Stat

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread emmanuel odor
After following the instruction from this url https://github.com/teddziuba/django-sslserver When i ran the the script i got this PS C:\Users\e\Documents\Projects\Crm> python manage.py runsslserver Validating models... System check identified no issues (0 silenced). September 30, 2021 - 12:30:

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread emmanuel odor
Bad Request (400) *Emmanuel Odor* Phone: *+234-7037-411553* <+234-7037-411553> Mobile: *+234-9 <+234-8093-910965>055511066* Skype: *Emmanuel Odo r * 24 Bajulaiye Road, Shomolu, Lagos State.

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread Benjamin Schollnick
FYI - Seems to have no effect on that error. >From what I see the development server just doesn’t support SSL. But, here are instructions on setting it up. https://timonweb.com/django/https-django-development-server-ssl-certificate/

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread emmanuel odor
I got this Invalid HTTP_HOST header: '127.0.0.1:8000'. You may need to add '127.0.0.1' to ALLOWED_HOSTS. [30/Sep/2021 11:25:53] "GET / HTTP/1.1" 400 143 *Emmanuel Odor* Phone: *+234-7037-411553* <+234-7037-411553> Mobile: *+234-9 <+234-8093-910965>055511066* Skype: *Emmanuel Odo

Re: You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread Adeyemi Deji
Make sure debug is set to True in settings.py file. allowed host should be an empty list On Thu, 30 Sep 2021, 10:43 emmanuel odor, wrote: > Hi Everyone, > > I tried to run Django micro crm locally on my windows host and whenever i > run this on my browser i get these errors below. > > Starting

You're accessing the development server over HTTPS, but it only supports HTTP.

2021-09-30 Thread emmanuel odor
Hi Everyone, I tried to run Django micro crm locally on my windows host and whenever i run this on my browser i get these errors below. Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [30/Sep/2021 10:40:04] code 400, message Bad request version ('**\x13\x