AISHWARYA
Like any YouTube channels ?
Charly
As I'm a beginner it is difficult to learn through documentation..is there any other resources available
The official tutorial is the Best thing you don't need to go for the reference
kiran
Create a model to store a History Item and add an foreign key to the user, then in each watch event create s new History Item
Yeaa but the thing is that if i played only half of the video i wanna continue it from the middle.it should be stored in user
kiran
okay..
Jayanthi
https://dpaste.org/wQtBF
Jayanthi
takink 2.5 seconds
Jayanthi
i need in ms
Georg
HI. I done this with a spectacular (move methods to separate block) in swagger GUI it looks like this GET /api/{model}/{id}/attribute PATCH /api/{model}/{id}/attribute Is there any way to replace a {model} with some multiple values and multiply this endpoint to many: GET /api/account/{id}/attribute PATCH /api/account/{id}/attribute GET /api/product/{id}/attribute PATCH /api/product/{id}/attribute
Абидов
multiple forms on one django page How to do it
Nave
Is there any database that i can save unlimited string? For example if i want to make a article's website and i want database that can store all the articles's content.
Nave
is there such memory that can save unlimited block data?
No, i mean like database that can store me like 100000 characters, unlimited is a ridicules word you right
Georg
many databases can store 4GB in a string like field (varchar or similar)
Georg
but why you need this?
Georg
not sure about SQLITE
Georg
you'd better look into SQLITE docs
Nave
but why you need this?
One article could reach up to 80000 characters, so i need a field that can store that
Georg
mysql, postgresql, oracle.. I think noSQL db's can too
Georg
SQLITE also?
as I remember - yes
Nave
mysql, postgresql, oracle.. I think noSQL db's can too
I'll look up the docs of each of them, thank you i appreciate the help 💛
Wan
personal_user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True, related_name='championed_by') please help me, i'll show all data user on connect to foreign keys
Kinder #pupu
Hi all. Has anyone experienced this and can help? During the work of task celery, many different connections to the database are raised, which are closed only after the completion of the entire task. How can I force Celery to reuse connections?
Danilo
Hi guys I need to create a query via django orm with custom left join how can I proceed? Something like that: …. from table1 left join (select field1, sum(field2) as total_points from table2 group by field1) U0 on table1.field1 = U0.field1
who
Hai i have one doubt.. i have live stream the cctv footage in django webpage.. using on rtsp://example.com
who
I already used opencv but is called a frame
Nityananda
How to do logout using django jwt
D3mah
How to do logout using django jwt
just delete tokens in local storage 🤷‍♂
Stormy
Anyone has any idea how to use pytube to save videos directly to user download directly without getting permission denied error, I have tried everything I can. Can anyone help please?
Adzmely
check your html rendered does option have any value? <option value=… > via your browser just inspect the drop down list …
Anonymous
How to setup azure ad authentication for django and react.. Do we need to set for both?
Harry gorilla
https://vegibit.com/how-to-sign-up-and-log-in-users-with-django/ This website is some kind of confusing on how to create signup form. Does it really show it the way it should be done? I have questions like: 1. Is the name of the folder inside the template supposed to be accounts or account or register ?
daft
Please who knows how to update multiple instance of a model by filtering by users
Alexey
Please who knows how to update multiple instance of a model by filtering by users
for m in Book.objects.filter(user=user).all(): m.field1 = 1 m.save()
Arshiya
Hi guys How can i accses to the current page number in html? Like next_page_number Or Previous_page_number
Swati
how to use unique together for two foreign key fields?
The Inspired
you can use the underscore notation
The Inspired
for example unique_together=['ab', 'cd']
Swati
unique together is used with tuples right?
Kene
for example unique_together=['ab', 'cd']
class Meta: constraints = [ models.UniqueConstraint(fields=['field1', 'field2']) ]
Kene
Arshiya
page_obj.number
It dosent work☹️ Edited : Worked Thanks🙏🏻
daft
Can you provide more clarity?
I have a model called PendingRequest that is created whenever a user apply to borrow a book. So I want to update the instance of the model based on user
Alexey
Also you can do it with bulk_update
bulk_update dont use signals)
Swati
class Meta: constraints = [ models.UniqueConstraint(fields=['field1', 'field2']) ]
it shows integrity error instead of message i.e. on database level what should I do to make it to display model form error
Swati
i have two fk and one char
talha
{% include %} only working with full path. I created an additional folder to keep my external html files clean. when I use {% include "myApp/templates/myApp/extFolder/external.html" %} it works. But, when I use myApp/extFolder/external.html it doesn't work throws this error: Django tried loading these templates, in this order: Using engine django: This engine did not provide a list of tried templates. by the way, this is only happening with include tag, django 4.1
Главный
Good hour! Why does it give an error?
Главный
Good hour! Why does it give an error?
Linkode created 9lRKzai5CGMvumtMzBNxS
Главный
https://nekobin.com/duwajufece
Главный
python manage.py makemigrations
Главный
Unresolved attribute reference 'id' for class 'Book'
Mohamed Nadhir
Unresolved attribute reference 'id' for class 'Book'
In the Book class return reverse('book-detail', args=[str(self.id)]) This line is the problem use instead Kwargs={'id': self.id}
Shoosh
import requests n = 5 # number of requests #api_url = "https://meme-api.com/gimme/5" urls = [] for i in range(n): api_url = "https://meme-api.com/gimme" response = requests.get(api_url) api_data = response.json() url = api_data['url'] print(url)
Shoosh
i am thinking of using this api call for one of my project and it is supposed to give a random json each time requested , but when i use it like this it just returns the same call , can anyone tell me any workaround for this ? or is the api call caching?
Shoosh
Fix api_url = "https://meme-api.com/gimme/i"
The one thts in the loop generates 1 random description , the one above is another endpoint, i want to req the default endpoint multiple time , the above one is for one req with specified no of description
SantiU
Does anyone know how to implement a python webscraping script in Django? the idea would be to send a variable in a form in Django and that it is sent to the script.
S
Hello, Can anyone help me , i'm trying send mail in django, but its showing (535, b'5.7.3 Authentication unsuccessful') this error
Anshuman
How to do pagination with django rest framework
Денис
How to do pagination with django rest framework
https://www.django-rest-framework.org/api-guide/pagination/
Gideon
Hello i need your help please . I am creating a portfolio using django . I am facing an error that says TemplateDoesNotExist at / Portfolio_app/portfolio.html
Yavar kazemi
OverflowError at admin /login Python int too large convert to C long
Kene
I have a model called PendingRequest that is created whenever a user apply to borrow a book. So I want to update the instance of the model based on user
if updating all instance of user PendingRequest.objects.filter(user=user).update(field=value) if updating a single instance user_obj = PendingRequest.objects.get(user=user) user_obj['field'] = 'value' user_obj.save()