Re: Website slowed down drasticaly

2019-05-06 Thread Saurabh Adhikary
Hey Sally,Alex,Scott, I'm real glad to see that , all of you are exactly pointing out the area of my concern. Thank you so much. The point is , there are no major change that was deployed on to the code since Dec'18. As I did mention that there has been some minor load increase of our users i

Re: Website slowed down drasticaly

2019-05-06 Thread Nick Sarbicki
Hi Saurabh, If the diminishing support was a cause of the dramatic slowdown then this would have had to be intentionally put into the codebase. I'm almost certain this isn't the case. All losing support really means is that the developers no longer provide updates and security patches. There woul

Re: Website slowed down drasticaly

2019-05-06 Thread Tim Chase
On 2019-05-06 00:20, Saurabh Adhikary wrote: > The point is , there are no major change that was deployed on to > the code since Dec'18. > As I did mention that there has been some minor load increase of > our users in the new year since Jan, but the change is not > significant. (Originally we had

Re: How to design database for django rest api

2019-05-06 Thread salimon jamiu olashile
Hello, You can use Django REST Framework to create Django APIs. Check out this tutorial (part 1 & 2) by King Kasulani on Medium. You can check Django REST Framework official website also. https://medium.com/backticks-tildes/lets-build-an-api-with-django-rest-framework-32fcf40231e5 https://medium

django models

2019-05-06 Thread Soumen Khatua
Hi Folks, How this underline code works? models.py class Address(models.Model): first_name = models.CharField(max_length=256, blank=True) last_name = models.CharField(max_length=256, blank=True) company_name = models.CharField(max_length=256, blank=True) street_address_1 = model

Info

2019-05-06 Thread Soumen Khatua
Hi Folks, Should I need to pay for asking questions or problem in this group? Thank You -- 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.

(Help Me !) How to extract name attribute of element from instantiated form object inside views.py

2019-05-06 Thread Mayur Bagul
Hello Community, I've been stuck to this problem from one week. I have read Django Doc. and i found little bit relevant to my problem. *Form.py* from django import forms class NameForm(forms.Form): city_name = forms.CharField(label='city name', max_length=100) *Views.py* from djan

Re: (Help Me !) How to extract name attribute of element from instantiated form object inside views.py

2019-05-06 Thread salimon jamiu olashile
use this to access the city_name field value; form.cleaned_data[“city_name”] Use to a print statement to see for yourself. On Mon, 6 May 2019 at 1:42 PM, Mayur Bagul wrote: > Hello Community, > > I've been stuck to this problem from one week. I have read Django Doc. and > i found little bit re

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-06 Thread Gurmeet Kaur
Hi Mayur, For your question - I would suggest you to create a situation like how will you call a function from views.py using ajax from a js file for the same page? And then you will understand the need of ajax and then will understand how you can get the data from views.py function in a js funct

django project

2019-05-06 Thread randmwheeler
I am looking for 2 people to work with me on a django project. if you are interested, email me. randmwhee...@gmail.com -- 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

Re: django project

2019-05-06 Thread fazal rehman
Is it for beginners ? On Mon 6 May, 2019, 8:01 PM , wrote: > I am looking for 2 people to work with me on a django project. > > if you are interested, email me. > > randmwhee...@gmail.com > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group.

Re: django project

2019-05-06 Thread Rob W
Yes, I’m a beginner too, but need to get it completed. The first piece should not be too difficult. > On May 6, 2019, at 10:32 AM, fazal rehman wrote: > > Is it for beginners ? > > On Mon 6 May, 2019, 8:01 PM , > wrote: > I am looking for 2 people to work wit

Re: django project

2019-05-06 Thread fazal rehman
Send me the details.. On Mon 6 May, 2019, 8:04 PM Rob W, wrote: > Yes, I’m a beginner too, but need to get it completed. The first piece > should not be too difficult. > > > > On May 6, 2019, at 10:32 AM, fazal rehman > wrote: > > Is it for beginners ? > > On Mon 6 May, 2019, 8:01 PM , wrote:

Re: django project

2019-05-06 Thread Pushkar Bhuse
Please send me the details too. On Mon, 6 May 2019 at 8:05 PM, fazal rehman wrote: > Send me the details.. > > On Mon 6 May, 2019, 8:04 PM Rob W, wrote: > >> Yes, I’m a beginner too, but need to get it completed. The first piece >> should not be too difficult. >> >> >> >> On May 6, 2019, at 10

