Python problem

2019-12-15 Thread Soumen Khatua
Hi Folks, I'm stucking in this problem from 5 hours but still I'm not bale to logic to solve this problem, Please help me guys to solve this problem: Example:- input: h123456ello output: o123456lleh input: th34isisast56ring3 output: gn34irtsasi56siht3 Thank you in advance. regards, Soumen --

Re: Python problem

2019-12-15 Thread Chetan Ganji
# input: h123456ello # output: o123456lleh # input: th34isisast56ring3 # output: gn34irtsasi56siht3 order = {} characters = "" input_string = "h123456ello" # input_string = "th34isisast56ring3" counter = 0 output_string = "" for index, character in enumerate(input_string): order[index] = c

Re: Python problem

2019-12-15 Thread Gil Obradors
Chetan, you're a genius! Missatge de Chetan Ganji del dia dg., 15 de des. 2019 a les 16:28: > # input: h123456ello > # output: o123456lleh > > # input: th34isisast56ring3 > # output: gn34irtsasi56siht3 > > > order = {} > characters = "" > input_string = "h123456ello" > # input_string = "th34isis

how to update many to many fields in django?

2019-12-15 Thread Ahmad Ebrahim
I'm struggling with this problem for 2 weeks please help me. https://stackoverflow.com/questions/59269426/how-to-update-many-to-many-fields regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: Python problem

2019-12-15 Thread Soumen Khatua
Thanks a lot. On Sun, Dec 15, 2019 at 9:07 PM Gil Obradors wrote: > Chetan, you're a genius! > > Missatge de Chetan Ganji del dia dg., 15 de des. > 2019 a les 16:28: > >> # input: h123456ello >> # output: o123456lleh >> >> # input: th34isisast56ring3 >> # output: gn34irtsasi56siht3 >> >> >> ord

Re: gunicorn.errors.HaltServer:

2019-12-15 Thread Integr@te System
Hi Issuer, Try to run command: --preload to whatsup with worker processes and app and server. On Sun, Dec 15, 2019, 13:32 Ram wrote: > Hi, > > I followed this document > > an

Re: how to update many to many fields in django?

2019-12-15 Thread Motaz Hejaze
Call me on skype lets see your code and your problem .. My skype : m3tz-hjze On Sun, 15 Dec 2019, 5:49 pm Ahmad Ebrahim, wrote: > I'm struggling with this problem for 2 weeks please help me. > > > https://stackoverflow.com/questions/59269426/how-to-update-many-to-many-fields > > > regards. > >

Re: Looking for internship

2019-12-15 Thread talha qamar
python On Wed, Dec 11, 2019 at 5:23 PM Abhishek Satbhai < abhishek07satb...@gmail.com> wrote: > Which programing languages you know? > > On Wednesday, December 11, 2019 at 9:33:37 AM UTC+5:30, Anirudh choudhary > wrote: >> >> Hello all >> I am looking for internship in Delhi or pune. I am current

I am creating a project management app Each user has multiple projects and each project has a set of data When first logged in the user sees a list of all the projects only he created.i am able to do

2019-12-15 Thread Raviteja Reddy
class projectsmodel(models.Model): added_by = models.ForeignKey(settings.AUTH_USER_MODEL,null=True,blank=True,on_delete=models.SET_NULL) projects=models.CharField(max_length=300) def save_model(self,request,obj,form,change): obj.added_by=request.User super().save_mod

user login not working anyone please help

2019-12-15 Thread Sai Yuva Teja Gorthy
github repo is https://github.com/Yuvateja01/project.please help -- 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 vi

Re: [Django] How to render a form 'n' number of times based on the dropdown selected integer in main Form

2019-12-15 Thread Dominick Del Ponte
If you don't want to use JS you'll need to have the first form POST in order to send the number of forms to render to the backend. Then you should be able to use formsets with the 'extra' attribute to render multiple identical

Re: gunicorn.errors.HaltServer:

2019-12-15 Thread Ram
Hi Integr, Thank you for the answer but I don't see '--preload' option for the same command. Am I missing anything? > > $ sudo systemctl --preload gunicorn.service >> systemctl: unrecognized option '--preload' >> > $ sudo systemctl status gunicorn.service --preload > systemctl: unrecognized optio

Re: I am creating a project management app Each user has multiple projects and each project has a set of data When first logged in the user sees a list of all the projects only he created.i am able to

2019-12-15 Thread Parth Joshi
Question is trimmed in the subject line. Can you paste it in description? > On 15-Dec-2019, at 10:50 PM, Raviteja Reddy wrote: > > https://groups.google.com/d/msgid/django-users/0ff70f63-df88-430a-ba3c-4b0273395999%40googlegroups.com > >

Daphne SIGKILLS on production server

2019-12-15 Thread Vaisagh Viswanathan
Hi, We recently changed to django 2.x and channels. 2.2 from a system that has been running relatively stable on channels 1.x for almost 3 years now. Our tests did not show any issues when we were running django channels in our test servers. And even when we tried load testing with frequent reques

Re: Daphne SIGKILLS on production server

2019-12-15 Thread Vaisagh Viswanathan
I forgot to mention supervisor is my process manager. On Monday, December 16, 2019 at 12:08:55 PM UTC+8, Vaisagh Viswanathan wrote: > > Hi, > > We recently changed to django 2.x and channels. 2.2 from a system that has > been running relatively stable on channels 1.x for almost 3 years now. Our

Re: gunicorn.errors.HaltServer:

2019-12-15 Thread Ram
I changed the files as follows but the error is the same. > cat /etc/systemd/system/gunicorn.socket > [Unit] > Description=gunicorn socket > > [Socket] > ListenStream=/run/gunicorn.sock > #ListenStream=/home/xx/myproject/myapp/myapp.sock > > [Install] > WantedBy=sockets.target > > $ cat /etc/syste

Re: gunicorn.errors.HaltServer:

2019-12-15 Thread Ram
Wanted to know whether this is a bug specific to gunicorn? > > pip show gunicorn Name: gunicorn Version: 20.0.2 Summary: WSGI HTTP Server for UNIX Home-page: http://gunicorn.org On Sun, Dec 15, 2019 at 9:58 PM Ram wrote: > I changed the files as follows but the error is the same. > >> cat /etc

Re: I am creating a project management app Each user has multiple projects and each project has a set of data When first logged in the user sees a list of all the projects only he created.i am able to

2019-12-15 Thread Raviteja Reddy
I am creating a project management app Each user has multiple projects and each project has a set of data When first logged in the user sees a list of all the projects only he created.i am able to do this. Then when clicked on the project the data related only to that project is to be shown. How

Re: Python problem... Chetan is really Genius

2019-12-15 Thread Balaji Shetty
Yes... Definitely I am also Ghetan Fan. He has tremendous knowledge and Practical Experience of Django. Cheers for Chetan On Sunday, December 15, 2019, Gil Obradors wrote: > Chetan, you're a genius! > > Missatge de Chetan Ganji del dia dg., 15 de des. > 2019 a les 16:28: > >> # input: h1234

Re: I am creating a project management app Each user has multiple projects and each project has a set of data When first logged in the user sees a list of all the projects only he created.i am able to

2019-12-15 Thread Dominick Del Ponte
I think you're looking for a detailView . You'll likely need to pass in your URL config to the view in order to filter the boqmodel by the foreignKey. Here's a video explaining detailViews.

Re: Python problem... Chetan is really Genius

2019-12-15 Thread sagar ninave
i am too @Balaji Shetty . actually yesterday evening he helped me to solved some problem on linked in where i was stuck. -- 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 e