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...
Mirco
Anonymous
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
Maxim
Maxim
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?
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
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
Sea
Prasanth
ㅤ
Hello
How do I install "font awesome" icons in Django?
Because the icons don't appear 😢
Eduardo
ㅤ
Артем
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 ?
Charly
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
Poya
Charly
Akintola
Mohd
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
King David
I need using formset for 1question 5answer set and then looping
Maxim
Richard
Hello to all, I would like to use fingerprint authentification in my app Django. Someone could help me to do it ?
Jimmies San
Richard
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()
Richard
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
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 ?
Mirco
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 ?
In which class ?
The model ?
Dima
Mirco
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'
Dima
V
I use forms for registration user in PostgresSQL and now l need to login user. How l can do it?
Mirco
Mirco
Mirco