getting problem in uuid (" 1 is not valid uuid")

2020-01-05 Thread sagar ninave
hello there, i am implementing custom user model with uuid field as user id. but when i am trying to log in at admin panel it is showing me 1 is not a valid uuid. instead i am creating user id field with AutoField it is running property. what is problem i am not getting -- You received this

Re: Error: Key 'groups' not found in 'UserForm'

2020-01-05 Thread Mike Dewhirst
Stephen Thank you. I should have remembered to return super()! That has stopped it barfing and I'll withdraw my earlier question. I'm still researching because  kwargs["widget"] = CommonFilteredSelectMultiple doesn't seem to switch the field away from FilteredSelectMultiple. At this point

Re: SyntaxError SECRET_KEY

2020-01-05 Thread 'Dash LaLonde' via Django users
Hello, Thanks for the response. I deleted that project and started a new one, got through the SyntaxError. I left it alone for now working on my website. Last issue I had was not being able to see the home page. I got the response Congrats page, but even though I changed the debug to false, it

Withdrawn [Was: Is this a bug OR How can I use a custom widget in the Admin for a custom user]

2020-01-05 Thread Mike Dewhirst
On 6/01/2020 4:31 pm, Mike Dewhirst wrote: It appears that formfield_for_manytomany() triggers an error if it is used in UserAdmin. Thanks for any support in deciding if this is a bug - or perhaps all my own work. I needed to finish formfield_for_manytomany() with a return

Re: email api

2020-01-05 Thread sagar ninave
twillio On Mon, Jan 6, 2020 at 11:58 AM sum abiut wrote: > Is there any other email API out there that I can use to send email in > django other than sengrid? > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: email api

2020-01-05 Thread Integr@te System
Hi Suabiut, Try this: https://pypi.org/project/django-mailgun/ On Mon, Jan 6, 2020, 13:28 sum abiut wrote: > Is there any other email API out there that I can use to send email in > django other than sengrid? > > > -- > You received this message because you are subscribed to the Google

Re: email api

2020-01-05 Thread Forrest Hartley
Yes, there are many. A quick google search came up with this post: https://www.g2.com/products/twilio-sendgrid-email-api/competitors/alternatives I personally like Mailgun quite a bit. On Mon, Jan 6, 2020 at 1:28 AM sum abiut wrote: > Is there any other email API out there that I can use to

email api

2020-01-05 Thread sum abiut
Is there any other email API out there that I can use to send email in django other than sengrid? -- 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 forms exclude values from choicefield

