Re: Creating Objects from Annotations and Other Models

2019-03-20 Thread Derek
Permanently storing data that can be recalculated from existing data is a practice specific to the needs of particular applications. Have you perhaps considered making use of the "view" table functionality available in most databases? For example, in PostgreSQL you can create a materialized

Re: Is there any inline editing the data and delete data in table in Django?

2019-03-20 Thread Derek
If I had to do something like this right now I would probably look at: * https://bossanova.uk/jexcel/examples/tracking-changes-on-the-spreadsheet , * plus the javascript needed to handle the front-end GET/POST requests (MANY examples on the web) when data changes, * along with Django DRF on

log out a user when user closes tab or browser

2019-03-20 Thread Sam W
Is there a way in Django to log out a user when user closes tab or browser? This one "SESSION_EXPIRE_AT_BROWSER_CLOSE =True" Doesn't work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Is there any inline editing the data and delete data in table in Django?

2019-03-20 Thread Chetan Ganji
Hi Sankar, Derek is right, we can only give you suggestions as we are far away from you. How is really upto YOU. What you are trying to achieve is basically a front end task. You only have knowledge of django which is a backend technology. You have many options to make choice from - 1. You have

Crispy: Helper Layout has no effect on form.

2019-03-20 Thread Mohammad Etemaddar
Here is my model form which is rendered by crispy. When I change the layout, ordering, or adding elements, has no effect on rendered form. Do you see any problem in the code? Thank you class FactoryForm(forms.ModelForm): class Meta: model = Factory fields = ('name','field', 'description',

Re: How to create a fixed-length binary field with a unique constraint?

2019-03-20 Thread Anubhav Gupta
Hi, My use case is exactly similar to this with one additional condition that I want this column to serve as Primary Key of my table. Now when I use the following code: class BinaryTable(models.Model): binary_hash = models.BinaryField(primary_key=True) comments =

error passing int values from browser to path

2019-03-20 Thread charan . j . tej
iam oassing an interger valu from browser to the path using but it is showing as an error not an intege Environment: Request Method: GET Request URL: http://localhost:8000/hello/2 Django Version: 2.1.7 Python Version: 3.7.2 Installed Applications: ['django.contrib.admin',

Re: How To Use PostgreSQL with your Django on Ubuntu

2019-03-20 Thread VeeraNagaRaja Sankar
hi Nasim, this is config setting to use the Postgres DB instead of using SQLite in Django Best Regards, Inti VeeraNagaRaja Sankar,M.Tech(IT) M: 9985864383 intisank...@gmail.com https://about.me/veeranagarajasankar On Wed, Mar 20, 2019 at 5:56 PM Nasim TKP wrote: > What is this will you

Re: How To Use PostgreSQL with your Django on Ubuntu

2019-03-20 Thread Nasim TKP
What is this will you explain in detail please On Wed, 20 Mar 2019, 2:50 pm omar ahmed, wrote: > done ... it works thank you veera > > On Tuesday, March 19, 2019 at 3:32:31 PM UTC+2, veera nagaraja sankar Inti > wrote: >> >> first need to install postgresql_psycopg2 driver >> >> create postgres

Re: ML-Python

2019-03-20 Thread UNIQ technologies
Use model_selection it will work sklearn.model_selection On Mar 20, 2019 2:46 PM, "'Amitesh Sahay' via Django users" < django-users@googlegroups.com> wrote: > This forum is to provide help on Django related queries. Kindly refrain > asking un-related topics. > > Regards, > Amitesh Sahay > > > On

Re: How To Use PostgreSQL with your Django on Ubuntu

2019-03-20 Thread omar ahmed
done ... it works thank you veera On Tuesday, March 19, 2019 at 3:32:31 PM UTC+2, veera nagaraja sankar Inti wrote: > > first need to install postgresql_psycopg2 driver > > create postgres user (merudan) > > # DATABASES = { > # 'default': { > # 'ENGINE':

Re: ML-Python

2019-03-20 Thread Emeka Boris ama
Are u using notebook or Editor? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: ML-Python

2019-03-20 Thread 'Amitesh Sahay' via Django users
This forum is to provide help on Django related queries. Kindly refrain asking un-related topics. Regards, Amitesh Sahay On Wednesday, 13 March, 2019, 9:05:08 pm IST, Utpal Mishra wrote: You have to use "model_selection", it will work. Quite a while ago "cross_validation" has been

Re: Is there any inline editing the data and delete data in table in Django?

2019-03-20 Thread VeeraNagaRaja Sankar
hi, means, i am only aware of Django so i need any code reference to do that thank you, Best Regards, Inti VeeraNagaRaja Sankar,M.Tech(IT) M: 9985864383 intisank...@gmail.com https://about.me/veeranagarajasankar On Wed, Mar 20, 2019 at 11:55 AM Derek wrote: > That is not an answerable

Re: Is there any inline editing the data and delete data in table in Django?

2019-03-20 Thread Derek
That is not an answerable question. We have given you suggestions - the "how" is up to you. On Tuesday, 19 March 2019 09:36:27 UTC+2, veera nagaraja sankar Inti wrote: > > > how ? > > On Monday, March 4, 2019 at 12:40:03 PM UTC+5:30, Derek wrote: >> >> Grid / tabular editing outside of the