Re: Re-Order rendering of input fields of django-contact-form?

2018-11-09 Thread amit pant
can we use clean method instead of __init__ On Mon 5 Nov, 2018, 4:47 PM Aashutosh Rathi, wrote: > Yes, this works for me. > Make sure > > > super(AddLabForm, self).__init__(*args, **kwargs) >fields_keyOrder = ['id', 'date', 'start_time', 'end_time'] >if 'keyOrder' in

Re: Setting up admin in visual studio

2018-11-09 Thread Simon McConnell
Times have changed -- 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...@googlegroups.com. To post to this group, send email to

Checking for reference leaks

2018-11-09 Thread Dan Davis
So, my application apparently is the largest on our Django servers. This doesn't mean that a reference leak exists, but it could mean that a reference leak exists. I've been trying to find some generalizable way to search for such a problem. I have difficulties drawing help from within the

Re: Channel: Migrate regular Django project to Channels2

2018-11-09 Thread Zhiyu/Drew Li
Thanks. I added a async http consumer from the doc. It kept throwing error on "Header name 'Content-Type' expected to be `bytes`, but got ``". I was able to get it running after changing to (b"Content-Type", b "text/plain"), from channels.generic.http import AsyncHttpConsumer class

Re: Update profile on login

2018-11-09 Thread pastrufazio
Il giorno venerdì 9 novembre 2018 11:37:23 UTC+1, Michal Petrucha ha scritto: Found it. :) The error lies in the filter() call: > > Thank you very much. I fixed it using @receiver(user_logged_in, sender=User) def user_logged_in_callback(sender, user, request, **kwargs):

psql user defined models cant be acessed

2018-11-09 Thread ARAVIND BALAN
I linked psql with django and can access django defined tables but cant access the contents of tables which I defined shows relation does not exist error . But can see the name of the table in \l command all the schema is public -- You received this message because you are subscribed to the

Cant access user defined tables in psql django

2018-11-09 Thread ARAVIND BALAN
Cant access only user defined tables but can access tables like auth_group . it shows relation does not exist error . All schema is public -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Create Follow model

2018-11-09 Thread Aditya Bohra
I only inherited the Django user model to create my own and I saw that we can use "self" in relationship but cant figure out which one to use -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

makemigrations makes migration even if no changes in model

2018-11-09 Thread Michał Redmerski
Hello! All issues with this I googled, are with the opposite problem. I have models: Record, Stage, StageFetch here is my code: https://gist.github.com/redmeros/bd70481cae2e4471eee0501146b2945c After every use of (no matter if there changes in any models) python manage.py makemigrations I've

Re: Create Follow model

2018-11-09 Thread udeep shrestha
show me your code for user model. try django-activity-stream On Fri, Nov 9, 2018 at 4:09 PM Aditya Bohra wrote: > I am having problem Creating follow model . > This is to be used with django user model > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Create Follow model

2018-11-09 Thread Aditya Bohra
I need to let a user follow other user -- 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...@googlegroups.com. To post to this group, send

Re: Create Follow model

2018-11-09 Thread mazz ahmed
https://stackoverflow.com/questions/10602071/following-users-like-twitter-in-django-how-would-you-do-it Please Check this you have to create another model which have to associate with user model...If not getting from this link check youtube you have better understanding. On Fri, Nov 9, 2018 at

Re: Create Follow model

2018-11-09 Thread mazz ahmed
Sorry I didn't get what you are looking for? Are you want to authenticate from Twitter or something else.. On Fri, Nov 9, 2018 at 4:23 PM Aditya Bohra wrote: > > > On Friday, November 9, 2018 at 3:53:54 PM UTC+5:30, Aditya Bohra wrote: >> >> I am having problem Creating follow model . >> This

Re: Create Follow model

2018-11-09 Thread Aditya Bohra
On Friday, November 9, 2018 at 3:53:54 PM UTC+5:30, Aditya Bohra wrote: > > I am having problem Creating follow model . > This is to be used with django user model > I want to implement follow method like in twitter so how to implement that in django models -- You received this message

Re: Create Follow model

2018-11-09 Thread mazz ahmed
https://docs.djangoproject.com/en/2.1/topics/auth/customizing/ On Fri, Nov 9, 2018 at 3:24 PM Aditya Bohra wrote: > I am having problem Creating follow model . > This is to be used with django user model > > -- > You received this message because you are subscribed to the Google Groups >

Re: Update profile on login

2018-11-09 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Found it. :) The error lies in the filter() call: > @receiver(user_logged_in, sender=User) > def user_logged_in_callback(sender, user, request, **kwargs): > Profile.objects.filter(user=User).update(date_activation=datetime.now) You're passing

Create Follow model

2018-11-09 Thread Aditya Bohra
I am having problem Creating follow model . This is to be used with django user model -- 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

how do i use the save method in multi step form

2018-11-09 Thread Tosin Ayoola
hallo developers i Created a multi step form but the issues is that i can't save the data to the database and that the purpose of creating the form, please how can i fix this or can anyone help me? , below is my views code class add_School(SessionWizardView): template_name =

Re: Update profile on login

2018-11-09 Thread pastrufazio
Il giorno venerdì 9 novembre 2018 10:29:06 UTC+1, Michal Petrucha ha scritto: > > > Hi, > > Could you please post the full stack trace rather than just the final > error message? That would make it easier to help you. > > Cheers, > Michal > Sure, thanks! Environment: Request Method:

Re: Update profile on login

2018-11-09 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Thu, Nov 08, 2018 at 09:17:30AM -0800, pastrufazio wrote: > > Hi all, > > I'm trying to update the field "date_activation" the first time a user log > in. > > This is the error I get when i try to run the code below > > *TypeError at