@cache_control decorator fails after update to 4.0.5

2022-06-22 Thread Matthew Hegarty
Hi All I'm upgrading to 4.0.5 from 3.2.13 My integration test fails: class FaviconTests(SimpleTestCase): def test_get(self): response = self.client.get("/favicon.ico") self.assertEqual(response.status_code, HTTPStatus.OK) self.assertEqual(response["Cache-Control"], "m

Re: @cache_control decorator fails after update to 4.0.5

2022-06-22 Thread Matthew Hegarty
OK, silly me. I should have paid more attention to the message. This fixes it: @method_decorator(cache_control(max_age=60 * 60 * 24, immutable=True, public=True), name='dispatch') On Wednesday, 22 June 2022 at 12:51:18 UTC+1 Matthew Hegarty wrote: > Hi All > > I'm upgrading to 4.0.5 from 3.2.

server can't connect in browser

2022-06-22 Thread Deep Kamal
Hi all, I am quite new in django. Just started my first project in it. I started an ec2 instance, setup virtual environment and run server through python manage.py runserver command. Server is up with no errors. But when I copy the link and open in browser it says site can't be reached. Screensho

Need help

2022-06-22 Thread Rohit Lohar
The below image consists of a form layout the main form has it's model defined and the subform has it's own model defined but I am getting problem that how should I implement and also the subform is dynamic so how can I implement it using htmx. Your help is appreciated. Thank you -- You receiv

Re: server can't connect in browser

2022-06-22 Thread Antonis Christofides
Hello, If you insist on working this way, there are two things you need to do: 1. You need to run it with "python manage.py runserver 0.0.0.0:8002". 2. 127.0.0.1 is the wrong address. Find the IP address of the server and use that one. Typically, when developing (and especially when we're ne

Re: server can't connect in browser

2022-06-22 Thread Django-Admin
Try opening the link in a browser in the same EC2 instance, if you are not doing so. On Wednesday, June 22, 2022 at 6:37:18 PM UTC+5:30 kamald...@gmail.com wrote: > Hi all, > I am quite new in django. Just started my first project in it. > I started an ec2 instance, setup virtual environment an