Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread wongX Ndeso
You can use django form wizard if you want, much easier than you should manipulate the onclick event using javascript or something similar with that.. Maybe you should remodel your form or the flow.. Hope this help On Sun, Jun 7, 2020, 1:34 PM Sai wrote: > Hi guys, > I am working on a* Django p

Re: Error in to save data in DB using Django ORM

2020-06-07 Thread wongX Ndeso
Well, can you send the error message? It's important before i answer your question On Sat, Jun 6, 2020, 11:48 PM Ganesh Prajapat wrote: > hello, > I have a problem in my project. > basically scenario is i have 3 classes in > models.py(Subject,Exam,Registration). > Subject class have 2 field(subj

Re: problem filtering queryset in Django Rest Framework

2020-06-07 Thread wongX Ndeso
Try change this, If self.kwargs[field] is not None: With if self.kwargs[field]: <--- this will return True it the field is not empty This is the better way to filter, if you want filter the fields is empty then just add not like this example if not self.kwargs[field]: On Sun, Jun 7, 2020, 1:06 AM

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread wongX Ndeso
Try django generic edit view (CBV). You can use DeleteView Class to perform what you need to do.. On Sat, Jun 6, 2020, 3:48 AM Nader Elsisi wrote: > I have just posted > > > https://stackoverflow.com/questions/62218886/django-tables-2-delete-column-and-delete-item-for-inherited-tables > > > and

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread wongX Ndeso
If you use django to perform some delete action, or others like create or update, please make sure you have csrf_token in your html form file, and then you should filter if the form is valid or not, then you can process the data that send from delete page. On Sat, Jun 6, 2020, 3:48 AM Nader Elsis

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread Nader Elsisi
Thanks I hope you get what I am asking for. I want to be able to delete from the list. Not one object. Also, l want one function for different models. I am doing it now but I need to improve it. So l asked for help. On Sun, Jun 7, 2020, 6:40 AM wongX Ndeso wrote: > If you use django to perform s

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread wongX Ndeso
So what you mean is bulk delete? Is that what you asking? On Sun, Jun 7, 2020, 6:48 PM Nader Elsisi wrote: > Thanks I hope you get what I am asking for. I want to be able to delete > from the list. Not one object. Also, l want one function for different > models. > I am doing it now but I need

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread Ernest Thuku
I think that you will have to use something like JavaScript in the model forms On Sun, Jun 7, 2020, 09:34 Sai wrote: > Hi guys, > I am working on a* Django project,* which involves submission form and > saving the data in the database using model form. I am stuck with one of > the functionaliti

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread Shyam Acharjya
If anyone has done this before.plese share the sollution.thnx On Sun, Jun 7, 2020 at 3:52 PM wongX Ndeso wrote: > You can use django form wizard if you want, much easier than you should > manipulate the onclick event using javascript or something similar with > that.. > Maybe you should remo

How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
Hi You need to use some JQUERY code You need this in admin or frontend ? -- 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...@googlegroup

Re: Required Python Django developers

2020-06-07 Thread RAVI KUMAR
Hi, I'm interested On Saturday, June 6, 2020 at 8:39:37 PM UTC+5:30, maninder singh Kumar wrote: > > Dear all, > > We require python django developers for a HR project. Please answer to > maninder.s.ku...@gmail.com if interested. > > regards > Willy > -- You received this message because you

How to use django login_required decorator for custom authentication backend?

2020-06-07 Thread reasm
Hi, I have created an authentication backend that allows users to login using their username, password and institute id. Although the user can login but it doesn’t get access to the view with login_required decor. When I login to the site it redirects to this url: ' http://xxx.xx.xx.x:/acco

Resolution needed!

2020-06-07 Thread BISWAJEET MISHRA
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NOT NULL)' at line 1")) getting this error aft

Re: Required Python Django developers

2020-06-07 Thread Metehan Gülaç
I'm interested. 7 Haz 2020 Paz 16:49 tarihinde RAVI KUMAR şunu yazdı: > Hi, I'm interested > > On Saturday, June 6, 2020 at 8:39:37 PM UTC+5:30, maninder singh Kumar > wrote: >> >> Dear all, >> >> We require python django developers for a HR project. Please answer to >> maninder.s.ku...@gmail.c

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread Shyam Acharjya
hi AMINE AZIZ. for frontend what approach should be taken? thnx On Sunday, June 7, 2020 at 7:19:28 PM UTC+5:30, AMINE AZIZ wrote: > > Hi > > You need to use some JQUERY code > > You need this in admin or frontend ? -- You received this message because you are subscribed to the Google Groups

Re: Required Python Django developers

2020-06-07 Thread Ganesh Prajapat
Hi Sir, I am interested in this role. kindly reply me for further details. Thanks & Regards On Sat, 6 Jun 2020 at 11:09, maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Dear all, > > We require python django developers for a HR project. Please answer to > maninder.s.ku...@gmail.com i

Re: Required Python Django developers

