ᕼᗩᑕKᗴᖇ
One more issue i am facing whenever i delet i get server error need to reload
Mirco
Mirco
Mirco
ᕼᗩᑕKᗴᖇ
✌️done bro I was getting error from html i extended my index.html but i was not able find template maybe location was wrong now its working fine😅
ᕼᗩᑕKᗴᖇ
Mirco
Mirco
You need to study how Python imports work
Anonymous
Guys please help me I don't understand why this error came
django.core.exceptions.ImproperlyConfigured: The included URLconf 'ecommereceportal.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
Mirco
Anonymous
Anonymous
Anonymous
https://dpaste.org/Xwki
SHERLOCK
Does anybody have an idea of this error?
TypeError: init() missing 3 required positional arguments: 'environ', 'socket', and 'rfile'
It is a Python WebSocket TypeError.
I tried using websocket-client instead of websocket but the error persists.
What should I do?
Rashad
Werner
oh. yeah
Ankit
Hello everyone I am creating a simple user management using django. Can someone please tell me which way should I use?
Ankit
Anonymous
Anonymous
Enigma
Valery
Django Rest Framework
Anonymous
Enigma
Enigma
Anonymous
Can we host Django application free of cost
Anonymous
If yes than please tell me
Harsh
First two is free
Anonymous
Ankit
Anonymous
Django
For this django recommend to use AbstractUser
you can search about it in Documentation
i hate milk
does django orm support json from postgres? not jsonb
i hate milk
as i can see JSONField works only with a jsonb
Prakhar de
Describe your error, 🙏please
Valery
Well, template doesn`t exist ) Create template or add valid path to template. Or you forgot add path to templates in settings
Shay
Hi, can any one help me with django channels in private?
Shay
please send me a message
Asror
Hello, can anyone help me to suggest a book about web development. Thanks you!!!
Sourabh
SELECT DATE_FORMAT(STR_TO_DATE(registrationDate, '%d-%m-%y'), '%m') as month,DATE_FORMAT(STR_TO_DATE(registrationDate, '%d-%m-%Y'), '%Y') as year,installationtype,count(*) as total
FROM vehicles
group by month,year,installationtype
Sourabh
Artem
Hi! Need a help to understand what side I should go, because I'm stuck. I'm using Django Rest.
I have a model which takes user phone by post request, then generate a code and records all that data to database. The question is: what should I do to use that phone and generated code to log in? I wanna have a simple registration form where user send me his phone then I generate and send a code for him to log in.
I can only log in by using created superuser login and pass. I wanna do the same with data that I have in db, but I can't because the created model not in that section (https://i2.paste.pics/4e16bf7199edaa7d8561c9ea3e66a9a2.png).
I would appreciate any help, thanks in advance!
Petr
Hello I'm having issue with one of the project I'm working on
I need to add time to the quiz and it's not working
Sourabh
M
Artem
M
Artem
M
Django have his own admin authentication system, if you wanna change it, override the the admin, I mean create ur admin.py and extend from admin site and override the login view, there you can change the login method
Artem
Anand
Hey ppl I am just making a python based news aggregator ,in that I need small help ,
Actually I am not able to fetch the news
Anand
Any solution U guys have 🙏
Score
Score
Create a file: google_extractor.py
Score
import asyncio
from pygooglenews import GoogleNews
Anand
Anonymous
Hi guys, I have a really important question.
I want to build a website, like stack overflow but with much much fewer features:
==> users are able to post a question or answer another existing question
The only difference that I want it to be real-time/live whatever you call it
I want to use WebSockets so whenever someone posts a new question you can see it in real-time and neither when someone answers a question
however, I have no idea how to deal with these data and store them in the database
Could someone explain to me, please?
should I store the data that comes through WebSocket in the database!?
🙄
Falguni
Hi. Can someone help me please how to add material design in django?
Eu
Hi, I’m trying to set up channels and websockets in my django site. I am following the Django documentation but when I implement the chat server and write the consumer I get the error Websocket is already in closing or closed state
Rahul
I'm trying to append a for loop in javascript: var fieldHTML = '<tr> <td> <select> {% for item in item_list %} <option value="{{item.item_name}}">{{item.item_name}}</option> {% endfor %} <option selected disabled="disabled">Select Item</option> </select> </td> <td style="min-width:100px;"></tr>';
$(wrapper).append(fieldHTML); But in the django template its showing as {{item.item_name}} in the select list. Kindly help
Falguni
But how to add in our project?
Falguni
Ok. Thank you
Shay
if im trying to create real time groups chat app with django what is the best way to do it?
Vivek
Any easy way to implement dependent drop down menu ?
Rahul
where is your model
Vivek
Rahul
Vivek
yaa
Its like a model having a mapping of City with Localities
The problem is I want to render respective localities for a city when it is selected, but I am not sure how to do it
Vivek
model: https://del.dog/merutuvami.txt
Vivek
view: https://del.dog/ymeputynoo.txt
Vivek
https://imgur.com/a/93xoMm9 This is the problem the drop down menu lists city multiple times