SG
Please help
Egor
I didn't understand a single thing🤦♂️ Can you rephrase it? Also watch this https://www.youtube.com/watch?v=53zkBvL4ZB4
Anonymous
Please help
Try to make your statements in a single message
SG
I want to know that how to render ajax response on html pages ?
Anonymous
How to update foreign key fields using nested serializer
My issue is I am having two tables
One is User table
It having 3 fields first_name, last_ name, email
The other model is UserProfile
It having fields like designation, contact number , profile picture, user (it is a foreign key to User Table)
I am having one serializer called user profile serializer
It is a model serializer....
I need to update values from the following fields using same serializer
Designation, profile_picture, contact_number,first_name,last_name ...
But this first_name, last_name comes from different table
Shubham
Hey guys I am pretty much new to Django how can I create client dashboard and display data ?
Nikita
Hi, I have a working let url = 'http://127.0.0.1:8000/api/student-delete/${item.id}/' for fetch() method
How can I change this to pass an argument(<str:pk>) by name ("delete-student")
let url = `{% url "student-delete" pk=${item.id} %}` raise "could not parse error"
Please help
Anonymous
Hi guys
I was trying to use get_user_model, but I had an error that could not import this
What should I do?
Gil
Gil
Anonymous
Anonymous
How to implement location tracing kinda thing in django web app like Olx service ?
Ali
You can't save data using the foreign key, cuz there's multiple columns with the same foreign key so it doesn't know which one you want to save it too
Ali
You could try using something like the dynamic url concept and get the pk of the foreign key table
DMH-FL
i am getting following error
DMH-FL
python.exe: can't open file 'manage.py': [Errno 2] No such file or dir
ectory
DMH-FL
please help
DMH-FL
using pycharm
Hey
make sure your running the server in the directory where manage.py is present
DMH-FL
i think so, i created the directory via console and then run server
Rohan
Can we use Django with MongoDB?
cj
Doragonsureiyā
Can we use Django with MongoDB?
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results
Rohan
Rohan
cj
Can i know why?
because Django's ORM is made to work with relational databases, and MongoDB is a non-relational DB 🤷🏻♂️ if you have had searched that you would know it 🤷🏻♂️
Rohan
Rohan
Rohan
Okay
Rohan
Lionel
cj
cj
Lionel
are you blind?
Didn't see that. My bad. No. I'm not blind😑
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
what is role of index.html file ?
Muflone
Muflone
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
*javascript
Muflone
What's the point?
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
What's the point?
i am actually confused, html css and js is required to create a webpage, django is just being used to easily deploy it right?
Mirco
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
then?
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
i am new to HTML CSS JS, only have used python a bit, objective is just to create a minimal interface like tinder does
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
ohkay
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
and what database is best preferred to use with django?
Muflone
Postgres
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
Postgres
is speed a factor when it comes to databases?
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
ofc not
Muflone
No one wants
Kushal
Anyone here who worked on Rest API in django to transferring data to the android applications
Elinaldo
Kushal
Anonymous
I m trying to use inbuilt admin module and use href="{% url 'logout' %}" but not working showing as users/signup/logout template not found
Anonymous
for course in user_courses_list:
for i in range(len(data)):
course_name = data[i]['course_name'].encode("utf-8")
print course
print course_name
if re.match(course, course_name):
# if course == course_name:
data[i]['indicator']=True
return JsonResponse(data, safe=False)
Anonymous
when using == code is working proprly
Anonymous
but not working using regex
Get
i think you choose a django framework and let's do that
Marco
hi! i have a trouble with django-allauth. I create my customform and it works fine, but now i need to override the signup
Marco
i tried this
Marco
https://pastebin.com/PvAXkkTL
Marco
is it correct? because it don't save personal_data and never print the first line (prin('———ok——-'))
Kushal
I want to make a cashier and finance user
Kushal
And both user assign by superadmin
Kushal
Can i do that?
Alex
Doragonsureiyā
I want to make a cashier and finance user
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. Include details such as libraries, platforms, modules, etc.
Kushal
I am working in Restuarant management system, i want to make cashier and finance two users whixh must assig by super admin
Marco
Anonymous
Sir how to add extra field like birthdate or status in auth_user table in django
I use onetoonefield but thay can not add field in auth_user table thay create onother table and reference are created
Please can you help out this question?
Bruce Wayne