Namitha
In axios post request I want to send datas from 2 different models how can I implement that
Kaleb
Hello guys can some one guide me on how to query Tree structure in django
Anonymous
How can I show date picker with django model form...I tried jQuery but that is not working
Anonymous
That is not showing in html
Anonymous
I can see a blank input box only
Ayobami
That is not showing in html
Do that separately on your html
Anonymous
How?
Ayobami
On django it's models.datetime field
Anonymous
models.DateTimeField() right?
Ayobami
Yes
âshîsh
I can see a blank input box only
If you are using forms then use {{_nameofmodel_.as_p}} If you want custom html then- <input type=date">{{modelname.model}}
âshîsh
Thanks...it's working...I'm such a nerd
We are all noob. 😏 But have different levels.
Anonymous
🙈
Engelberto
hello friends some django documentation i am new to this world of django
AMIT
Ok
Engelberto
some documentation to learn django
âshîsh
some documentation to learn django
Official documents Goto Django website. You will find there
AMIT
You can visit in YouTube django of durgasoft
AMIT
Institute
Engelberto
i will look for it
AMIT
If you cannot find I can help you little bit,
AMIT
For study purpose
AMIT
Yes
AMIT
First of all you listen some videos after then if it is understandable then ask me further
Anonymous
We are all noob. 😏 But have different levels.
Ended up using bootstrap Django date picker plus
Engelberto
First of all you listen some videos after then if it is understandable then ask me further
Thank you friend for your recommendation and of course if I have any questions I ask you
Engelberto
thanks friends for your help
Engelberto
ok
A҉l҉i҉
hello when i change default file storage my site shows 500 Errror please help me DEFAULT_FILE_STORAGE = 'storages.backends.ftp.FTPStorage' FTP_STORAGE_LOCATION = "ftp://****"
garrip91
What can I do to load files to my Django-project? I need detailed explanation 🙏🙏🙏
Alex
What can I do to load files to my Django-project? I need detailed explanation 🙏🙏🙏
https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/
garrip91
https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/
I saw this, but I didn't understand 😞
garrip91
Then learn english.
English is not the reason
Alex
English is not the reason
The article explain the entire file workflow in django. I don't know what to add to it.
Hossein
Hi guys i'm using rest api in my project and i'm using ckeditor for my articles. In the ckeditor i use images and text. But my UI colleague says he can not give the image and text seprated and style them . What should i do??
garrip91
The article explain the entire file workflow in django. I don't know what to add to it.
Different ways are considered here and I cannot understand which one I need
garrip91
https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/
For 1 of problems in this - I don't see needed template (for sample)
Muhammad Shofyan
hi, anyone here have tutorial or reference for Autocomplete, and auto fill multiple field ? . example we fill phone number, and then other field like name. address, is automaticaly filled based on phone number (from database) . so far, i just found for autocomplete, but not auto fill, anyone know ? thanks
Arbeit
i use django-rest-framework. i have two apps. one user app, with a custom user model, and a company app with a company model. the company model has a relation to the user model called owner and in the rest api i wan't to reference the user. for example GET /company/1: { "id": 1, "name": "django ag", "owner": { "id": 3, "username": "myusername" } } where is it better to place the UserSerializer used in the CompanySerializer? i can make a public user serializer that can be used for referencing models in the user app, or i can make a user serializer per app that references the user model?
appu
how to check whether a user is super user or not
mukul
appu
user = auth.authenticate(username = uname, password = password) plzz tell mu using this
ARBAAB
i deployed my django app now everything works fine but just updating is not working
ARBAAB
i can post delete view place new orders just update query not working anyone knows why this happens???
Doragonsureiyā
i can post delete view place new orders just update query not working anyone knows why this happens???
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
ARBAAB
Everything is working fine locally I mean the CRUD is working when i deployed to sever only Update is not working even in django admin panel
ARBAAB
create and delete works
ARBAAB
Server python version is 3.8.6 and mine is 3.8.5
ARBAAB
django version is same in both
âshîsh
__init__
Sorry Guys How to get single object by using ModelViewSet in DRF and DefaultRouter()
Anonymous
all taken
Crabby
I have made a registration form in django and i have saved that registration form in my database now i am making a new form and in my new form and old form ( which is in the database) has a lot of repeated fields so i want to extract all the value from old form and fill it in the new form as default by the reference of registration id so how can this be done?
Maltapopoulos 🇲🇹
not working my friend
Hi, what is your problem ?
Bhashkar
Hi What is the best approach to seprate environment variable in django.
Maltapopoulos 🇲🇹
ARBAAB
Hi, what is your problem ?
Everything is working fine locally I mean the CRUD is working when i deployed to sever only Update is not working even in django admin panel
Bhashkar
python decuple or load_dotenv?
ARBAAB
create and delete works
ARBAAB
Server python version is 3.8.6 and mine is 3.8.5
ARBAAB
django version is same in both
Naol
what is the supported timezone format, i tried utc+1 and utc+01:00
Maltapopoulos 🇲🇹
django version is same in both
Using docker will let you test with the same version in python
ARBAAB
Using docker will let you test with the same version in python
there is no logically error everything works completely fine in localhost, and everything works fine in cpanal just update method returning 404 page not found the debug is true
Hikmet
Hi everyone! I have a question: I am new in django and currently working on my project of car rental website. What I want to clarify, how should I manage model creation process? Like I know that in my example I need just two apps with one model on each, which are Car characteristics model in Car app and Accounts model in Accounts app. But when I am seeing other similar examples, I am seeing other approach to these problems, like they create several models and are relating them between each other. Can someone point me to the right direction?
Dish’s
Looking for a django dev for a freelance job to implement checkout in django-oscar and stripe. Sebastian