Django save all data

2019-11-03 Thread kevin trinidad
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,

pass parameter from one class view to another

2019-11-03 Thread sotiris moustogiannis
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,

ListView is not showing me the latest created item made by CreateView !

2019-11-03 Thread Franz Ulenaers
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.

Re: Help with manage.py help

2019-11-03 Thread Parth Joshi
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

Re: How to use session in django

2019-11-03 Thread Parth Joshi
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

Re: How to use session in django

2019-11-03 Thread Integr@te System
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

Deploy your django app in the heroku sky

2019-11-03 Thread Abu Yusuf
Some of us are always facing issues while trying to deploy django apps to the heroku. I have a number of apps on the heroku server. Here i have written the simplest way to deploy your apps: https://yusuff.dev/blog/4/ If you find something helpful please hit a star on the git repo. Thanks. --