Xerena🦋
How storage JWT token in django rest ?
I use local stogare. After that you are going to store both the access token and the refresh token on the client side, usually in the localStorage. Source: https://simpleisbetterthancomplex.com/tutorial/2018/12/19/how-to-use-jwt-authentication-with-django-rest-framework.html
Karthik
There is no error but msg is showing
Xerena🦋
There is no error but msg is showing
Can you show source code? How do you use message?
Xerena🦋
Uday ..
Karthik
How to use paste code
Xerena🦋
How to use paste code
example : https://paste.ofcode.org/
Xerena🦋
or you can look: https://docs.djangoproject.com/en/3.1/ref/contrib/messages/ I think you didn't use it right.
Prateek
Can i use development database (dpsqlite) on production with good traffic?
Artem
Hi, how add to model repeated fields like that http://screenshots.lufed-it.de/chrome_y7o37Z0frN.png ?
Anonymous
I have a question I have this two different models : Post and Audio Both of them are represented on the index file and they display Now I'm ordering them with [-created] which is working
Prateek
use postgresql for good traffic
Will i face any problem with moderate traffic and dbsqlite
Numon
Will i face any problem with moderate traffic and dbsqlite
you should use postgresql for good traffic because sqlite will slow down repond speed
Numon
guys i have a invisible error on django. I have made comment form but it's not showing form on template?
Mehmet
Can i use development database (dpsqlite) on production with good traffic?
No, sqlite is very limited on concurrency support.
ɱσσɳ
Can i change in future?
sure. django ORM is so flexible
Beka
Can i use development database (dpsqlite) on production with good traffic?
dpsqlite won't recommended for production environment.
prvz
When we use Q in django(from django.db.models import Q)
Muflone
Anonymous
Okay 3
*thanks
Beka
Welcome
prvz
Welcome
I am asking
Beka
When we use Q in django(from django.db.models import Q)
When you want to use) But in fact, Q is faster then simple filter.
Beka
I am asking
But you already got the answer from another person, too.
maroong
How do i migrate postgres database with everything stored in it to another database (mongo dB)?
prvz
When you want to use) But in fact, Q is faster then simple filter.
Yes it faster, also by using it we can reduce query size, I got in Google
prvz
How do i migrate postgres database with everything stored in it to another database (mongo dB)?
You have to export that that db and import to another db ex mysql
maroong
You have to export that that db and import to another db ex mysql
Okay, will it be able to sync properly when I start doing makemigrations for some newer models?
prvz
Okay, will it be able to sync properly when I start doing makemigrations for some newer models?
No, you have do makemigration that model also migrate for create table
Jamil
Hey guys, do you know how to send json as multipart form data
Jamil
i cant quite get it
Bheeshma
Simple
Jamil
Serialise form data
no i mean using requests library
Jamil
im sending to external api from my project
Jamil
im not facilitating
Bheeshma
So do you want to send it from your django views ?
Jamil
yeah
Anonymous
Hello everyone, I am new here. I want to asked some questions. Basically I am Web developer Python django, and how I want to add a chatbot with my website. How i can make a chatbot and integrate it with django website? Please anyone help me
Anonymous
guys my upload function is not working in views.py
Anonymous
can someone have look at it pls
Anonymous
www.github.com/crash1604/Spotifylookalike
Anonymous
Tranton
Hello
Tranton
i am learning django and i get stuck at this error
Tranton
from .views import index ImportError: cannot import name 'index'
Muflone
Your views module hasn't index function
Tranton
the problem was in urls.py file
Tranton
path(' ',views.index,name='index') but the error not resolved yet
Muflone
path(' ',views.index,name='index') but the error not resolved yet
you will not ever be a developer until you learn to read the error messages
Brian
path(' ',views.index,name='index') but the error not resolved yet
Make sure you have a function named index in your views.py. if not, add it and make sure it returns something
Gopal Kaul
It should be path(" ",views.index,name="index")
Gopal Kaul
Single inverted comma
7H3
Hi everyone
7H3
How can I host a django project with redis-server, Someone can help me please?
Random
How to add CAPCHA for authentication form , at login or register page ?
Random
Can i implement google capcha here ?
Random
Has anyone tried it ?
Anonymous
How can I implement mobile OTP authentication
Eguakhide
Hello guys goodday. Please i have a lon running function that takes approx about 3mins to complete before it returns values. I am trying to use it inside a Django channel/Websockets, do i need to make use of the AsynchronousConsumer? And if i have to please how do i set the routings.py file? Thank you in advance.
Anonymous
Hello. What do you guys usually use? Class based views or function based views?
Anonymous
It depends