Doragonsureiyā
What is Phönix
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 first results
Amit
How to configure templates in settings.py file ....
Украинский
Amit
I have implemented : BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) TEMPLATES_DIR = os.path.join(BASE_DIR, 'templates')
Sadra
I have implemented : BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) TEMPLATES_DIR = os.path.join(BASE_DIR, 'templates')
you don't need TEMPLATE_DIR var. Put [str(BASE_DIR.joinpath('templates'))] as value for TEMPLATE['DIRS'] which has already been defined.
Sadra
And don't change the BASE_DIR.
Sadra
Can I jump learning django test framework without knowing deep about djnago
Somehow, but you better to start with class-based views. They will be helping you in DRF. :D
Sadra
Hi, I want to change Sglite to postgresql. i forgot my postgre password and i reset the password. Now when i want to run these commands it doesnt work.
Can you log through the DB manually? (I mean using shell) If so, you can configure it simply and enjoy using your Postgres. :)
Anonymous
How can I display sensor data recieved from sensor through MQTT, using django-channels? I found one way on internet to directly receive data using javascript. But I want to store data in database. So is there a way to recieve data on server.
Deepak
I have one question like how can I update foreign key field in rest framework
Sadra
That which project should I do ?
Start with a blog. Do it as simple as you can. Make it maintainable. Then, start using DRF. Make your phone application. Keep up with a Desktop version.
Deepak
Just like other fields. Not a big deal.
I mean like how can I edit parent model field if I serialized child model
Deepak
?
Deepak
Well like there is bottle model and it has foreign key that is refer to wine. Then I serialized the bottle model. So when I use put method then it is only updating bottle model's field but not uopdating wine model
Sadra
I mean like how can I edit parent model field if I serialized child model
This might help. (2nd answer) https://stackoverflow.com/questions/46314246/how-to-update-a-foreign-key-field-in-django-models-py
Deepak
But I am using drf
Sadra
But I am using drf
views are views
Sadra
Some of them render a template, but others render the data
Deepak
Hmm
Anurag
Hello to everyone ...if there is anyone who worked in django with mysql database ...please reply. I need some help
Jimmies San
if someone can reply, he/she will
Anurag
Ok sure
Anonymous
Does anybody know how realtime chat is implementation in django??
Anonymous
django channels
Can realtime chat be implemented with firebase nd django?
Pratiksha
NoReverseMatch at / Reverse for 'detail-l' not found. 'detail-l' is not a valid view function or pattern name. Can someone help me with this please ? I am not able to understand this error message.
#!/bin/sh Inَactive
Anonymous
Does anybody know how realtime chat is implementation in django??
Check tutorial section of channels documentation
Anonymous
Anonymous
You can do it with ajax but will not be realtimr
Deepak
Why foreign keys field not shown in rest api. While it is shown in admin page
Pratiksha
When you give the url in the href then the id of the particular detials can't be found.
Error during template rendering In template C:\Users\prati\projects\myproject\blog\templates\blog\base.html, error at line 0. This is also showing up, means there is some error in base.html? Please help.
Anonymous
Suppose ypu want to go to detail page then in herf you give like {% url 'url-name' id=variable %}
Anonymous
Hi
Anonymous
Does anyone faced with flatpickr problem in django form?
Anonymous
It shows the 01.01.2020 instead selected date when open form for editing
Anonymous
I initialuze it with jquery selector
Aggrey
any best video that can help me understand channels or a resource channels is soo complicated
faran
how can i backup mysql db periodically in my django project? any suitable tools?
Jimmies San
how can i backup mysql db periodically in my django project? any suitable tools?
fastest way? https://github.com/django-dbbackup/django-dbbackup
faran
fastest way? https://github.com/django-dbbackup/django-dbbackup
i have tried to use dbbackup but it is not possible with python 3.8.
Jimmies San
i have tried to use dbbackup but it is not possible with python 3.8.
you can create a mngmt command, or use an invoke command
Jimmies San
by yourself, without any package
Anonymous
Anonymous
Please suggest some good youtube tutorial for django. I've just finished learning python
Zulfikar
Please suggest some good youtube tutorial for django. I've just finished learning python
Check codingforenterpronours or clever programmer or tech with tim. i already watch from their video
Anurag
how can i backup mysql db periodically in my django project? any suitable tools?
You are using mysql database with django ...but how to retrieve the data using queries
faran
You are using mysql database with django ...but how to retrieve the data using queries
what i have used now is loaddata and dumpdata commands.🤔🤔
Anurag
Is it possible to do so
Anurag
what i have used now is loaddata and dumpdata commands.🤔🤔
Oh...but it is possible to use sql queries to retrieve data
Anurag
?
faran
?
i didn't check this but I'll do to see which one is better 🤔
Anurag
Ohkk
Sibiselva
Hi guys can anyone share django rest api tutorial I want to use it as backed for flutter
Mirco
google it
Sibiselva
google it
Ok thanks
Doragonsureiyā
Ok thanks
You're welcome! 😊
Mirco
Doragonsureiyā
Ok thanks
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Tridip
Hello Guys, How to handle asynchronous programming in Django??
Tridip
the best way is not to do it.
Why is that so?? Will there be any problem if I use celery??
Alex
Why is that so?? Will there be any problem if I use celery??
Because it is developed for multithreading/multiprocessing, that why. It depends.
Leonardo
Guys, I'm using PyPDF2 to split pdfs, now I need to save these pdfs on database using models.FileField, how can I do that?
Alex
Guys, I'm using PyPDF2 to split pdfs, now I need to save these pdfs on database using models.FileField, how can I do that?
https://docs.djangoproject.com/en/3.1/ref/models/fields/#django.db.models.fields.files.FieldFile