Re: Django best practices tutorial recommendation

2018-03-31 Thread Vineet Kothari
you get it in pdf online . On Sat, Mar 31, 2018 at 11:21 AM, Roel Delos Reyes wrote: > Hi, can anyone give me some guide where i can find a free ebook best > practices alternative for the great Two Scoops of Django 1.11? Can't afford > it this time. > > -- > You received

Re: New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread Robert Singer
Thanks! Yup, should be compatible with Django 1.11. It is *only compatible* with Python 3.4 and up, though. There is no binding technical reason for this - it's just what my organization uses and I've been in habit of using type annotations. So if there is demand for Python 2.7

Re: New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread acheraime
Very interesting! Good job. Is this module supported in 1.11? Sent from my iPhone > On Mar 31, 2018, at 3:18 PM, George Silva wrote: > > From Reading the readme this looks promising. > > Congrats! > > I might use this soon. > > Em sáb, 31 de mar de 2018 15:50,

Display graphic on a website Problem

2018-03-31 Thread Rafael Madeira
Hello, can anyone help me ? I try to display a graphic with curves changing every second on a website with the framework Django. The problem here is as follows: I can’t see my display on the website. The code is as follows: *models.py:* # -*- coding: utf-8 -*- from __future__

Re: New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread George Silva
>From Reading the readme this looks promising. Congrats! I might use this soon. Em sáb, 31 de mar de 2018 15:50, Robert Singer escreveu: > Hey there - > > I just wanted to let community know about a small add-on I wrote in order > to add Rails-style hooks/callbacks to

New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread Robert Singer
Hey there - I just wanted to let community know about a small add-on I wrote in order to add Rails-style hooks/callbacks to Django models. https://github.com/rsinger86/django-lifecycle Feedback welcome and appreciated :) Cheers. -- You received this message because you are subscribed to

Re: Filtering Queryset by Foreign Key Properties

2018-03-31 Thread Daniel Sears
You may want to first write a test for this using something like pytest. That's what I did and the following worked fine. Note that query is a queryset, which is an iterable. So you have to index it. And product__type__name will ultimately match with a string because the name field in ProductType

Django best practices tutorial recommendation

2018-03-31 Thread Roel Delos Reyes
Hi, can anyone give me some guide where i can find a free ebook best practices alternative for the great Two Scoops of Django 1.11? Can't afford it this time. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Updating Django for my web based application

2018-03-31 Thread Babatunde Akinyanmi
Hi Ahmed, I made some inline comments On Sat, 31 Mar 2018, 10:44 Haroon Ahmed, wrote: > Hi, > > I am using python 3.4 already! > Yes my project is big, it is almost completed now but the requirement is > to upgrade it to latest suitable release and that release should not

How to modify a MonthArchiveView to show Quarter, Quarter and Semesters

2018-03-31 Thread Michel Vega Fuenzalida
Hello Group, I want to show a result in Quarter, Term and Semester, but MonthArchiveView only shows results for 1 month. Has anyone accomplished this? Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Filtering Queryset by Foreign Key Properties

2018-03-31 Thread Jamaldin Pro
Can anyone help me? -- 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: django autocomplete light

2018-03-31 Thread Gerald Brown
Have a look at this article: https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html It might do what you are trying to do. There are also a lot of other posts about Django on this site. On Saturday, September 16, 2017 at

Django 2 autocomplete

2018-03-31 Thread Gerald Brown
Greetings: Has anyone used the new Django2 autocomplete function? If so do you know of any tutorials or samples on how to set it up? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Decoupling Postgres database credentials in django for deployment.

2018-03-31 Thread Derek
How is github "security" going to help you keep your passwords safe and why is this better than ENV variables (which most of use without any problems).? On Friday, 30 March 2018 16:50:03 UTC+2, Bill Torcaso wrote: > > > I have a concern about using environment variables to hold secret >

Filtering Queryset by Foreign Key Properties

2018-03-31 Thread Jamaldin Pro
> > class ProductType(models.Model): > > image = models.ImageField(upload_to='products_type_images/') > name = models.CharField(max_length=20, blank=True, null=True, > default=None) > is_active = models.BooleanField(default=True) > > def __str__(self): > return "%s" %

Re: how to update form after a user select a choice

2018-03-31 Thread xueqi dong
Hi thanks for advice. Though could you please provide an example somewhere? my application probably needs to use javescript once - it is a bit hard to learn javascript from the beginning...

