Кирилл
Help. I need to transfer songs from duplicates to the original artist. But no matter how many times I try to do it, it just doesn't work. Songs from duplicates are not transferred to the original artist
https://paste.aiogram.dev/iruvazokap.swift
Parisa
Hello everyone, how useful do you think reading the book Django 4 by Example can be for learning Django concepts?
Houston
Hi guys. How can I fix admin panel styles aren't working when I host Django api on cpanel or even render. I've tried most solutions online but still no change.
J
Can anyone help me..i done my ecommerce project but i am not getting the result??
Qwerty
Qwerty
Houston
Qwerty
Not really
https://docs.djangoproject.com/en/5.0/ref/contrib/staticfiles/
Houston
Thank you
Flam
Parisa
Adxamjon
Hello, I have a question: how can I receive links from ImageSpecField? Links are not saved in my database.
def get_images(self, obj):
return obj.images.first().thumbnail_64x64.url
I tried it, it works but N+1 is...
I can’t use annotate, I can’t do image, but I don’t have thumbnail, is there another way?
Parisa
Doragonsureiyā
Please don't send useless messages (rule #3).
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
how do i find django admin panel
Charly
Charly
Admin is on /admin url usually
Charly
I mean you are supposed to write the code for it and know where is it
Charly
Charly
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
nvm, i will chk on google and will come here if not solved
Charly
i used postgresql
Yes but I mean there is no admin for the database from Django you may be using another program
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
M
Any one wants to collaborate on a django project? I want to develop an IT inventory management .will be a good learning experience for u and me.maybe who knows we can sell it to someone whos interested.
R
can any one help me in Django test?
Ibnu
Guys I need your help.
I start learning Django like a month ago and I know basic crud , login/logout/sign-up , basic forms , and again basic database (this one kinda difficult though..)
I want to be job ready at least for internship level ASAP, what should I learn next? (Should I start some frontend stuff or..)
Thanks 😁
Qwerty
Guys I need your help.
I start learning Django like a month ago and I know basic crud , login/logout/sign-up , basic forms , and again basic database (this one kinda difficult though..)
I want to be job ready at least for internship level ASAP, what should I learn next? (Should I start some frontend stuff or..)
Thanks 😁
Keep learning Django, databases and everything related to it.
Django Rest Framework, Redis, celery, postgres, nginx etc.
Now there are no large projects created on Django templates, so it is worth delving into the RestFul architecture.
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
where can i practise django
Tanjiro
Do you guys know sites where they provide project tutorials in creating Django web applications?
Ibnu
Charly
Gritty Tales
what could be the error?
Doragonsureiyā
what could be the error?
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://nekobin.com, https://dpaste.org (or your favorite one)
wkm
hi,how to use docker install the django?
Anonymous
ask
Hi, anyone please help I'm sending email in my django application on user registration and I'm sending html in that email but in my mail I'm not getting logo basically image is not rendering.
khaled
Anton
hi everyone, what’s the best approach to save images in django, do i need to use media folder for it in production?
and ImageField in model?
ask
ask
Hi everyone, I'm facing some issues in my django email templates. In template custom fonts are not loading and I've used some media queries in css for responsiveness and that css is in base.html which is inherited by registration.html but in email media queries not working, anyone please help.
Dmitriy
Qwerty
Anton
Anton
thanks
Un
Today is my firstday of my work in an organization, they provide source code of the project. And told me to check django architecture and give updations.
Actually what it means?
Charly
govind
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
govind
Like how handling requests and query to response like that
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
MultiValueDictKeyError
any1 know about this?
i made a reg and login page, i tried to login an acc, but when i click submit, it shows this error
Charly
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
So probably an error in your code
yeah. i have added get to [ username = request.POST.GET['username'] ]
now another error
AttributeError
'QueryDict' object has no attribute 'GET'
Charly
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
TypeError at /accounts/login
'method' object is not subscriptable
Charly
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
No code impossible to help
def login(request):
if request.method=='POST':
username = request.POST.get['username']
password = request.POST.get['password']
user=auth.authenticate(username=username,password=password)
if user is not None:
auth.login(request,user)
return redirect('/')
Charly
Charly
Charly
Or rather, what it has to do with Django then?
▓▒░ 𝗗𝗲𝗺𝗶𝗴𝟬𝗱_𝗦𝗹𝘆 ░▒▓
ساره
how can i embed a power bi dashboard in my django project
Brook
how can i embed a power bi dashboard in my django project
I was looking for the exact same solution. Do you have power bi pro it's possible in react using libraries like powerbi-client-react. There's a component called PowerBI. You can use the powerbi api to retrieve the reports or dashboards.
Kiran
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Kiran
Wc
Anonymous
@receiver(post_save, sender=CustomUser)
def create_profile(sender, instance, created, **kwargs):
if created:
# user =instance.user.save()
request = kwargs.get('request')
msg = 'Your account has been created! You are now able to log in'
profile = UserProfile.objects.create(user = instance)
messages.success(request, f'Your account has been created! You are now able to log in')
print("msg", msg)
TypeError: add_message() argument must be an HttpRequest object, not 'NoneType'.