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
Aneesh
yes
That's not working
Xavier
That's not working
what do u mean not working, be more specific
Aneesh
Not show ing the button
Anonymous
is allauth a rest framework api?
Xavier
Not show ing the button
check your code/admin.py/model, i have done it and it works
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?
Loki
Yes but i am getting error at this code
Xavier
Yes but i am getting error at this code
https://docs.djangoproject.com/en/3.0/ref/models/querysets/
Xavier
https://docs.djangoproject.com/en/3.0/ref/models/querysets/
here is the gold mine for query based questions
John
Hey. I have such an error, how to fix it? ORA-06502: character string buffer too small "django"
Xavier
Hey. I have such an error, how to fix it? ORA-06502: character string buffer too small "django"
you have any idea how less it narrows down the question share a bit more info
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
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
Xavier
and it can only have one task activated at one time
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
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
Doragonsureiyā
Can anyone help me with python/Django basics...any website or ebooks?? please
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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
Way
Can Anyone please tell me how to use oauth token in django for login
https://django-oauth-toolkit.readthedocs.io/en/latest/ https://github.com/st4lk/django-rest-social-auth
Anonymous
Has anyone worked with multiple databases? I need help
Anonymous
Has anyone worked with multiple databases? I need help
I am trying to add sqlite and gcloud mysql in a parent project
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
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
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
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''
Anonymous
Server was running
Anonymous
And it was loading index page as well
Gil
And it was loading index page as well
Direct web access via djano runserver and debug mode true,or proxy behind ?
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