Re: Django Version update for my project

2018-03-31 Thread Andréas Kühne
Hi - see my comments below. 2018-03-30 8:44 GMT+02:00 Haroon Ahmed : > Hi, > > I want to update my Django version from Django 1.9.8 to Django 2.0.3 > because it is mentioned in the Django 1.9.8 official document that this > version has security issues. > >

Re: Decoupling Postgres database credentials in django for deployment.

2018-03-31 Thread Andréas Kühne
All you should do is have production settings as default - all settings (like DEBUG) should be set the way you use them in production. Then you have a local setting on your development machine - that should enable DEBUG and also NEVER be stored in the repository. Development settings should not

Re: how to update form after a user select a choice

2018-03-31 Thread Jani Tiainen
Hi, You need to write a piece of javascript that attaches to your radio buttons to call some javascript function to do what ever you want to happen. You can use js libraries like jquery to make things easier. 31.3.2018 14.15 "xueqi dong" kirjoitti:

how to update form after a user select a choice

2018-03-31 Thread xueqi dong
Hi, I would like to achieve the function as shown in the picture above. When an user click the radio button Lottery 1, Lottery 1 in the table above will become

Re: Django Unable to Send Email

2018-03-31 Thread yingi keme
Okk. Thanks I will consult with them Yingi Kem > On 31 Mar 2018, at 11:52 AM, Jani Tiainen wrote: > > Hi, > > Error means that user which is used as sender of email is actually not > permitted to send emails. > > You need to check with your IT support is your

Re: Django Unable to Send Email

2018-03-31 Thread Jani Tiainen
Hi, Error means that user which is used as sender of email is actually not permitted to send emails. You need to check with your IT support is your support@**.org allowed to send emails through your smtp provider. la 31. maaliskuuta 2018 klo 13.30 yingi keme kirjoitti:

Django Unable to Send Email

2018-03-31 Thread yingi keme
Hi I am getting a SMTPData Error when i try to send message from my django application The Error it gives is this smtplib.SMTPDataError: (550, b'5.7.60 SMTP; Client does not have permissions to send as this sender [BN6PO18UB1201.namprd18.prod.outlook.com]') In My settings.py I have the

Re: Updating Django for my web based application

2018-03-31 Thread Jani Tiainen
Hi, See https://www.djangoproject.com/weblog/2015/jun/25/roadmap/ how Django releases and fixes are applied. la 31. maaliskuuta 2018 klo 12.45 Haroon Ahmed kirjoitti: > Hi, > > I am using python 3.4 already! > Yes my project is big, it is almost completed now but the

Re: Updating Django for my web based application

2018-03-31 Thread Haroon Ahmed
Hi, I am using python 3.4 already! Yes my project is big, it is almost completed now but the requirement is to upgrade it to latest suitable release and that release should not be insecure. when i started this project, it was not written on Django 1.9.8 official document that its an insecure

Re: When deleting field in models admin form not updating.

2018-03-31 Thread Gerald Brown
I had run migrations several times. The last migration said "Nothing changed.". However today when I rebooted my system the fields were gone so I guess the reboot took care of them. Thanks for your reply. On Saturday, March 31, 2018 at 12:54:14 AM UTC+8, Andrew Korir wrote: > > have you

Re: When deleting field in models admin form not updating.

2018-03-31 Thread Gerald Brown
On Friday, March 30, 2018 at 9:31:11 PM UTC+8, Gerald Brown wrote: > > I am using Django 2.0.3 and Python 3.6. When I delete a field in the > model file it is NOT being deleted in the admin form. Any ideas on how I > can delete the field on the admin form? > > Thanks. > -- You received

Re: Updating Django for my web based application

2018-03-31 Thread Jani Tiainen
Hi, In most cases, if possible I would upgrade latest release. Main issue with 1.11 to 2.0 upgrade is Python 2 support. 1.11 is the last version to support Python 2.7 and starting from Django 2.0 Python 3 is required. Of course, if your project is a big that takes long time to upgrade, sticking

Re: Updating Django for my web based application

2018-03-31 Thread Haroon Ahmed
Hi, Thanks for the information! Should i upgrade to Django 2 for my project? As Django 2 is not Long Time Supported. Django 1.11 is the latest release that is Long Time Supported yet! Should I go for Django 1.11 at the moment rather then Django 2.0? What will be your suggestion for me? What