Maxim
Oh, do you think it is convenient?
JSON is not for people it looks as if it is for people only for the convenience of development
Maset
Im not gonna look after some information look up and down every time, so I could deal with my data
Maybe u should order it by using some other data like date, id etc and order them in views
Брат
I'll try thank you
پدرام
I don't understand django tutorial why? This is realy confused
ARman
Hi everyone this is arman I want find best course for django I am stuck and homeless what should I do? Do you know best course for django ? Thanks for help me
ARman
Which course is complete?
ARman
If you have best course for django please recommend me thanks
Shaikh
+917004166578 Guys I am sorry to post this but this guy Akash Gupta never work with it he just played with people even doesn't pay salary to them
Shaikh
Especially don't work as an intern or for freshers
Shaikh
I am going to fire police complaint against him
Ionut
Hello ! can anyone help me too? Don't know how to count how many news items are in a category to display?
Ionut
News.objects.filter(category=category).count()
yes but what if i think this is dynamic?
Ionut
News.objects.filter(category=category).count()
yes but if you want this to be dynamic?
Alex
Alex
At a moment you have, say, an apple. Next time the number changed and you don't know how many apples there are. You have to count them again. And again if you think that that number changed. There could two apples, the could be 12345 billion apples. You don't know it untill you count it again.
Ionut
define "dynamic"
example: I displayed the categories Sports() Comedy() I want it to look like this: Sports (12) Comedy (5)
ꪉꫝꪖꪹᦋꪖꪜ
Can anyone please tell me how to run this project? https://github.com/deligence-vinit/django-appointments
Roman
yes but if you want this to be dynamic?
You can create model category with counters. And on presave of news increment or decrement counter in category.
Брат
How I can achieve that? I mean if datum is the same (in the photo: "date") I wanna put that inside of it, not create new object , to be precise not separate
Брат
https://ibb.co/p3pcfgL
Dami_codr
Can anyone please tell me how to run this project? https://github.com/deligence-vinit/django-appointments
Install it in a virtual environment.. Run python pip -r install requirements.txt
Prince_of_darkness_007
Django notes?
Doragonsureiyā
Брат
https://ibb.co/p3pcfgL
How I can do that?
Брат
https://nekobin.com/jewisosayi
IamNotAHacker
Any self taught programmer here?
Doragonsureiyā
Any self taught programmer here?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
IamNotAHacker
!meta
Great!
Alex
No. He needs group by https://stackoverflow.com/questions/629551/how-to-query-as-group-by-in-django
Alex
Maybe. But adding counters at a table level seems monkeycoding for me. There are numerous ways to shoot your knee. For example - you change a news category, then you have to handle it with the counters as well.
Varuni
Anyone comfortable with heroku here, I have deployed my website but images are not visible. If anybody can tell me the solution?
Richard
How is this best, i thought doing it correct the first time was the best
Richard
Saving count in database is wrong in which ever language or database server
Varuni
I tried using whitenoise but that too didn't worked...
Varuni
Okay
Varuni
Ok...thanks!
Alex
I want the user to be able to Sign up with Email and Pasword only (or Google account) and then automatically assign unique username from the email. So How to generate and set a username from the email address the user provide?
Gaurav
I have a records of cities in my table And i have one user model it has a many to many field for cities now i want to set specific user's cities from django orm but somehow new instances are being created whenever i do this User.cities.add(city) Anybody??
k1k0
Hello everyone, I need Know how to, django-rest, i receive request, post , and modify that information and send a request to another API. Anyone can help me?
Iyanda
Hi guys, I want to edit my Django rest- framework default frontend but the static is not loading. The bootstrap file
Iyanda
Done
Mumi
Hello, i wanna transfer the Hashvalue for a users password to the Frontend-end of my App. How should i do that?
Leonardo
Hello guys, I'm building an REST API with celery, which I receive an event by post, and I create a task to store it on database. But I have a question about the workflow: Should I validate the payload when I receive it, or during the task processing?
Leonardo
Use the serialzier to validate the POST payload before interacting with the db
Yes, but should I validate on task process, or before create the task?
Leonardo
Because if I do it during the task processing, I will not be able to give a response about the serializer error
Leonardo
I have to create an application that handles 100 requests/second
Leonardo
Before creating the task
What's the problem about not using celery for that? For example, if I just scale the webserver
A
How can I update a value in django rest ?
Mirco
Leonardo
How can I update a value in django rest ?
https://www.django-rest-framework.org/api-guide/serializers/#partial-updates
Leonardo
I did not get u
for example, if I just have a webserver that receives the request and stores it on database, without creating a task and a worker to store it
A
I did not get u
For instance, i define credit for user i want when user visit this url , user crrdit change
A
Exaple User crrdit=10 Visit usrl New credit=9
Leonardo
Exaple User crrdit=10 Visit usrl New credit=9
https://dev.to/nobleobioma/build-a-crud-django-rest-api-46kc
Leonardo
https://medium.com/swlh/django-rest-framework-crud-with-drf-9a8756095c73
Leonardo
you can use these examples as a reference
Mumi
Hello, i wanna transfer the Hashvalue for a users password to the Frontend-end of my App. How should i do that?
Rahkmanuly
Hello there! I am tending to create a global, dynamic search in my DRF App. Any suggestions?
꧁❦ I'm Farooq ❦꧂
Hi folks, I have four dicts like [ { "hi":1 ,"hello":"same"}, {"hi":4 ,"hello":"same"}, {"hi":5 ,"hello":"same_here"}, {"hi":1 ,"hello":"same_here"}] i need output like : [ {"hi":5 ,"hello":"same"}, {"hi":6 ,"hello":"same_here"}] have any suggestions, please
игорь/igor
Otherwise explain the logic behind dict values
ꪉꫝꪖꪹᦋꪖꪜ
Install it in a virtual environment.. Run python pip -r install requirements.txt
Settings.py and manage.py files are not in django main project, so what to do, could you pls tell me?
....
guys . i can't send email with django . it give me some error like this :- SMTPSenderRefused at / (530, b'5.7.0 Authentication Required. Learn more at\n ... once this is worked very well . but i don't know what happend now. EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST_USER = os.environ.get("GMAIL_ID") EMAIL_HOST = "smtp.gmail.com" EMAIL_PORT = "587" EMAIL_USE_TLS = True EMAIL_HOST_PASSWORD = os.environ.get("GMAIL_PASS")
ꪉꫝꪖꪹᦋꪖꪜ
Port no should not be in quotes, write EMAIL_PORT = 587 instead.
ꪉꫝꪖꪹᦋꪖꪜ
Also check your pass is in env. Variables for this session
Could you help pls to run project as i have to get reference from it?