Re: objects.filter

2018-11-30 Thread Aqilah Maulidya Sidik
Hi todor, Thanks very much you save my day... Regards On Sat, 1 Dec 2018, 12:18 Todor Velichkov, wrote: > It would be > > logbook_noc.objects.filter(StatusProgress__in = ['1 Pending', '2 On > Progress']) > > You can read more about this at Making queries >

Re: objects.filter

2018-11-30 Thread Todor Velichkov
It would be logbook_noc.objects.filter(StatusProgress__in = ['1 Pending', '2 On Progress']) You can read more about this at Making queries and please take a look at Coding styles

Why isn't user.photo being saved in UpdateView?

2018-11-30 Thread Jim Wombles
For some reason, the updateview will save all of the other user fields (and update them if changed) to the database. Do I need to handle the user.photo field differently? # views.py class UserUpdateView(LoginRequiredMixin, UpdateView): model = User fields = ["name", "photo", "city", "

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread vineeth sagar
Use this https://github.com/jpadilla/django-dotenv/blob/master/README.rst If you have copied the GitHub template of .gitignore then the .env won't be in your history of vs. I used this in production and development without a single problem. On Nov 30, 2018 11:54 PM, "Carsten Fuchs" wrote: > Am

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread Carsten Fuchs
Am 30.11.18 um 18:50 schrieb Sandip Nath: I am a newbie to Django. Using Postgresql for CRUD operations. Although its working but I need to write the password of my Postgresql server in the settings.py. How can I hide that without hampering the operation? In your settings.py, you could write

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread ljh . holmes
I typically create a second file which stores my sensitive data and import it as a variable. Then can exclude say.. credentials.py when sharing code. I don't know that this is an ideal solution, just something that I've taken as habit. On Friday, November 30, 2018 at 11:51:44 AM UTC-6, Sand

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread Bill Freeman
You should be keeping settings.py secure. There's other stuff that shouldn't be public. That's why the django project directories are not included in the pages that the front end web server is allowed to serve, among other things. Security is tough. There's no magic answer. On Fri, Nov 30, 2018

How to hide the password of postgresql in settings.py

2018-11-30 Thread Sandip Nath
I am a newbie to Django. Using Postgresql for CRUD operations. Although its working but I need to write the password of my Postgresql server in the settings.py. How can I hide that without hampering the operation? -- You received this message because you are subscribed to the Google Groups "Dj

RE: Microsoft deprecation for the Python extensions

2018-11-30 Thread Matthew Pava
I could never get Django working with IIS myself, so I simply installed Apache on Windows. I haven’t had much of a problem since. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of El_Merendero Sent: Friday, November 30, 2018 3:56 AM To: Django users Subject

Re: Easiest front end JavaScript framework to integrate with a Django backend?

2018-11-30 Thread kennedy kay
Valid point you made there vincent. Javascript libraries come and leave but django remains the same :) Best best advise would be to just learn javascript first and every other library becomes easy-peasy. ;) *Kind regards,* *E.I Kenneth[Python developer/Machine Learner]@www.wolfiegrabber.in

Re: What is meant by blocking request in django?

2018-11-30 Thread Ryan Nowakowski
This is how I think about blocking in the context of Django. Anything that takes time and is not directly related to returning an http response should be done in the background (via celery or whatever). Your email example is a good one. The email doesn't need to be sent before the http response

Re: Easiest front end JavaScript framework to integrate with a Django backend?

2018-11-30 Thread William Vincent
Hi Joel, Your view is correct. I wrote a book on Django APIs (https://restapiswithdjango.com) and struggled with this same issue. The answer is to just pick one (Vue, React, Angular are the big 3 right now) based either on a whim or on whichever seems to have more jobs available. Probably that

Microsoft deprecation for the Python extensions

2018-11-30 Thread El_Merendero
Hi all, I'm a young developer and I'm working on a Django application (wrote in Python 2.7) that need to be deployed in a IIS 10 web server (I tryed a first version of the app and it works great). Today I read this post

What is meant by blocking request in django?

2018-11-30 Thread Kharis
Once I worked on a feature that use API like sending emails from my app, I write the code inside the django app. My superior told me that causes request to block, so another request will be blocked until the process of calling the API finished and response sent to user. He suggest that this proc

Re: Update of issue (Trac) rejected (SPAM ...)

2018-11-30 Thread guettli
Thank you for guiding me Simon. I asked at django-dev here: https://groups.google.com/forum/#!topic/django-developers/d5HdZEk8OoM Am Donnerstag, 29. November 2018 19:00:51 UTC+1 schrieb Simon Charette: > > From that point you should post to the developer mailing list as it's > reaching more