Rose
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://hastebin.com - https://nekobin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Jimmies San
What's wrong with you people
Jimmies San
Why ffs
Maxim
don't you ignore https://t.me/django/268858
Usmonjon
sorry guys
Junior
its good use django-allauth for authentcation
Junior
just using the functions like login, register, email confirmation...
Anonymous
its good use django-allauth for authentcation
if you are using drf i suggest dj-rest-auth
Mirco
if you are using drf i suggest dj-rest-auth
That is based on django-allauth 😁 It's their main dependency
Nishanth Siraj
Hi i want to upload large size video file in django, i did in celery but my boss said, 'do chunk upload ' any ideas?
Nishanth Siraj
My server should be available for other tasks while uploading
Nishanth Siraj
Should i pip install this ? pip install django-chunked-upload
Nishanth Siraj
Jimmies San
Chonky uploads
Rose
User Osondu has 1/3 warnings; be careful! Reason: Off-topic (Rule #3)
Sea
Can we build Fast api using django?
Mirco
Can we build Fast api using django?
Don't mix frameworks Even if it's possible with workarounds, but avoid it
clouded
Can we build Fast api using django?
The question is incomplete, but a possible answer might be django-restframework. Another might simply be "no". It depends on the missing context.
Sea
Okay thanks @pyflare clouded
Mirco
Okay thanks @pyflare clouded
you can use django-ninja to have an experience like FastAPI and also be close to its performances
Anonymous
Can we build Fast api using django?
Why u have to mix it? Instead do microservices partition the part
Sea
Can anyone tell me how to build this 1. Create a screen to manage the FB Page connection. a. Should be able to create a connection (If doesn’t exist): They’ll be prompted to log in using FB. Your app will also ask for permission to manage pages, comments and listen to messenger events b. Should be able to delete the connection (If exists) 2. Service should listen to messenger messages, and process them into our database. 3. Messages will appear as a conversation in the app. All the messages from one customer will be part of one conversation. A new conversation for a customer should be created only if the last message in the previous conversation was created more than 24 hours ago 4. Agent (app user), can select those conversations and reply to messages from there
ㅤ
Hello How do I install "font awesome" icons in Django? Because the icons don't appear 😢
Eduardo
Hello How do I install "font awesome" icons in Django? Because the icons don't appear 😢
In Font Awesome you need to find the JS route for your project and add it to the headers of your Django HTML pages
Артем
Hi, guys. My queryset load quickly om my macos, but on my web site it is very slowly. shipments = Shipment.objects.filter(status__pk=14).select_related('marketplace', 'status').prefetch_related(Prefetch( 'orders', queryset=Order.objects.only('number_buy', 'status', 'bar', 'sticker').defer('order_item__product__description').select_related('status').prefetch_related('order_item__product','order_item').filter(shipment_orders__status__pk = 14).order_by('order_item__product__pk'))).order_by('date')
Артем
On my website it is about 25282,47 ms
Артем
On my pc it is about 53,38 ms
Артем
Why does it possible? i use mysql
Артем
help please
Poya
Hello I want to install mysql server on Ubuntu 20.04 server for Django project I can install mysql on the virtual environment django project ?
Poya
no, mysql is not a python package
oh I think I made a mistake in mysql installation process because after entering the command: sudo mysql_secure-installation It doesn't let me choose the password level and then put the password
Rose
oh I think I made a mistake in mysql installation process because after entering the command: sudo mysql_secure-installation It doesn't let me choose the password level and then put the password
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Charly
thanks If you know a group related to Linux Send group link
Read again the message, it says where you can ask
Suayip
Has anyone here used or implemented ‘cached_property’ equivalent for model instance methods with arguments?
Ethiopia❨ከፍነው❩
Hi
Ethiopia❨ከፍነው❩
Every one, i want to make my final project on django, can you help me?
Hemant
Hi everyone. I have created an inventory project in django and hosted it on pythonanywhere. Lets say I want to sell it to 5 people. So how to achieve 5 copies of same project? Do I have to use same database and filter that data according to 5 users or I do host 5 different instances? Please guide me.
Vikash
Can anyone suggest best python django project in 2024 for freshers
Rose
User محمد has 1/3 warnings; be careful! Reason: not a place to promote your own courses
Rose
User Maicon has 1/3 warnings; be careful! Reason: crossposting
King David
Django survey question and answer using formset factory
Charly
Django survey question and answer using formset factory
What have you tried? Where are you stuck?
King David
I need using formset for 1question 5answer set and then looping
Richard
Hello to all, I would like to use fingerprint authentification in my app Django. Someone could help me to do it ?
Richard
When I googling, I found that I need a fingerprint reader. I'll buy it
Jimmies San
Not yet
Maybe next time it's better to do some research and ask only when you tried and you have problems or need help with something specific ;)
Vishu...
Hello to all, I would like to use fingerprint authentification in my app Django. Someone could help me to do it ?
I have try using this method: I created a python file into my app and named it: biometric_field.py: Class BiometricField(models.Model): def init(self, *args, **kwargs): kwargs[‘max_length’] = 1000 super().init(*args, **kwargs) def db_type(self, connection): return ‘binary’ And add it to the model like any other field: From .biometric_field import BiometricField Class Primary(models.Model): first_name = models.CharField(max_length=20) second_name = models.CharField(max_length=20) class_of_student = models.CharField(max_length=20) year_of_graduations = Foreignkey(PrimaryAlbum, on_delete=models.CASCADE ) finger_print_first = BiometricField()
Joy….
Hello any one here can help me converting a script to django
Abolfazl
guys how can i set value for one field from models.py in views.py ?, not from admin page
Rose
User KAVORKO has 1/3 warnings; be careful! Reason: this is neither a job board nor a bulletin board
Rose
Hello any one here can help me converting a script to django
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
Rose
User K has 1/3 warnings; be careful! Reason: this is neither a job board nor a bulletin board
Dima
Hi. Help please to understand: I have a model, class SelfSatisfactionLevel(models.Model): icon_link = ResizedImageField( upload_to=get_image_file_name, size=[150,150]) where image saving way defined by field parameter upload_to=get_image_file_name and, when I use outer function, everything is ok: def get_image_file_name(instance, filename): path, ext = os.path.splitext(filename) level_value = f"{instance.value :04d}" instance_name = instance.name file_name = f"{instance_name}_{level_value}_icon{ext}" full_path_file_name = os.path.join("api", "self_satisfaction_level", "img", "icon", file_name) return full_path_file_name How can I define the same function in this class (as inner method) and call it to get 'upload_to' way ?
Dima
In which class ? The model ?
class SelfSatisfactionLevel (The same class where ImageField with 'upload_to' parameter)
Mirco
class SelfSatisfactionLevel (The same class where ImageField with 'upload_to' parameter)
Do you really need it ? I mean you will have the .url attribute of every record that you will get you the file location + media url Why do you need to know that path ?
Dima
Do you really need it ? I mean you will have the .url attribute of every record that you will get you the file location + media url Why do you need to know that path ?
I need that pass to save file with my custom file-name, not with origin file name and also to save to my custom sub directory in media
Dima
So why don't you save directly into the sub directory ?
I can't get the gist of your question? I need to get not-origin new name of the file, wich will consist of instance.name+instance.value+<origin_extension> so I do this this via function to give the value to the ImageField parameter 'upload_to'
Mirco
I can't get the gist of your question? I need to get not-origin new name of the file, wich will consist of instance.name+instance.value+<origin_extension> so I do this this via function to give the value to the ImageField parameter 'upload_to'
Ok ok I got you Then you can just call the same function inside the save() method of the model and pass the filename you wanna The upload_to is receiving a simple function that you can re-use wherever you need Nothing so special That function is used just to return the path to the image field But you can use Django FileField APIs to save where and with whatever name you wanna
V
I use forms for registration user in PostgresSQL and now l need to login user. How l can do it?