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 me
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 an
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
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
super().formfield
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 g
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 Groups
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 se
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-users+un
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"),
("8"
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, d
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 <
django-use
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 users"
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.
On
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 .
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
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
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 G
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 2
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
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 subscrib
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
FilteredSelectMultiple
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"),
("8
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 descri
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 os.p
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 s
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
O
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:
queryset.annotate(search_index=StrIndex(Lower('name'
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
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 subsc
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 e
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 djan
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 django
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 MonitoringPeriod
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 o
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 it
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 te
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-use
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
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 a
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 F
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 .
>>
>> For
41 matches
Mail list logo