2020-01-05 Thread Muhammad Mahir
I want to exclude those options from the ChoiceField in the forms that has been already selected and are into the database. Below is the Code. models.py SEMESTER_CHOICES = ( ("1", "1"), ("2", "2"), ("3", "3"), ("4", "4"), ("5", "5"), ("6", "6"), ("7", "7"),

Re: Error: Key 'groups' not found in 'UserForm'

2020-01-05 Thread Stephen J. Butler
Take another look at the doc's example on formfield_for_manytomany: https://docs.djangoproject.com/en/3.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany You need to call super() and this isn't the right way to override the widget. def formfield_for_manytomany(self,

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
My guess is that you have an unbalanced '(' on a previous line and the error doesn't get thrown until here (when it thinks maybe SECRET_KEY is a kwarg to the function call). What does the previous setting or two look like? On Sun, Jan 5, 2020 at 3:06 PM 'Dash LaLonde' via Django users <

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
On Sun, Jan 5, 2020 at 3:13 PM Mohamed A wrote: > Be careful your secret key contains a # > > Which comment everything after > > Not when it's quoted as part of a string. It should be fine in this case. -- You received this message because you are subscribed to the Google Groups "Django

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Integr@te System
Hi Dash, Let a look at this config: *settings_secret.py* # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '..key' *settings.py* from settings_secret import * and *.gitignore* # Secret Settings settings_secret.py Careful for path to file directory. Nice.

Is this a bug OR How can I use a custom widget in the Admin for a custom user

2020-01-05 Thread Mike Dewhirst
It appears that formfield_for_manytomany() triggers an error if it is used in UserAdmin. Thanks for any support in deciding if this is a bug - or perhaps all my own work. Cheers Mike TL;DR Here is all the admin code which works without error if formfield_for_manytomany()is commented out

Re: Error: Key 'groups' not found in 'UserForm'

2020-01-05 Thread Mike Dewhirst
Significant refinement of the error ... Trying to use formfield_for_manytomany() triggers the error even if all it does is "pass" Something fishy ... I'll write a fresh question. Mike On 6/01/2020 12:46 pm, Mike Dewhirst wrote: This error occurs in the Admin for my custom user when I try to

Re: Hello Everbody! Happy New Year

2020-01-05 Thread sagar ninave
hey people i want to dive deep with you in the for learning please help me too for custom user model On Sun, Jan 5, 2020 at 2:08 PM Suraj Thapa FC wrote: > Yes ping me > > On Sun, 5 Jan 2020, 3:37 am Desh Deepak, wrote: > >> Can you explain details. >> Some example of code...!! >> >> >> Thanks

Re: TextField

2020-01-05 Thread Abu Yusuf
No, there is no limit for textfield. But you can do the hack using this: from django.core.validators import MaxLengthValidator class Comment(models.Model): comment = models.TextField(validators=[MaxLengthValidator(200)]) -- You received this message because you are subscribed to the Google

Re: TextField

2020-01-05 Thread Abu Yusuf
No, there is no limit for textfield. But you can do the hack using this: from django.core.validators import MaxLengthValidator class Comment(models.Model): comment = models.TextField(validators=[MaxLengthValidator(200)]) On Mon, Jan 6, 2020 at 10:11 AM Mike Dewhirst wrote: > On 6/01/2020

Re: TextField

2020-01-05 Thread Mike Dewhirst
On 6/01/2020 2:24 pm, אורי wrote: Django users, Is there a default max length for TextField which is enforced in the database? We are using PostgreSQL and I don't want users (hackers) to flood our database with megabytes of meaningless text. Uri In your model create a clean() method. If it

TextField

2020-01-05 Thread אורי
Django users, Is there a default max length for TextField which is enforced in the database? We are using PostgreSQL and I don't want users (hackers) to flood our database with megabytes of meaningless text. Thanks, Uri. אורי u...@speedy.net -- You received this message because you are

Error: Key 'groups' not found in 'UserForm'

2020-01-05 Thread Mike Dewhirst
This error occurs in the Admin for my custom user when I try to specify a custom widget for permission groups. I haven't included 'groups' in any raw_id_fields, radio_fields or autocomplete_fields. The groups are correctly displayed in the Admin user page with the default

django forms exclude values from choicefield that are already into database

2020-01-05 Thread Muhammad Mahir
I want to exclude those options from the ChoiceField in the forms that has been already selected and are into the database. Below is the Code. models.py ``` SEMESTER_CHOICES = ( ("1", "1"), ("2", "2"), ("3", "3"), ("4", "4"), ("5", "5"), ("6", "6"), ("7", "7"),

Re: Looking for a job

2020-01-05 Thread Ryan Gedwill
Hi Erik, Yes, that sounds great. I am pretty open in the mornings this week, how about 10am PST Tuesday? Ryan Gedwill > On Jan 3, 2020, at 4:24 PM, Erik Gunderson wrote: > >  > Hi Ryan, > > I have a job in San Francisco that might be an interest for you as well. I > attached the job

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Mohamed A
Be careful your secret key contains a # Which comment everything after Le dim. 5 jan. 2020 à 22:06, 'Dash LaLonde' via Django users < django-users@googlegroups.com> a écrit : > Well I can't go any further, I keep getting SyntaxError SECRET_KEY, the > only thing I changed was I added another

SyntaxError SECRET_KEY

2020-01-05 Thread 'Dash LaLonde' via Django users
Well I can't go any further, I keep getting SyntaxError SECRET_KEY, the only thing I changed was I added another os.path.dirname to the settings because that is where it exists. I also set the domain and ip address, neither of which should create the error. While this is a new endeavor to learn

Re: Using Unaccent in Model database function

2020-01-05 Thread Alex Scott
I was able to figure this out using... from django.contrib.postgres.lookups import Unaccent queryset.annotate(search_index=StrIndex(Unaccent(Lower('name')), Value(q))) Might be nice to add to the documentation here: https://docs.djangoproject.com/en/3.0/ref/contrib/postgres/lookups/#unaccent

Using Unaccent in Model database function

2020-01-05 Thread Alex Scott
Hi all, I just started using the Unaccent extension for Postgres and implementing queryset filters with it like: q = 'hello' queryset.filter(name__unaccent__istartswith=q) I'm now trying to annotate the queryset result with the search index:

Re: Full Stack Developer (Python/Django) position requirement for US GC/Citizen/Can Citizen

2020-01-05 Thread Dvs Khamele
Hi we are Pythonmate and we do have 8+ years in Django and python specific teams and we are looking for long term commitments and clients at just $8 per hour. So please let us know our next steps and meetings. My Skype is dvskha Divyesh Khamele CEO Pythonmate On Friday, 3 January 2020, Yash Garg

Re: New to Django and Python

2020-01-05 Thread Hedrick Godson's
Wish you well with ur new journey On Sun, 5 Jan 2020, 16:50 'Dash LaLonde' via Django users < django-users@googlegroups.com> wrote: > Hello, > > Just wanted to say hello and let you all know that I will probably be > posting many questions. > > -- > You received this message because you are

Re: Django Pip Not installed

2020-01-05 Thread Hedrick Godson's
Use pip install django To install django in ur env On Sun, 5 Jan 2020, 17:46 Debora Peralta wrote: > Try sudo pip3 > > El El dom, 5 ene 2020 a las 13:51, 'Dash LaLonde' via Django users < > django-users@googlegroups.com> escribió: > >> I just installed python, django and pip, completed a test

Re: Django Pip Not installed

2020-01-05 Thread Debora Peralta
Try sudo pip3 El El dom, 5 ene 2020 a las 13:51, 'Dash LaLonde' via Django users < django-users@googlegroups.com> escribió: > I just installed python, django and pip, completed a test env then > deactivated the project env. > Now I am trying to start a real project, I used pipenv to install

AJAX request is not rendering at the client side but works perfectly at the server

2020-01-05 Thread Daniel Roseman
Why would you expect it to render anything? All your success function does is log to the console. -- DR. -- 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

Aggregating distinct across OneToMany relationships using ORM

2020-01-05 Thread 'Stephen' via Django users
Hi all, I have two Django models; MonitoringPeriod and AssignmentPeriod. Both models have start_date and end_date fields. A MonitoringPeriod can be covered by one or more AssignmentPeriod instances, which may or may not cover the entire range defined by the start and end of the

Re: Full Stack Developer (Python/Django) position requirement for US GC/Citizen/Can Citizen

2020-01-05 Thread Motaz Hejaze
is this a remote position? On Sun, Jan 5, 2020 at 3:49 PM R D SAiNi wrote: > Yes i am interested this job in India > > On Fri 3 Jan, 2020, 11:05 PM Yash Garg, wrote: > >> For a large multi billion dollar Publishing house in New York, client >> needs a Full Stack Django Developer with 3+ years

Never Mind Django

2020-01-05 Thread 'Dash LaLonde' via Django users
I just deleted all the all the directories with send to trash and will attempt one more time to install django pip to run a project -- 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

Re: Full Stack Developer (Python/Django) position requirement for US GC/Citizen/Can Citizen

2020-01-05 Thread R D SAiNi
Yes i am interested this job in India On Fri 3 Jan, 2020, 11:05 PM Yash Garg, wrote: > For a large multi billion dollar Publishing house in New York, client > needs a Full Stack Django Developer with 3+ years of solid Python/Django > experience > > Scope: > >- Code refinement/linting/unit

New to Django and Python

2020-01-05 Thread 'Dash LaLonde' via Django users
Hello, Just wanted to say hello and let you all know that I will probably be posting many questions. -- 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 Pip Not installed

2020-01-05 Thread 'Dash LaLonde' via Django users
I just installed python, django and pip, completed a test env then deactivated the project env. Now I am trying to start a real project, I used pipenv to install django again and even though I just installed django when I yse django-admin startproject it says it can't find django. I ran a check

AJAX request is not rendering at the client side but works perfectly at the server

2020-01-05 Thread Chinmay Dali
I have data that I am trying to display in a tabular format, and I have also added filters for that tabular data. The filter sends an AJAX request to the server, works on the same function inside "views.py" but the page doesn't refresh with new data. I extracted the query format of that filter

Re: Full Stack Developer (Python/Django) position requirement for US GC/Citizen/Can Citizen

2020-01-05 Thread Integr@te System
Hi All, So excited! My work if any informative. Welcome! On Sun, Jan 5, 2020, 08:27 Alfredo Sumague wrote: > I'm interested, > > Thanks, > Alfredo Sumague > > On Fri, Jan 3, 2020 at 9:35 AM Yash Garg wrote: > >> For a large multi billion dollar Publishing house in New York, client >> needs a

Re: Hello Everbody! Happy New Year

2020-01-05 Thread Suraj Thapa FC
Yes ping me On Sun, 5 Jan 2020, 3:37 am Desh Deepak, wrote: > Can you explain details. > Some example of code...!! > > > Thanks in advance > > On Sun, 5 Jan 2020, 00:03 Evil Kunt, wrote: > >> Hey , >> >> For rest , if you like i can help you with i use DRF , Falcon and HUG >> mostly . >> >>