Error : Ensure this value has at most 30 characters (it has 31) django
Hello,
I am using DJango 1.7 and Postgresql 9.3.5.
I am trying to store email in the username field of
django.contrib.auth.models.User.
but when i try to store more than 30 characters i am getting this error
: Ensure this value has at most 30 characters (it has 31) django
i tried changing the max length to 75 of username field of auth_user.
but still i am getting the same error.
Please help me to solve this
--
Regards :
Venktesh Guttedar.
VENKTESH GUTTEDAR wrote
Hello,
I am using DJango 1.7 and Postgresql 9.3.5.
I am trying to store email in the username field of
django.contrib.auth.models.User.
but when i try to store more than 30 characters i am getting this
error
: Ensure this value has at most 30 characters (it has 31) django
i tried changing the max length to 75 of username field of auth_user.
but still i am getting the same error.
Please help me to solve this
This is a validation error your django middleware is issuing - you need to
fix the problem there. Or maybe there is some other field that is being
checked besides auth_user...
David J.
--
View this message in context: http://postgresql.nabble.com/Error-Ensure-this-value-has-at-most-30-characters-it-has-31-django-tp5829910p5829917.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
On 12/10/2014 04:38 AM, VENKTESH GUTTEDAR wrote:
Hello,
I am using DJango 1.7 and Postgresql 9.3.5.
I am trying to store email in the username field of
django.contrib.auth.models.User.
but when i try to store more than 30 characters i am getting this
error : Ensure this value has at most 30 characters (it has 31) django
i tried changing the max length to 75 of username field of
auth_user. but still i am getting the same error.
Please help me to solve this
On my install of Django 1.7 the email field is already varchar(75).
Are you updating from a previous version of Django?
Did you run python manage.py sycndb ?
Also where are you trying to insert the data from?
If from a form have you checked the field validation code for the email
field?
--
Regards :
Venktesh Guttedar.
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
CCing list.
On 12/10/2014 08:06 AM, VENKTESH GUTTEDAR wrote:
Ya i used python manage.py syncdb
Well, per Davids suggestion, you might want to check that it is indeed
the email field that is triggering the validation error. Both the
first_name and last_name fields in auth_user have a field length of 30
and each would trigger the error mentioned if you entered 31 characters.
On Wed, Dec 10, 2014 at 7:26 PM, Adrian Klaver
<adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:On 12/10/2014 04:38 AM, VENKTESH GUTTEDAR wrote:
Hello,
I am using DJango 1.7 and Postgresql 9.3.5.
I am trying to store email in the username field of
django.contrib.auth.models.__User.
but when i try to store more than 30 characters i am
getting this
error : Ensure this value has at most 30 characters (it has 31)
django
i tried changing the max length to 75 of username field of
auth_user. but still i am getting the same error.
Please help me to solve thisOn my install of Django 1.7 the email field is already varchar(75).
Are you updating from a previous version of Django?
Did you run python manage.py sycndb ?
Also where are you trying to insert the data from?
If from a form have you checked the field validation code for the
email field?--
Regards :
Venktesh Guttedar.--
Adrian Klaver
adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>--
Regards :
Venktesh Guttedar.
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Import Notes
Reply to msg id not found: CA+iwz4mCySQmv=ao9Oaw2t-s09kyA2hS7qQ9UDoidhWH=iOwog@mail.gmail.com