Re: Best way to keep the current selection

2016-07-27 Thread Javier Guerra Giraldez
On 27 July 2016 at 02:02, Lee Hinde wrote: > To maintain state, after any ad-hoc query, I store the ids for the found > records: > > self.request.session['query.classes.last_ids'] = > list(queryset.values_list('id', flat=True)) add a new model: Previous_Searchs or something like this, with meta

Installation

2016-07-27 Thread Its Eternity
Hey, a friend recently wrote my a web-app for me to use however I am not sure how I deploy the web app onto my VPS. I've looked at the tutorials on Django but it says that I can only use it for development. Is there a method for me to get Django for public use? -- You received this message be

Re: Installation

2016-07-27 Thread Julien Castets
On Wed, Jul 27, 2016 at 10:16 AM, Its Eternity wrote: > Hey, a friend recently wrote my a web-app for me to use however I am not > sure how I deploy the web app onto my VPS. I've looked at the tutorials on > Django but it says that I can only use it for development. Is there a Hi, I created a P

Re: Installation

2016-07-27 Thread Sergiy Khohlov
Take a look at https://jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/ this is perfect doc related to your situation s. 27 лип. 2016 12:04 "Its Eternity" пише: Hey, a friend recently wrote my a web-app for me to use however I am not sure how I deploy the web app onto my VP

Re: How do I do a multiple select in the Admin filters ?

2016-07-27 Thread Hurlu
Woo , finally did it ! For those coming after me , here is how I did : Your struggle probably comes from the self.value() never being a list , right ? Well then, if you override the template filter.html to add a "multiple" to t

Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Stodge
My website uses a combination of Django + Java apps to function. For this particular problem, a record is deleted from the DB via a TastyPie resource DELETE operation. A Django signal post_delete handleris invoked, which submits a DELETE request to Jetty running in the Java app. The Java app th

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Constantine Covtushenko
Hi Stodge, As said in Django current version of documentation , 'post_delete' signal is sent after record is deleted. This means also that transaction is closed at that moment. And DB should not has deleted instance any more. I have

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Luis Zárate
I thing java apps have a cache and it is java who is not looking in the database. I was a similar problem with hirbernate time ago. But I never solved other person solved it and I don't know how. El miércoles, 27 de julio de 2016, Constantine Covtushenko < constantine.covtushe...@gmail.com> escri

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Mike Dewhirst
On 28/07/2016 5:46 AM, Constantine Covtushenko wrote: Hi Stodge, As said in Django current version of documentation , 'post_delete' signal is sent after record is deleted. This means also that transaction is closed at that moment.