Anonymous
We are learning django where to start?
Anonymous
Please tell me
Anonymous
What is MVT
Doragonsureiyā
We are learning django where to start?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Maxim
What is MVT
Model-View-Template conception (variety of MVC conception)
Anonymous
Explain MVT
Doragonsureiyā
Explain MVT
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Anonymous
Okay
Erik
Who knows, to use it in API. Model field color picker should be charfield or i can use library?
Rebellion
Friends, Please help... When I set 'DEBUG = False' , local server shows 'Server Error (500). I'm trying to deploy my Django app on Heroku. What changes should I make to hide debug while deploying app...? Thank you in advance..!
Rebellion
Friends, Please help... When I set 'DEBUG = False' , local server shows 'Server Error (500). I'm trying to deploy my Django app on Heroku. What changes should I make to hide debug while deploying app...? Thank you in advance..!
DEBUG = os.environ.get('DJANGO_DEBUG', '') != 'False' DEGUB = False Even when i use these two lines in 'settings.py' the debug remains ON on browser showing all the app structure. Please help, what I'm missing here..😥
Rebellion
Have you added allowed host
ALLOWED_HOSTS = ['127.0.0.1:8000', 'myapp.herokuapp.com'] in this way i have added allowed hosts
Anshu
For now try with * Just for testing
Rebellion
For now try with * Just for testing
ALLOWED_HOSTS = ['.herokuapp.com','127.0.0.1'] should i remove port number and try this pattern...?
Anshu
Yes just '*', that means allow everything, just for quick test
Rebellion
Yes just '*', that means allow everything, just for quick test
yes, even after setting allowed hosts to '*' site works but DEBUG remains true...
Xəyal
Hello İs there anyone to integrate nodejs api to Django? Or just documentation about how to do it
Xəyal
What do you mean ? Calling APIs from a Node app ?
https://www.cuelogic.com/blog/how-to-use-both-django-nodejs-as-backend-for-your-application Like this
Kσϝɾα
Hello İs there anyone to integrate nodejs api to Django? Or just documentation about how to do it
NodeJS and Django are both used for backend in a webapp. You can Use only one of them for each application. If you want to build an API and a client which fetch data to your API, you can choose either Django Rest Framework to build the API and NodeJs for your client's backend or NodeJS for the API and django for the backend client. It is up to you
Kσϝɾα
Thanks
You are welcome
Hungry Matter
https://pastebin.com/Qp2X4yyb
Hungry Matter
why django on get request returns { "text_payload": "qweqweasd", "id": 6 }
Hungry Matter
i want to receive only { "id": 6 }
Lionheart
I think you will modify on backend
Lionheart
or you can fiter the response on frontend
Hungry Matter
I think you will modify on backend
how can i do that? i sent a code (pastebin)
Lionheart
ok, let me check
Hungry Matter
https://pastebin.com/raw/Qp2X4yyb
No name
Hi guys anybody haves idea to connect raspberry Pi and django to control led in web application
No name
There is any package to use it
No name
Or there is any example code ??
Anonymous
are you crazy, maybe you shoukd search in github, I remember some guy do things on Pi with python there
Python Guy
password = validated_data.pop('password') user = CustomUser(**validated_data) What it means? expecially **validated_data
Fabio
anuprash
How to practice django orm, any platform for practice difficult orm query
Anshu
How to practice django orm, any platform for practice difficult orm query
Create dummy project and practice all sort of queries
....
I have errer gettext in fontwesome how to resolve it?
Santhosh
Hi,this class does not have this attribute, but I found another solution - I installed required=False and now it works!
This is not right method. You implement choicefield for this issue. Bcz Each time there will be null values ​​in the form, instead no one is selected. Try to use choicefield.
Вова
mmm,but I don't use choisefield, I use booleanfield
plus, I don't have to always get values
Mohammed Umar
Cors are not allowed by backend django
Mohammed Umar
From angular
Mirco
Cors are not allowed by backend django
Add django-cors-headers package and configure it
Dot enum
I'm not able to import serializers
Dot enum
Even if mentioned in install apps too
Dot enum
It's not recognizing
Dot enum
Anyone know what I'm doing wrong?
Maxim
Anyone know what I'm doing wrong?
no one knows what you're doing, so no one can know what you're doing wrong
Dot enum
I'm creating a serializers for my models which one integer feild
Dot enum
When I'm trying to import rest_framework it doesn't recognize it
Doragonsureiyā
When I'm trying to import rest_framework it doesn't recognize it
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
𝔄𝔷𝔞𝔪𝔞𝔱 ℑ𝔨𝔯𝔬𝔪𝔬𝔳
Can someone help about react
Manav
I want to create a custom moderator panel so that it logs onto that panel when a moderator logs in and logs onto the user page and the user logs in. The moderator panel should show some data that the user has entered that is fed into an SQL database. Any suggestions on how I can implement this functionality? ( Tutorial links / guidance would be great )
0x
How to change these time formats to Y-m-d h:m:s
0x
2021-12-19 15:29:16.542191
Maxim
How to change these time formats to Y-m-d h:m:s
dont't ask Python question here sorry, I'm in the wrong group, but be more specific about your question
0x
django question
0x
DateTimeField
0x
The format saved to the database is 2021-12-19 1515 2916.542191. Is there any way to change it to Y-m-d h:m:s?
parandhamudu
Using data.parsar
parandhamudu
Timestamp
0x
ok, I'll try. tks
parandhamudu
Using my SQL or sql
0x
I gave up .i let the front end handle it
parandhamudu
Yes
Yulia
Hello, how solve this problem: i do runserver in Pycharm and see : 'os.stat_result' object is not callable
Yulia
Who knowns HOW solve it????😐😐😐
Yulia
Framework Django