Re: django project

2019-05-06 Thread Rob W
https://drive.google.com/file/d/1rxXhfNVYq8mapSeaEapuLLsfPc4eaNDR/view?usp=sharing > On May 6, 2019, at 10:41 AM, Pushkar Bhuse wrote: > > Please send me the details too. > > On Mon, 6 May 2019 at 8:05 PM, fazal rehman > wrote: > Send me the details.. > > On M

Re: (Help Me !) How to extract name attribute of element from instantiated form object inside views.py

2019-05-06 Thread Mayur Bagul
thanks ! for solution it will be helpful to me. On Monday, May 6, 2019 at 7:01:07 PM UTC+5:30, Jamiu Olashile Salimon wrote: > > use this to access the city_name field value; > > form.cleaned_data[“city_name”] > > Use to a print statement to see for yourself. > > On Mon, 6 May 2019 at 1:42 PM, M

Re: (Help Me !) How to extract name attribute of element from instantiated form object inside views.py

2019-05-06 Thread salimon jamiu olashile
You’re welcome On Mon, 6 May 2019 at 5:08 PM, Mayur Bagul wrote: > thanks ! > > > for solution it will be helpful to me. > > On Monday, May 6, 2019 at 7:01:07 PM UTC+5:30, Jamiu Olashile Salimon > wrote: >> >> use this to access the city_name field value; >> >> form.cleaned_data[“city_name”] >>

ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread bob
I've inherited an application written django 1.11. The old application uses raw() with INNER JOIN and GROUP BY. I cannot seem to figure out how to do inner join and group by properly the ORM way. The raw() query is below. SELECT * FROM items_monolithic INNER JOIN items_facepng ON items_monoli

Re: Handling multiple protocols in Channels 2

2019-05-06 Thread Andrea Conti
Ok, but that doesnt'solve the problem with handling the events in the right process. Anyway, I think I figured it out. It seems there is nothing magical to a 'protocol handler' after all, so I can just create a thread with its event loop and run the MQTT listener in there. No other processes r

RE: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Matthew Pava
That design could definitely be improved, and it will have to be in order to use the ORM effectively. Then you’d have to change every reference to the fields in all the raw querysets in the app. You need a ForeignKey relationship between the two models, which is an integer value, not a char. Yo

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
The field within your class should be set to ForeignKey. Try this: Object = models.ForeignKey(‘FacePng’, on_delete=SET_NULL, max_length= some_int) on_delete and max_length need to be set based on your requirements Sent from my iPhone > On May 6, 2019, at 11:28 AM, b...@tanners.org wrote: > >

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread bob
Just want to make sure I understand. ForeighKeys need to be integers? Only integers? You need a ForeignKey relationship between the two models, which is an > integer value, not a char. You’d have to do migrations to get this adjusted > properly. > -- You received this message because you a

RE: Info

2019-05-06 Thread charan
No folk No need to pay Sent from Mail for Windows 10 From: Soumen Khatua Sent: 06 May 2019 16:52 To: django-users@googlegroups.com Subject: Info Hi Folks, Should I need to pay for asking questions or problem in this group? Thank You -- You received this message because you are subscribed to

RE: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Matthew Pava
Well, I had always assumed that they do need to be integers, but it looks like this has been discussed at length. https://groups.google.com/forum/#!topic/django-users/0utRzn98Wxo It does seem clear, though, that the superior database design uses integers for ForeignKeys. And I didn’t find a way

Re: Info

2019-05-06 Thread Soumen Khatua
Then why one bit bounce application is coming everytime after sending any problem and saying if you will pay the we will allow your request to our inbox. Thanks buddy for help. On Mon, 6 May 2019, 23:25 charan, wrote: > No folk > > No need to pay > > > > Sent from Mail

Re: Info

2019-05-06 Thread Alex Heyden
When a message goes out to here, it's sent to everyone on the group. When you reply to it, it also goes out to the group. What you're seeing is someone's auto-reply. I couldn't say for sure if it's a malicious attempt to passively get some money or if it's someone not realizing his personal spam fi

Re: Info