2020-06-07 Thread Shubham Mishra
Hello sir , I am interested in this job . Please revert what kind of detail you are looking for. Thanks & Regards. On Sun, Jun 7, 2020, 19:18 RAVI KUMAR wrote: > Hi, I'm interested > > On Saturday, June 6, 2020 at 8:39:37 PM UTC+5:30, maninder singh Kumar > wrote: >> >> Dear all, >> >> We requir

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread chaitanya orakala
Thanks for the response guys. I see many of them are saying need to use javascript or jquery. Is there any reference links to achieve that? ? On Sun, Jun 7, 2020 at 10:00 AM Shyam Acharjya wrote: > hi AMINE AZIZ. for frontend what approach should be taken? > thnx > > On Sunday, June 7, 2020 at

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
You 'll use JQUERY normal as the same in html You need every html id (so you cab add on change) JQUERY on change select Show hidden popup / or show hidden input Share your code. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread chaitanya orakala
*sure, here is my code*. please let me know how can I modify this to achieve a dependent drop fields. I want it to make action on executive_authority, next fields should pop-up *Views.py* from django.shortcuts import render, redirect from er_form.forms import NewClientForm, BillingGroupForm f

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread chaitanya orakala
Can anyone suggest how to approch this??? On Sun., Jun. 7, 2020, 12:09 p.m. chaitanya orakala, < chaitu.orak...@gmail.com> wrote: > *sure, here is my code*. please let me know how can I modify this to > achieve a dependent drop fields. > I want it to make action on executive_authority, next field

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
I will share with you my iwn code used in admin , but it still the same as the front end withe jQuery i can show input or hide it , so you will do the same with popup , by default it will be display none, and with Jquery you can show it if user change value to yes dropdown (select) $(do

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
I will share with you my iwn code used in admin , but it still the same as the front end withe jQuery i can show input or hide it , so you will do the same with popup , by default it will be display none, and with Jquery you can show it if user change value to yes dropdown (select) you will u

Re: Resolution needed!

2020-06-07 Thread Kasper Laudrup
Hi Biswajeet, On 07/06/2020 09.32, BISWAJEET MISHRA wrote: django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to

How to get a full path of web page to my views.py?

2020-06-07 Thread Sergei Sokov
I have the path in the web browser like this http://192.168.0.178:8000/customers-orders/37/customers-orders-date/?datefilter=06%2F14%2F2020+-+06%2F26%2F2020 How to get this path to my views.py for to work with it? -- You received this message because you are subscribed to the Google Groups "Dja

Comment system in class based view in django showing error

2020-06-07 Thread Ali Ahammad
the basic source files are here : https://pastebin.pl/view/a0a1fc38 and i am trying to do it in class based view for further upgrade. My main project is written in class based view and it will be easy to integrate for me. views.py codes are give below: fro

Re: django tables 2 - delete column and delete_item for inherited tables

2020-06-07 Thread Nader Elsisi
Single records but from listview On Sun, Jun 7, 2020, 8:30 AM wongX Ndeso wrote: > So what you mean is bulk delete? Is that what you asking? > > On Sun, Jun 7, 2020, 6:48 PM Nader Elsisi wrote: > >> Thanks I hope you get what I am asking for. I want to be able to delete >> from the list. Not o

How to retrieve dynamically the data ,submitted by a form in an html page, in a python function pointing to another html page in views.py?

2020-06-07 Thread Pierre Jutard
I have 2 html pages A and B. The user fills the AForm in the 'A' HTML page(URL: A) then he will go to the 'B' html page (url: A/B) but i would like to keep the AForm data of the 'A'HTML page in the python code in order to use it after in the python function pointing to the 'B' HTML page. My ide

Quick way to set up a faceted search/database using Django?

2020-06-07 Thread Ari Davidow
One response to the #blacklivesmatter protests in response to the murder of George Floyd and so many others could be to put up a web page - links to local protests/vigils, videos to watch (especially if white and learning about "white privilege", organizations who can use donations specifically rig

Date comparison as a filter

2020-06-07 Thread Clive Bruton
I would like to add a date comparison filter to a lookup, to find items in a database table that have not yet expired. I tried: .filter(expires>=datetime.today()) \ But this does not appear to have any effect. "expires" is a column in the table of datetime type, that looks like this

Re: Quick way to set up a faceted search/database using Django?

2020-06-07 Thread Cam
Unsubscribe On Sun, Jun 7, 2020 at 3:29 PM Ari Davidow wrote: > One response to the #blacklivesmatter protests in response to the > murder of George Floyd and so many others could be to put up a web > page - links to local protests/vigils, videos to watch (especially > if white and learning abou

Re: Quick way to set up a faceted search/database using Django?

2020-06-07 Thread nei...@nein09.com
Ari, If I were going to do this in Django, I think what I’d do is have a database table with the things you mention in it like ‘link’, ’title’, etc, and a ManyToManyField to a tags table or a “sections” table - “sections” being the “what is happening” /“who is working on this” things you mentio

Re: How to retrieve dynamically the data ,submitted by a form in an html page, in a python function pointing to another html page in views.py?

2020-06-07 Thread Agnese Camellini
If you bind the form to a model and the you retrieve the model in the other page everything will be ok Il Dom 7 Giu 2020, 22:09 Pierre Jutard ha scritto: > I have 2 html pages A and B. The user fills the AForm in the 'A' HTML > page(URL: A) then he will go to the 'B' html page (url: A/B) but

Re: Comment system in class based view in django showing error

2020-06-07 Thread Yamen Gamal Eldin
in CBVs the request is an attribute of the main view class you are inheriting from it. so to fix your issue, change this : - request.method == "POST" - self.request.method == "POST" another thing i've noticed in those lines: post=Post.objects.all() comments=Comment.objects.filter(*post=post*) Yo

Help me!

2020-06-07 Thread meera gangani
I want to create personal chat in django!! What Can I Do? And What are the Libraries I install? Please Help Me Out!! Thanks in advance -Meera Gangani -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: Help me!

2020-06-07 Thread Tobi DEGNON
Make research about Django channels Le lun. 8 juin 2020 07 h 18, meera gangani a écrit : > I want to create personal chat in django!! > > What Can I Do? > And What are the Libraries I install? > Please Help Me Out!! > > Thanks in advance > -Meera Gangani > > -- > You received this message becaus