Re: How to work in Visual Studio Code with Virtual Environment & Django ?

2019-12-30 Thread Scot Hacker
With your project option, use the command "Select Interpreter" - the virtual environment used by VSCode will be the one the python you select belongs to. Documentation is here: https://code.visualstudio.com/docs/python/environments ./s On Tuesday, December 24, 2019 at 1:41:43 AM UTC-8, Parvez

Draft documentation of case study - Custom user model mid-project #2

2019-12-30 Thread Mike Dewhirst
Custom user documentation (Draft subject to improvements from others) Based on Tobias McNulty's "How to Switch to a Custom Django User Model Mid-Project" [1] and also on Aymeric Augustin's approach documented in Django ticket #25313 [2] Assumptions - Existing project without a custom user mod

Re: I am Started Django Please help me

2019-12-30 Thread Peter juliano
What view in specific ?. If you refering to the "get_queryset" view if simple as. from django.views.generic import View Class get_queryset(View): def get(self, request): """ Return the last five published questions (not including those set to bepublished in the future)."""

Re: How to ensure genuine emails despite valid email format?

2019-12-30 Thread David Mayne
a) - you can use a service like http://www.bulkemailchecker.com/ - there are a number of them that have an api you can verify the email address on form input. b - d) you can use https://mxtoolbox.com/ api to find blacklisted IP's and domains. Another option is to add a verification step - send the

Re: How to ensure genuine emails despite valid email format?

2019-12-30 Thread Jason
I have no idea if this is a thing in Mailgun, sorry. You'll have to check their documentation. -- 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+uns

How can i update a choice value in Model Field

2019-12-30 Thread Yash Garg
in models.py i have choices in a field- APPROVAL_CHOICES = ( ('APPROVED', 'Approved'), ('PENDING','Pending'), ('REJECTED','Rejected'), ) approval_status = models.CharField(_("Approval Status"),max_length=8,null=False,blank=False,choices=APPROVAL_CHOICES, default='Appr

Re: How to ensure genuine emails despite valid email format?

2019-12-30 Thread Roshan Shah
Great. Anyway you can get mailgun email bounces data and automatically update your local database and flag those profiles with bounced emails in your application? Roshan On Mon, Dec 30, 2019 at 8:54 AM Jason wrote: > Part of your problem is that email is a fire-and-forget application. Once >

Re: Running polls tutorial, see the error message "The empty path didn't match any of these."

2019-12-30 Thread Jose M.
Thansk you are the man! yep this helped me in 2019! Cheers! On Saturday, February 24, 2018 at 10:23:25 PM UTC-5, Dylan Reinhold wrote: > > What you are seeing is correct. > That congratulations page is only displayed by django when you have no > url's defined other than admin. Once you add your f

Re: I am Started Django Please help me

2019-12-30 Thread Moaaz Afzal
Thankyou for replying actually I want to change FBV to CBV in Django Official Documentation Tutorial. https://docs.djangoproject.com/en/3.0/intro/tutorial05/ this one vote Function into CBV On Monday, December 30, 2019 at 8:49:58 PM UTC+5, Moaaz Afzal wrote: > > > https://stackoverflow.com/ques

Re: I am Started Django Please help me

2019-12-30 Thread Peter juliano
Hi. What is your specific problem ?. In the stackoverflow Q, there is already a code view based on CBV. On Mon, Dec 30, 2019 at 12:49 PM Moaaz Afzal wrote: > > https://stackoverflow.com/questions/59510325/is-there-is-any-way-to-convert-this-fbv-to-cbv-in-polls-tutorial-of-djangotutori/59510529

I am Started Django Please help me

2019-12-30 Thread Moaaz Afzal
https://stackoverflow.com/questions/59510325/is-there-is-any-way-to-convert-this-fbv-to-cbv-in-polls-tutorial-of-djangotutori/59510529#59510529 actually I am trying this from Polls App in Django Doc. I am trying to do convert FBV to CBV Please help me. -- You received this message because you ar

Re: Prefetching returning empty values for some object

2019-12-30 Thread Simon Charette
I suspect your usage of `distinct('path')` is causing issues during prefetching here as it will prevent different File with the same .path from being prefetched for two different folder objects. You likely want to use `distinct('path', 'folder')` here instead where 'folder' might have a differe

Re: How to ensure genuine emails despite valid email format?

2019-12-30 Thread Jason
Part of your problem is that email is a fire-and-forget application. Once it's sent out, its in the control of the email server for routing. 1. I don't know of a way to handle this without having any access to the account the user uses to send the email 2. Use a whitelist of valid emai

Re: I am very nice in Django Postgresql. I am getting attached error . Please resolve..

2019-12-30 Thread Vivek Jha
psycopg2 library is missing. Use pip install psycopg2 to fix it. It is an connection adapter between Python and PostgreSQL On Mon, 30 Dec 2019, 18:29 shailendra singh, wrote: > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscri

Django ValueError at: Cannot assign "": "Pair.male_mutation" must be a "Mutation" instance."

2019-12-30 Thread Muhammad Tariq
I am new to Django facing this error while saving data into DB: "ValueError at /breedingRecApp/pairing Cannot assign "": "Pair.male_mutation" must be a "Mutation" instance." I've 4 foreign keys in Pair model each with specific reason/purposes. when I save data then error come. in the same error

Blockchain (Internship certificate)

2019-12-30 Thread Roshan Shah
TeenagerStartups.com is a volunteer based effort right now to build a network for teenagers. It is a Django based project and I am Technical Architect for the project overseeing a team of remote volunteer developers. We use Gitlabs and are hosted on heroku. We use Slack for communication, Clickup f

Re: angular setup for django (routes not working)

2019-12-30 Thread Andréas Kühne
Hi, You can't have the routes for the frontend and the backend. For example: /clients/1/ in urls.py and in the angular routes. Then it all goes back to who gets the route first. For this example the frontend should have: /clients/:id/ and the backend should: /api/clients/id/ Regards, Andréas