Xavier
Loki
Queryset value for an exact lookup must be limited how can i solve this
Loki
Aneesh
Aneesh
Sory iam new to django
Loki
Kk
Loki
Aneesh
yes
That's not working
Aneesh
Not show ing the button
Xavier
Anonymous
is allauth a rest framework api?
Aneesh
Ok
Loki
queryset[:limit]
Actually i want to retrieve image url based on username can u give code
Loki
profile.objects.all().filter(username=u)
Loki
Is it correct?
Xavier
Loki
Yes but i am getting error at this code
Xavier
John
Hey. I have such an error, how to fix it?
ORA-06502: character string buffer too small "django"
Xavier
John
I am using django-filter. when searching on NCLOB I get this error.
Aneesh
class doctorAdmin(admin.ModelAdmin):
    def delete(self, obj):
        return '<input type="button" value="Delete" onclick="location.href=\'%s/delete/\'" />'.format(obj.pk)
    delete.allow_tags = True
    delete.short_description = 'Delete object'
    list_display = ('name',  'hospital', 'location', 'delete')
admin.site.register(doctor,doctorAdmin)
Aneesh
My code is like this
Aneesh
Please help
Xavier
Xavier
Xavier
Xavier
Aneesh
Thanks
iiiiiiπoW
Hi
Is it possible to do, user getting logged out after a particular time of idle state of the application.. ?
sheikh
In django modelform how to perform some validation by using jquery using class based views?
Sweetie
I have a django model Task with user as foreign key.
class Task(Model):
user = ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = CharField(max_length=50)
processing = BooleanField(default=False)
what will be the best way to let user only work on 1 task at a time?
User can be assigned multiple tasks but he can only process 1 at a time. So only 1 task can have processing=True
Sweetie
Xavier
Xavier
and it can only have one task activated at one time
sheikh
Dhruva
LookupError: App 'accounts' doesn't have a 'SubRegion' model.
Xavier
u will probably need a model function so that the Task process feild get updated
Dhruva
Xavier
Dhruva
But I am using package
Dhruva
I haven't made myself any model
Dhruva
django-citiies-light
Dhruva
Where all on just exporting models are being created
Dhruva
So what is causing problem i don't have idea
Dhruva
Mentioned app name in settings still
Xavier
never used it, no idea
Dhruva
Ok
Rohit
Can anyone help me with python/Django basics...any website or ebooks?? please
Xavier
Rohit
Thank u
Way
Hello guyz. What about async django(+ASGI)? How much now does it make sense to rewrite an application with support async? Provided that half the django is not able to work with him. I found a temporary sync_to_async solution, but the solution looks too stupid
Romila
Can Anyone please tell me how to use oauth token in django for login
Anonymous
Has anyone worked with multiple databases? I need help
Anonymous
Can anyone send tutorials on rest framework social authentication
I tried many nothing works me
Anonymous
Hey is there any bot to download pdf,book
Jo
sheikh
In class based view I am using modelform I need to show hide some field based on some condition how can I do that how I can perform some validation using js
Rishu
from where i can learn to create models and relations
Rishu
one to many ,etc
Mirco
Docs
sheikh
Xavier
one to many ,etc
https://docs.djangoproject.com/en/3.0/topics/db/examples/many_to_one/
Anonymous
I have problem in admin site ....error 500
Gil
Anonymous
I followed instruction from django official website
Anonymous
But whenever I try to load admin page it shows this
Anonymous
''A server error occured. Please contact administrator''
sheikh
Anonymous
Server was running
Anonymous
And it was loading index page as well
Anonymous
master-mn
hello guys
need advice, opinion
2 user groups created
when registering a user, depending on the type of registration, users fall into either one group or another
user profiles from these 2 groups are different in terms of data, and users have different functionalities.
I create a profile model as OneToOneField -> User
the easiest option that comes to my mind when creating a profile model is to create 2 models ProfileModel1 and ProfileModel2
how much is it right and how else can you do it?
Anonymous
Have anyone did rest framework social authentication