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 ?
Gil
I want to know that how to render ajax response on html pages ?
If I understood well you words, this is about FRONTEND js question, not Django. DJango will serve js files to your html, to work with ajax, but this presentation is FRONTEND, not backend. Or you are asking how to serve JSON for ajax requests?
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 ?
Doragonsureiyā
Hey guys I am pretty much new to Django how can I create client dashboard and display data ?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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
Hi guys I was trying to use get_user_model, but I had an error that could not import this What should I do?
are you talking about django.contrib.auth.get_user_model() ? What version of django?
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
Can we use Django with MongoDB?
yes, but don't do that
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
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
Okay
cj
Yeah but by installing djongo we can fix that
and you'll have 987 headaches more 🤷🏻‍♂️
Rohan
cj
I cant find proper tutorials too 😞
that's why you shouldn't use Django and MongoDB 🤷🏻‍♂️
Lionel
are you blind?
Didn't see that. My bad. No. I'm not blind😑
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
what is role of index.html file ?
Muflone
what is role of index.html file ?
It's used as directory page
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
It's used as directory page
it has js in it, doesn't it
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
*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?
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
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
Muflone
i am actually confused, html css and js is required to create a webpage, django is just being used to easily deploy it right?
Django manages what the client receives, the HTML/css/js and operates in the server side where the client cannot do anything
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
ohkay
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
and what database is best preferred to use with django?
Muflone
Postgres
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
Postgres
is speed a factor when it comes to databases?
Muflone
is speed a factor when it comes to databases?
Would you want an application that runs too slow?
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
ofc not
Muflone
No one wants
Kushal
Anyone here who worked on Rest API in django to transferring data to the android applications
Doragonsureiyā
Anyone here who worked on Rest API in django to transferring data to the android applications
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 55k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
what is role of index.html file ?
Basically it defines the homepage of your site .All other pages like Contact page , team page, etc are attached to it.
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
Bruce Wayne
I m trying to use inbuilt admin module and use href="{% url 'logout' %}" but not working showing as users/signup/logout template not found
Try path('logout/', auth_view.LogoutView.as_view(template_name='appname/your_/ogout_template.html'), name= 'logout'), And {% url 'logout' %}
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?
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
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?