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 self.fields:
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 django-users@g
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
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 BasicHttpCo
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):
Profile.objects.fi
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 Goo
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 emails
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 emai
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 u
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
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 e
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 4:2
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 is
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 bec
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
> "Django
-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 i
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 django-users+unsubscr...@g
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 = 'schoolprofil
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: PO
-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 /admin/l
20 matches
Mail list logo