Ferrum
hello, how do i write unit test for my django rest app?
Dambe
Pedro Fumero Go check the docs
Pedro Fumero
Dambe
Perfect @syk1k thanks a lot!
Pedro Fumero U're welcome
WhiteDevil
Guys - any of you can suggest offordable hosting provider for Python microservices
WhiteDevil
Flask + Django
Cosmos
Hey everyone, Can someone give some tips for deploying Django app on AWS? There is so many different types over there. Is there any specific cheap option for API or web app? I don't know AWS very well.
Aziz
Hi, how can I make ability to answer the comment. Like comments for comment
Cosmos
Or you can slide the comment to the left.
Aziz
I mean in django.
Aziz
U can do it in app. But i want to make a button link reply
Aziz
But don't know how
WhiteDevil
Heroku
Thank you.
WhiteDevil
It depends on the purpose.
WhiteDevil
You will have to understand the backend requirements, infrastructure etc.
WhiteDevil
Go is faster than Python and it is a compiled language
WhiteDevil
If you need to develop fast choose python
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Mirco
If you need to develop fast choose python
Keep talking about it into the OT group please
WhiteDevil
Apologies
Shery
Hi. After developed a site in django, should I do something more to improve the speed or the perfomance in production?
Mehmet
https://docs.djangoproject.com/en/3.0/topics/performance/
Shery
lol thanks
Anonymous
Hi guys i I need little help ı have django model in model have price and payment ı need to show paymen on admin panel anyone help me ?
Mehmet
Basically add admin.site.register(Price) admin.site.register(Payment) under admin.py
OnlyGod
Angela
How do I model a soccer score website in django
Angela
Please help
Harish
Django 3.1 released. https://www.djangoproject.com/weblog/2020/aug/04/django-31-released/
Bunty chhatri wala..
use <hr/> before {% endfor %} if you are using bootstrap
Thanks..i solved it..issue was because of loop
Anurag
Thanks..i solved it..issue was because of loop
before my suggestion it get solved
Anurag
?
Bunty chhatri wala..
before my suggestion it get solved
Yes..btw thanks for your response
Anurag
okk good
Vikas Singh
How I learn drf in youtube any best youtube channel please sujjest
Vikas Singh
??
Vikas Singh
just read drf doc
Okay any youtube channel sir
_dvd
Does anyone have time for a question about ArrayField?
Anonymous
want get value for option in template From choices in models
Anonymous
I want custom choicefield in html
Darth✧
I want custom choicefield in html
https://docs.djangoproject.com/en/3.0/topics/db/models/
Anonymous
Hi guys! I have done with all the basics of django and have made projects like: Ecommerce website Twitter bot Cv maker Can some please help me, as if what should I learn next to get into freelance as soon as possible. Thanks
Anonymous
Learn DRF
Thanks. I will learn it, and do I need to learn React js to get the first gig?
Anonymous
I don't know exactly, but it's a freelance job, people use this word
R
If you want to be full stack developer then yes
R
Anyway, react will not be superfluous
Dinesh
Hi , How are you doing ? I am getting this error while uploading files or images in django shared hosting (cpanel) Any help
Dinesh
Error "page not found "
Dinesh
Raised by : django.contrib.admin.options.add_view
Jay
How to deal with empty variables while creating Django orm queries for example I have a query say, User.objects.filter(first_name = fname, last_name = lname , username=uname) Now if a value say fname is None due to some reason maybe the frontend did not pass it then I do not want to query that particular field i.e now I want the list of users who have the last_name as lname and username as uname and there is no criteria on fname, so how to do that?
Mehmet
You can chain filter expressions like below. qs = User.objects.all() if fname is not None: qs = qs.filter(first_name=fname) if lname is not None: qs = qs.filter(last_name=lname)
Mehmet
Django performs lazy execution, you can chain querysets and it will only run on db when iterated on queryset.
Ярик
i had one
Ярик
i had one
but it was on my old laptop, you can find it in the web
Ярик
but it was on my old laptop, you can find it in the web
it was about rest framework and docker
Anonymous
but it was on my old laptop, you can find it in the web
I did search for it but it only have a paid version $39.
Ярик
search better
Дауран
How can do the date in order in Django , I meant the new article can show first than another older
Дауран
I don't know where is write this code either models.py or views.py
Xeyyam
Hi guys
Xeyyam
İ just want to use postgresql with django for my little project
Xeyyam
But i want local ,i mean i will not deploy site
Xeyyam
Can i do this
Xeyyam
??
Xeyyam
İf yes ,can you recommend youtube videos for this??
maroong
İf yes ,can you recommend youtube videos for this??
Yes. I used pretty printed. He used elephantsql in his video. There are other videos on YouTube, just check.
Kito_Kessian
How can j fix error says class profile has no object member
Xeyyam
Yes. I used pretty printed. He used elephantsql in his video. There are other videos on YouTube, just check.
Thank you .i checked .But most of then are connecting with host on internet.But i need local just for practice
Nivatharan
Aws server
Thanks a lot 😊
Syanty
İ just want to use postgresql with django for my little project
You have to install 2 things Postgressql server and psycog2. And in Django project u need to use postgres db config like the initial sqlite