https://docs.djangoproject.com/en/2.2/topics/http/sessions/#configuring-sessions
On Sun, Nov 3, 2019, 09:10 Amit Agarwal wrote:
> Helo everyone,
>
> I am making a post request to the server from client.py. I am getting
> error forbidden csrf cookie not set.
>
> What is the correct way to use ses
This mostly happens when your either django is intalled fully in global
context or in virtual enviironment. Are you using virtual environment ?. If
so, did you install django in the virtual env? Did you activate the
virtualenv before proceeding ?
On Saturday, 2 November 2019 20:21:02 UTC+5:30
Hi Amit,
Here there are two ways:
1. Capture the csrf cookies and send it with request as we do it for
AJAX request. https://docs.djangoproject.com/en/2.2/ref/csrf/#ajax. Here
you will have to figure it out for python.
2. If you are doing it for testing purpose and want to bypass c
ListView is not showing me the latest created item made by CreateView even
after a refresh of my browser !
It is only solved when i restart the django server with 'python manage.py
runserver' .
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
I have this listview and the context['datetimelist'] which is a list into
def get_context_data
class ShopListView(ListView):
model = Shops
context_object_name= 'shops'
template_name = 'booking/search.html'
def get_context_data(self, **kwargs):
context = super(ShopListView, self).get_context_dat
I have this code in my html
Required Documents:
{% for d in doc %}
{{d.Description}}
{% endfor %}
This is my code in **views.py**
V_insert_data = StudentsEnrollmentRecord(
Student_Users=studentname, Payment_Type=payment,
6 matches
Mail list logo