2019-05-06 Thread Soumen Khatua
Thanks guys for your help. On Tue, 7 May 2019, 00:24 Ahmed Ishtiaque, wrote: > Ignore that. I think it's someone who's set up a ploy for that e-mail to > be replied back to get some free money. > > On Mon, May 6, 2019 at 2:50 PM Soumen Khatua > wrote: > >> Then why one bit bounce application

Re: Info

2019-05-06 Thread Ahmed Ishtiaque
Ignore that. I think it's someone who's set up a ploy for that e-mail to be replied back to get some free money. On Mon, May 6, 2019 at 2:50 PM Soumen Khatua wrote: > Then why one bit bounce application is coming everytime after sending any > problem and saying if you will pay the we will allow

Re: Info

2019-05-06 Thread Soumen Khatua
Okay Thank you for your help. On Tue, 7 May 2019, 00:26 Alex Heyden, wrote: > When a message goes out to here, it's sent to everyone on the group. When > you reply to it, it also goes out to the group. What you're seeing is > someone's auto-reply. I couldn't say for sure if it's a malicious at

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
Maybe that was a typo? The foreignkey relationship would look like this: object = models.ForeignKey(FacePng'', max_length=128, blank=False, null=False, unique=True) On Mon, May 6, 2019 at 12:44 PM wrote: > Just want to make sure I understand. ForeighKeys need to be integers? > > Only integers?

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread bob
class Monolithic(models.Model): facepng_id = models.IntegerField(blank=True, null=True) facepng_id as Integer not ForeignKey? > UPDATE items_monolithic SET facepng_id=items_monolithic.id FROM items_monolithic INNER JOIN items_facepng ON items_monolithic.object=items_facepng.obj ; Error: near

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
You are correct. Django creates a primary key of 'id' for each table as an integer by default. So foreignkey will reference that primary key which by default is an integer. If the primary key is changed to some other type, Django can still handle it. Apparently using integers is the more efficient

Re: Info

2019-05-06 Thread Emmanuel Arias
Hi Soumen, Do you have this message? Can you share us? On 5/6/19 3:49 PM, Soumen Khatua wrote: > Then why one bit bounce application is coming everytime after sending > any problem and saying if you will pay the we will allow your request > to our inbox. > > Thanks buddy for help.  > > > > On Mon

Re: django models

2019-05-06 Thread Skyisblue
Soumen, The function looks to compare two Address objects. The as_data() call is custom made. I saw it documented in your other post. It removes the Primary Key and User from the Address object. I presume this is so they can compare the hash of one address to the hash of another. Regards, Joe On

Re: WYSIWYG/Rich Text Editor recommendations

2019-05-06 Thread Tim Johnson
* Joel Mathew [190430 17:29]: > Currently I'm using quill. It's easy to implement, and has all basic > features. Joel - perhaps you could check out another thread I started: subject - "quill tries to import deprecated django.forms.util" What version of django are you using? thanks again -

Re: S3 Lifecycle expiration

2019-05-06 Thread Hardipinder Singh
Hey Britto, What I meant was have a separate data script made with boto3 where you got though every bucket id one at a time and set the values accordingly. Please check the developer documentation for same. You’ll surely find a matching function for this. By services I meant that using django che

outputting data from forms

2019-05-06 Thread Lutalo Bbosa joseph
am working on a project where my html template links to a form which has values am supposed to use to calculate the final value. am struggling to write this logic any help please -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

How to perform additional actions on PasswordReset in Django

2019-05-06 Thread arriolasimon
I'm using django-axes for the locking of account when a user tries to enter credentials that are not recognized by the system, it will lock the account. But when I do perform the password reset function using django auth package on a locked account, obviously there is no shortcut way to remov

Re: django models

2019-05-06 Thread Soumen Khatua
Yes,You are right as_data is custom made function inside the same class,here is the code: def as_data(self): """Return the address as a dict suitable for passing as kwargs.Result does not contain the primary key or an associated user.""" data = model_to_dict(self,exclude=['id','u

django models

2019-05-06 Thread Soumen Khatua
Hi Folks, I didn't understand this code please help me to understand this code. class AddressQueryset(models.QuerySet): def annotate_default(self, user): # Set default shipping/billing address pk to None # if default shipping/billing address doesn't exist default_ship