Lucid
Heroku is best for hosting our django project ?
âshîsh
Heroku is best for hosting our django project ?
Can't say it's best. But it's easy to deploy
Hikmet
You can have an csv or xls file for that , so you can access the specific model based on selection or may be use that to show available models in that rental shop
I have an Account model which has mobile number, username and password, and a Car model where i defined such fields as model, brand, fuel type, mileage, transmission and owner (foreign key to account). It is OK for now but i swear I forgot to create some model with specific relationship with car model
Hikmet
I have an Account model which has mobile number, username and password, and a Car model where i defined such fields as model, brand, fuel type, mileage, transmission and owner (foreign key to account). It is OK for now but i swear I forgot to create some model with specific relationship with car model
Some times when I am working on projects, I think that am doing pretty fine and nothing more needed. But when I look for similar projects on github and etc., then I lose my confidence on what I have done. Don't know if any of you ever faced this kind of situation while being new to some approach)
Isotope751
I have an Account model which has mobile number, username and password, and a Car model where i defined such fields as model, brand, fuel type, mileage, transmission and owner (foreign key to account). It is OK for now but i swear I forgot to create some model with specific relationship with car model
I can suggest is , take a csv file from shop owners with those column specifically instead of asking to manually entering all details of each car , it should only be done for small changes or updates. This can be done later also
Hikmet
Isotope751
Have you implemented payment , offers, notification if cars are not returned on time to the shop owner?
Sumit
Hi, I am trying to implement hmac authentication , but I am getting Hmacmiddleware has no arguments ()
Sumit
I am using djangohmac
Sumit
🙏 Please help me.
Anonymous
How do I inherit user model without one to one relationship
Yash
How we write SQL queries in django
Yash
Plz share some resources if you have ..
Yash
Specially SQL joins ..
Isotope751
Firdaus
Django official documentation is the best resource. These 3 pages should cover most of use cases regarding queries: - https://docs.djangoproject.com/en/3.1/ref/models/querysets/ - https://docs.djangoproject.com/en/3.1/ref/models/expressions/ - https://docs.djangoproject.com/en/3.1/topics/db/queries/
âshîsh
Any best server to deploy
Purchase a domain of your desired size and deploy
Lucid
Ok
âshîsh
But heroku is sufficient if your app has no very huge database
âshîsh
Else you have to pay
Meysam
سلام چجوری میتونم django-admin رو نصب کنم؟
Sumit
Hi what should I return from method in view of it will be called in form action but don't want to return it anything
;)
hi firnds
;)
i have error , subject is --> none type object has no attrebute lower
;)
i search the internet but i cant fix it
;)
who can help me ?
;)
i cant send photo here if anyone can help me send me message.in private…
Lucid
Guys I have question
Lucid
I am uploading excel files in the database they are going in the same table
Lucid
Now if I want to view 1 specific file then on viewing I am able to see all of the complete table
Lucid
Can I use filter if I gave specific key to all files
Anonymous
Quick Q. I am using signals to create an instance of my business model on customer.save() Can I immediately reference the business object in the next line of code (after customer.save())? Will django signals have created the business object in time? I've tested it once and it worked, but idk if it will work every time, or whether that was just lucky?
Lucid
Maybe
Daniil
Hey guys. I am beginner at Django and I have a question. I have an app which allows you to have a todo list. I use inuilt Users model to authenticate all the users and allow to login and logout. How do I connect that to the model which I have for keeping track of tasks? I want the user to have an ability to login and only see their tasks.
Anonymous
Hello people If someone modify a valid url I should show 404 or 400 code in response error?
Anonymous
Textbook or pdf I can use to learn DRF please
Doragonsureiyā
Textbook or pdf I can use to learn DRF please
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Mirco
Thank you
And Django for APIs book
Anonymous
404
Ok, thanks
Doragonsureiyā
Ok, thanks
You're welcome! 😊
Schohreh
A question, I had to make a web application with Django and Django rest, and I had a ready API which they told me to use this API I used it by this Response.get(here the api ) . The API was for a food website and my task was to show the current food AND AND to give a rating 1 until 5 stars . Any one know how to rate ? A link also can help me Thanks
Schohreh
I’m not sure how to write it but Thanks 🤔 I will try
Mirco
I’m not sure how to write it but Thanks 🤔 I will try
You need to write a field inside your serializer that is basically an Integer Field and accept choice that it's a range between 1 and 5
Hikmet
Hey guys. I am beginner at Django and I have a question. I have an app which allows you to have a todo list. I use inuilt Users model to authenticate all the users and allow to login and logout. How do I connect that to the model which I have for keeping track of tasks? I want the user to have an ability to login and only see their tasks.
You just need to overwrite the get_queryset method in class based viewset, where you are getting that queryset (If your approach is not class based views, there should be similar solution) def get_queryset(self): return self.queryset.filter(user=self.request.user)
Anonymous
I still dont know what Django Rest is
George
I still dont know what Django Rest is
a django "plugin"
Gk
Hello guys I need to create a Facebook auto poster using Django and bootstrap ,want to ask there is scheduling like there is tab for daily , weekly, monthly to chose and select number of times it should work in day
Gk
Which library to use
appu
Suppose that I have an table people. I want to select people who's gender is male and age greater than 20.how to implement that on django
Deleted
Hey guys, how to check if the cheapest RDS & EC2 is enough for my project?
ㅤㅤ
Hi guys, I don't know what's CELERY_BROKER_URL for heroku. Is it same as local host or herokuapp url?? Please answer
Almaz
Hi, guys I need help with models architecture of like bot app who will sends question and users will answer by choosing from choices, is it normal what i did? Question ------------- - text - order - correct_answer[Answer] - anwers[Answer] ____________________________________________ Answer ------------- - text - to_question[Question]
Almaz
Or can you suggest any other varians, please
Anonymous
Hey, is there a way to make a choice field (as a suggestion, for example) but with user input?
S
Hello everyone, I'll make it short. I started learning django a year and ended up learning in just 2 months. (due to family reasons). Now when i started learning it again, Its like my mind is blank. I just remember the basics. So I don't what to ask here.. But i just need help. Really wanna switch career into this.
Deepak
Is {{form.as_p}} or us custom CSS better ??
Deepak
Using user.auth.contrib
Deepak
""Djanho's CMD utility for admin task"""
Lucid
Do I always have to migrate sqlite to mysql if I want to host django project on heroku
Lucid
Or any other server
Sooraj
My django container uses 600 mb ram by default. Is there any way to decrease its memory usage?
Anonymous
Not able to use session in Django.auth in login page
âshîsh
Is {{form.as_p}} or us custom CSS better ??
If u have deadline today then go with forms.as_p
V4RI4NT
Hello guys