Кирилл
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
Not really
https://docs.djangoproject.com/en/5.0/ref/contrib/staticfiles/
Houston
Thank you
Captain
Hello everyone, how useful do you think reading the book Django 4 by Example can be for learning Django concepts?
For learning you have to practice it on Projects you will be better version by applying it on project I think you will never master Django just reading books
Flam
Can anyone help me..i done my ecommerce project but i am not getting the result??
Specify what you were trying to do exactly when you got the error
Parisa
For learning you have to practice it on Projects you will be better version by applying it on project I think you will never master Django just reading books
Thanks, I've seen Django tutorials before but I didn't learn Django concepts very well and that's why I'm looking for another source
Captain
Thanks, I've seen Django tutorials before but I didn't learn Django concepts very well and that's why I'm looking for another source
If you previously completed Tutorials then its good just complete 2 projects of E-commerce by referring someone already done e-commerce projects then 100% you will be good Django developer
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?
Doragonsureiyā
Please don't send useless messages (rule #3).
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
how do i find django admin panel
Anonymous
how do i find django admin panel
Using django_extension Show urls
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Using django_extension Show urls
wdym? last time i used postgresql, i dont remember how to use it now can smone explain
Charly
Admin is on /admin url usually
Charly
I mean you are supposed to write the code for it and know where is it
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Have you checked at least some of the documentation?
which? i was doing it well before, i took break and now i dont actually remember how i used to open the postgresql i'm not able to find postgresql app on my device
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Admin is on /admin url usually
not that one, databases is what i need to see
Charly
not that one, databases is what i need to see
Django does not have a database manager
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
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?
Doragonsureiyā
can any one help me in Django test?
No one can help you until you explain your difficulties.
Captain
Can you recommend a site where I can practice the project?
https://www.geeksforgeeks.org/e-commerce-website-using-django/?ref=lbp
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
Do you guys know sites where they provide project tutorials in creating Django web applications?
I just search like Authentication in Django and just learn .. 😁
Charly
Do you guys know sites where they provide project tutorials in creating Django web applications?
On Google you'll find tons of you search "Django projects"
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?
Doragonsureiyā
hi,how to use docker install the django?
Your question is not related to Django. Please move to @PythonOfftopic group and ask there.
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.
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
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.
Qwerty
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?
In a productive environment, it is preferable to save media in a separate service, such as AWS S3 or any other cloud storage.
Qwerty
what about local development?
Locally store in conjunction with the media folder and image/filefield, but not in the database itself.
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?
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
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
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
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'
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
get must be lowercase
now another error
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
TypeError at /accounts/login 'method' object is not subscriptable
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
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('/')
Doragonsureiyā
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('/')
• Use a backtick (`) on both ends of your single line: `print("hello world")` • For more lines, use three backticks (```) before the first line, and after the last (and add the language you're using, Telegram now supports it): ```python def hello(name): print(f"hello {name}") ``` • You can also select text when typing, and select markdown formatting.
maneliiii
Thats a bad idea. Django admin is an app already made and tested. You should do unit testing for your models instead
I know that but I wanted to know that it's possible or not besides that it can be a good project for learning selenium
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
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('/')
In django there is inbuilt method is login() so if you are same written as a function name then it will be not working you have to write your function name like login_user() and follow django auth documentation and your login functionality will be work...
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'.