value too long for type character varying(1)

2020-12-12 Thread Taofeek Jimoh Iyanda
Hello Guys, Please I need an urgent help on this subject, I was trying to migrate my model in django to a postgres DB but I am getting 'value too long for type character varying(1)' error. I have tried making the max_length = 1000 but I am still getting the same error. The last thing I can re

Re: value too long for type character varying(1)

2020-12-12 Thread 712189512
It’s probably because you have already made migrations and also made some changes in your model ,if that’s the case delete the old migrations and make migrations again and should work On Sat, Dec 12, 2020 at 1:56 PM Taofeek Jimoh Iyanda < iyandataofee...@gmail.com> wrote: > Hello Guys, > > Please

Re: ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Thank you in advance for your solution Le sam. 12 déc. 2020 à 07:51, Anselme Gildas Tchassem Boutchouang < tbago...@gmail.com> a écrit : > Hello, > This error is raised when I run a migration allowing me to fill in the bd. > To try to resolve the error, I formatted the User object as a > *Simple

Re: value too long for type character varying(1)

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
django indicates the error line. Show us this line Le sam. 12 déc. 2020 à 15:27, Anselme Gildas Tchassem Boutchouang < tbago...@gmail.com> a écrit : > did you redo py manage.py makemigrations after your modification? > > Le sam. 12 déc. 2020 à 13:21, 712189512 a > écrit : > >> It’s probably beca

How can you do a for loop with a database?

2020-12-12 Thread Peter T
Example: context = (database model) def index(request): render(index.html, context) HTML Template: {% for i in context %} { database.text } -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: value too long for type character varying(1)

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
did you redo py manage.py makemigrations after your modification? Le sam. 12 déc. 2020 à 13:21, 712189512 a écrit : > It’s probably because you have already made migrations and also made some > changes in your model ,if that’s the case delete the old migrations and > make migrations again and sh

ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Hello, This error is raised when I run a migration allowing me to fill in the bd. To try to resolve the error, I formatted the User object as a *SimpleLazyObject *because I found that this is the type of object returned by the *self.request.user* instance in a view. Here is the model from which I f

Re: value too long for type character varying(1)

2020-12-12 Thread Taofeek Jimoh Iyanda
yes, I do On Saturday, December 12, 2020 at 5:11:30 PM UTC+1 tbag...@gmail.com wrote: > did you redo py manage.py makemigrations after your modification? > > Le sam. 12 déc. 2020 à 13:21, 712189512 a écrit : > >> It’s probably because you have already made migrations and also made some >> chang

Django plug adminrestrict v3.0 released with new features

2020-12-12 Thread robromano
I'm happy to report that v3.0 of the *django-adminrestrict *plugin has been released. In development since 2014, *django-adminrestrict* secures access to the Django admin pages. It works by blocking requests for the admin page path unless the requests come from specific IP addresses, address r

Re: Python Django Training

2020-12-12 Thread Pawan Goswami
I'm interested too... On Sat, 12 Dec, 2020, 6:51 AM paidjoo indo, wrote: > Am too, I'm interesting training Django > > On Mon, Dec 7, 2020, 3:09 PM narendra thapa > wrote: > >> hello please add me also in training group? >> >> >> On Fri, Feb 21, 2020 at 7:27 PM Bharati Nilam >> wrote: >> >>> H

RE: Python Django Training

2020-12-12 Thread LASISI HABEEB
Interested... Sent from Mail for Windows 10 From: Pawan Goswami Sent: December 13, 2020 3:47 AM To: django-users@googlegroups.com Subject: Re: Python Django Training I'm interested too... On Sat, 12 Dec, 2020, 6:51 AM paidjoo indo, wrote: Am too, I'm interesting training Django On Mon, Dec 7