Re: How to use updated model.py from the shell

2019-03-31 Thread Guru Murthy
You have to update and migrate the file using makemigrations command On Sun, 31 Mar, 2019, 8:16 PM Betty, wrote: > Hi all, > > I am new to django and following tutorials. > > I realized that even if I modified models.py while I was using > shell(python manage.py shell) the modified models.py doe

Re: how can i get current username in model field ??

2019-04-01 Thread Guru Murthy
Hi Omar Ahmed, You cannot give the user model value to the field that you can do in views.py and forms.py. visit more about how to create forms in django. On Mon, 1 Apr, 2019, 7:09 PM Joel Mathew, wrote: > This does not make sense to me. A model is not a dynamic entity. It is > something that'

Re: Remove username field

2019-04-02 Thread Guru Murthy
Hi Suman khatua, You can remove the username from admin authentication system -- 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+unsubscr...@googleg

Re: django Query filter

2019-04-03 Thread Guru Murthy
Hi Abhijeet baranwal, I think you are adding contains is not correct query listing you have to use in query instead On Wed, 3 Apr, 2019, 5:02 PM Abhineet Baranwal, < suabhineetbaran...@gmail.com> wrote: > > *this is my views file which creates an error like > django.utils.datastructures.MultiV

Re: django Query filter

2019-04-03 Thread Guru Murthy
t; Thanks for your efforts, But i didn't get it can you please elaborate your > answer? > > On Wed, Apr 3, 2019 at 5:16 PM Guru Murthy > wrote: > >> Hi Abhijeet baranwal, >> I think you are adding contains is not correct query listing you have >> to use in quer

Download html file using python

2019-04-04 Thread Guru Murthy
Hi all, IAM having html content file similar to as follows: educa login I have to download this html content file using python remember I have to download the html file not to write the data in another file name -- You received this message because you are subscribed to the Google Gro

Re: Need help with project

2019-05-08 Thread Guru Murthy
Try django2 by example by Antonio mele will guide how to do project with django Regards, Gurumurthy P On Wed, 8 May, 2019, 8:32 PM Rob W, wrote: > There are a few of us in a group slack who are trying to build a working > production django ap for reporting. > We are looking for someone who rea

Re: While registering the user with django form, it gives "UNIQUE constraint failed: auth_user.username" error

2019-05-17 Thread Guru Murthy
Hi, Your _str function name is only one name is give in that model Regards Gurumurthy P On Fri, 17 May, 2019, 10:21 PM RAJENDRA MYTHILI 17BIS0120, < rajendra.mythili2...@vitstudent.ac.in> wrote: > I'm facing the same issue ... Did you figure out what's wrong? > > On Saturday, October 6, 2018 at