Ur Friend
How to use unicode in slug
Ur Friend
Any idea
Ur Friend
Getting this error "enter a valid “slug” consisting of unicode letters, numbers, underscores, or hyphens."
Husen
#help
TypeError: cannot pickle '_io.BufferedReader' object
Qwerty
Morteza
park seo joon
Hi I need help please
I created a table and added some class to move the table to the middle, table should fit in the whole page, and even add bordered to it but all I got was just a table that wasn't organized and no border
Maxim
park seo joon
Rose
Abror
amira
Rose
User Danilo has 1/3 warnings; be careful!
Reason:
crossposting
अज्ञानी
Rose
User Kevin has 1/3 warnings; be careful!
Reason:
cross-posting
अज्ञानी
अज्ञानी
And now I see it has been answered already
Hooman
Hello everyone
what is the best way to check a model video field height and width from django administration before save to database?
Rose
This is not a Django specific question, please delete your offtopic message.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Anton
How can I speed up this code?
It currently takes 1.5 seconds with production data which is way to long, whole page takes ~4s on my m1 mac and i guess it’s gonna be even longer on my vds
@timer
def get_leftovers():
steps = Step.objects.all()
leftovers = {}
for step in steps:
leftovers[step.pk] = {}
for order_entry in OrderEntry.objects.all():
for step in steps:
leftovers[step.pk][order_entry.pk] = -order_entry.quantity
for report_entry in ReportEntry.objects.filter(report__order=order_entry.order, report__step=step,
detail=order_entry.detail):
leftovers[step.id][order_entry.pk] += report_entry.quantity
return leftovers
Maxim
Tohid
Walter
i have one question guys i have created a user by using create_usr function the authentication is not working on it but when i create using superuser function it is authenticating is something their that it only authenticates superusr
Nerd
mostly I don't use django authenticate
I first find the user by primary key and use
user.check_password to validate the password
Snuppe
Hi,
I try to learn Web development.
Want to build a small canban board. But the login doesn't work.
https://github.com/KayBeckmann/join-angular
https://github.com/KayBeckmann/join-backend
http://localhost:8000/auth/login/
If I test the login in browser worth manual input, I get a positive response.
But with angular, I get error code '0'. Google and chatgpt didn't bring me to the right answer.
I hope, it's just a little mistake, but I can't find it.
Snuppe
Maybe it's a little bit German in code 😇
The Inspired
The Inspired
StackOveflow says it usually happens when cors isn't configured, so maybe try doing that?
Snuppe
Thank you. I will try it
The Inspired
Anton
This code snippet generates over 400 SQL Queries and it is extremely slow
https://dpaste.org/TXb5o
Have no idea how to fix it
Lines 26 and 37 are pointed by debug tools
Anonymous
Anton
clouded
Rose
User Akbarov has 1/3 warnings; be careful!
Reason:
offtopic contextless link
Mohammad
Ali
AuthFailed at /oauth/complete/linkedin-oauth2/
Authentication failed: Scope "r_emailaddress" is not authorized for your application
I get this error when I log in via LinkedIn. Does anyone know the solution?
Rose
User . has 1/3 warnings; be careful!
Reason:
rule #10 violation
Abdulfattah
Sweet website using django and postgresql and I want one post for hosting that supports all versions
Rose
Anton
so i kinda have to iterate filter them all by machines and by time
but i thought of doing it this way
report_entries = ReportEntry.objects.filter(
report__date__range=(timestamps[0], timestamps[-1]),
report__step=step).select_related("detail")
and then smth like
for report_entry in report_entries:
table[timestamp_to_shift(report_entry.timestamp)][report_entry.machine] = # further table cell generations
Arneeth
What is the difference between Redis and REST API when using in django application?
Rupesh
What are the Django project based on real world help to get jobs?
Arneeth
Jean
Apart from TODO lists, what are some other great projects for django beginners.
Rose
User Kiro has 1/3 warnings; be careful!
Reason:
rule #1: speak English
Kiro
Can anyone tell me the folder structure of Django rest framework?
Charly
Shubhtiwarii
Anyone have project which implementation of login, register page by the help of html,css,js and the backend uses by django rest framework.
Charly
Shubhtiwarii
Guide me about how to attach the rest api with html css js login page.
Rose
User ꯭꯭⚜꯭꯭[꯭꯭🇲🇾꯭꯭]𝚸꯭𝛂꯭𝚻꯭𝚁𝛊ꯥ꯭𝛓𝚱ꯥ꯭🌚꯭꯭🌿꯭꯭꯭𝙅꯭𝛂꯭𝚴꯭𝙚[꯭꯭🇺🇿꯭]⚜꯭꯭ has 1/3 warnings; be careful!
Reason:
nonsense
Abdullah
Hello everyone,
I wanna learn Django, is there anyone who can guide me.
I'll be very thankful
.
Is timezone.now() really not following the settings’ TIME_ZONE by default?
For example, I tried to use TIME_ZONE = “Asia/Singapore”. Then when I check
>> from django.utils import timezone
>> timezone.now()
datetime.datetime(2024, 4, 1, 23, etc.., tzinfo=datetime.timezone.utc)
Notice its timezone is UTC. But then
>> timezone.get_current_timezone()
zoneinfo.ZoneInfo(key=‘Asia/Singapore’)
In this case is Singapore.
I’m afraid I might be setting something wrong.
Rahl
amira
for a parental control app using django is there any helpful sites or open source codes for that ?
cj
amira
just GitHub
Prashant
my project is perfectly working on localhost but when i am runnning it in production it is loading slow. can someone help me out
Rose
Prashant
what details you need
Ivan
good morning everyone how do i change the name on the header of my database from django administration to another name
Maxim
Ivan
likeon top of the database it is showing django administration instead now i want to change that to my own name