goku
Hello everyone
goku
Does anyone know about token authentication in Django I want to make an API and connect it with my app
Doragonsureiyā
Does anyone know about token authentication in Django I want to make an API and connect it with my app
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 ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
goku
I want to make an API which will send a token to frontend and user don't need to fill password again it will just check token connect it with my app
Zoha
Hii Can you help me find the best way to learn django?
عــمــر
Hii Can you help me find the best way to learn django?
Take a course online (YouTube..etc ) or reading books .
gtindo
Hii Can you help me find the best way to learn django?
Start with the introduction tutorial : https://docs.djangoproject.com/en/3.1/intro/tutorial01/, when you are done you could build simple apps
Lugano
Collecting staticfiles throws ImproperlyConfigured - Stack Overflow https://stackoverflow.com/questions/27213752/collecting-staticfiles-throws-improperlyconfigured
Lugano
i just don get it
goku
Can anyone send any good article or video where I can learn about drf token authentication
Mirco
Can anyone send any good article or video where I can learn about drf token authentication
Official docs of DRF And https://simpleisbetterthancomplex.com/tutorial/2018/11/22/how-to-implement-token-authentication-using-django-rest-framework.html
Anonymous
Hi i had a problem storing latitude and longitude values usiny mongodb database i was using decimalfield to store these location values but it gives db error tht mongodb does not support decimal field. Can someone suggest me a better idea to store latitude and longitude values using mongodb and django
cj
otherwise don't use MongoDB (why are you using it at first?) and use PostGIS
Sarjat
Guys i was just thinking how can i implement friend request mechanism
Sarjat
Can anyone help with this?
Sherlock
Hi, Error: AttributeError: type object ‘ModelName’ has no attribute ‘_meta’ I am getting this error wen i try to register one of my model to admin.py Any help?!
Sherlock
https://pasteboard.co/JyRvbQu.png
Sherlock
https://pasteboard.co/JyRvwfz.png
Sherlock
Solved.. thanks.. I missed to pass models.Model in first line
Sherlock
Thanks☺️
bikrant
Can we flutter as frontend and django in the backend for a website
Anonymous
Can we change the value of context dictionary in django temple?
Anonymous
With assignment operator
Baggy ️️
do you have any roadmap for creating platform like Pythonanywhere by Python? i love to making this for my startup
I know that whatever files we are uploading and hosting on pythonanywhere is internally running on ec2 instance
Baggy ️️
Frontend is obviously simple
my
Anyone know how to pass current user I'd while user enter a model data(that I want a user send a data to dB then want know which user do this)
my
I want the data in a model field (created_by). Then how I pass it directly
Manikandan
I want to store image in google drive and that url link stored in db its possible . If its possible how plzz tell any link about this
Anonymous
store them as string 🤷🏻‍♂️ why do you want to store them as decimal? you're not gonna make math operations with them... are you?
I want to store longittude and latitude values which later i m going query users and list them whoever is in 5 km radius . Mongodb works good when it comes to location based field storage as it has some inbuilt support for spatial queries . I googled and decimal field is best for storing latitude and longitude values in python , but while using it with mongodb it gives error tht decimal field is not supported wth mongodb
Anonymous
Use postgresql
Mongodb is clients requirement u see , and i know there is a way out of this . I m making some silly mistake
Ghorz
You can use geo-django
Max
Hello! Please tell me how best to organize working with databases in Django in this situation? The external database is incomplete and does not have all the relationships (MySql). So I wrote my database in models on Sqlite. When we will start testing, we need to take data from some tables from mysql... Does anyone know how to do this?
Baggy ️️
How do you connect your dB in Aws windows server any idea?
Baggy ️️
Local mysql db
Baggy ️️
It's working fine with sqllite
Max
I will connect to the external database via the settings.py file, specifying the host/port/password. it will also be available via the api. it's just that the server hasn't been raised yet, but when it is, I need to output data from some of the tables there. I would like to maybe overwrite them in my database, but I don't understand how to do it? I'm sorry, if I misunderstood This is my first project
Amd64
https://pasteboard.co/JyXgl7x.png
Full stack developer (React, Django)
how to a queryset to a list or object
Mourya
How to write django get api give response for 200 hits
Amd64
yes
Mourya
Anyone
Mourya
??
Manikandan
Search button in djangoo
Khumoyun
Hello, I want to implement authentication with email or phone number and also password And I have no idea P.S I have field which is client can enter phone number or email number. I need handle it what client enter to login
Full stack developer (React, Django)
how to a queryset to a list or object
Can anyone help me with this... please
aleks-th
Can anyone help me with this... please
https://docs.djangoproject.com/en/3.1/ With such a question only so
Full stack developer (React, Django)
aleks-th
Didn't understand
Point by point. 1. What did you do? 2. Sample code? 3. What do you want to do? 4. What exactly is unclear ?
Doragonsureiyā
Anyone
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Baggy ️️
He is really good
Khumoyun
*
Hey! I've tried following the Django-Channels tutorial (https://channels.readthedocs.io/en/stable/tutorial/part_1.html). For some reason, it doesn't work as supposed. They ask you to open the chat in two browser tabs and send a message. The message is supposed to appear in both tabs. However, it appears twice, and only in the second tab. I'm absolutely sure to have followed the tutorial by the letter. I've uploaded the resulting code here: https://github.com/nesvoboda/problem_with_channels Could you please take a look and help me to figure out what's wrong? My Django version is 3.1.3, Channels is 3.0.0. The channel layer backend is Redis, but I have the same results using the in-memory backend.
Sarjat
Anyone who knows django channel , websockets and is interested in working on my source code DM me...
Vxvek
Can any one help me to slove this.. , the problem is that I have a table which get values dynamically., in that table each row has a button which onclick bring a pop window.. And in that pop window I need to show the details of that row..can anyone help me this ? Please
Anonymous
how can I use react with django server side?
Doragonsureiyā
how can I use react with django server side?
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
bikrant
Can anyone suggest which is better to learn for web development react or flutter ?
cj
Can anyone suggest which is better to learn for web development react or flutter ?
Flutter is for mobile applications, although they have a beta to build Web applications, it's —as I said— a beta
bikrant
Yes I googled that , as I'm just a fresher and build project for portfolio not for clients/production
bikrant
I think flutter is more in demand now than react so it's better to learn flutter
*
React is arguably more popular/widespread, so more job offers/stack overflow questions
*
I don't think that Flutter is widespread at the moment as a web frontend framework, but you can Google the actual data on job offers/framework popularity
bikrant
Ok thanks I'll search on that
Sarjat
Can anyone explain the meaning of this line in models.py Sender=models.ForeignKey(settings.AUTH_USER_MODELS) please explain the meaning of setting.AUTH_USER_MODELS
Khumoyun
Hello, Question: How validate international phone number with regex?