ಶಶಾಂಕ್
Ninage Mande sariunta
Mirco
Jimmies San
Anonymous
Can anyone tell me about the permissions in jwt rest api
~Kishor~
Anonymous
I'm using allauth app to manage user authentications
I want authenticate users with email and password.
Is this done by allauth app?
Or should i do it like allauth does not exist?
I mean if there is an all auth method/option for this? Or it's unrelated to allauth?
NR
allauth can do it
Anonymous
Can i not make a custom user and let allauth take care of it all?
I want to use email+pass for users
NR
yes
NR
you can do and put settings for all auth
Anonymous
Yes
Maksim
How make filter for several fields??
Manthan
Guys I know python and I want to explore more on it so what should I learn now
Something related to web development with python or something like that
I even know Machine leaning
Manthan
I know that things I needed something to learn for web framework with python
Anders (izzno / gooood) 🇳🇴
And eventually you cant escape JavaScript ;)
Manthan
Yeahhh 😭😂
Anders (izzno / gooood) 🇳🇴
(Final advice, learn JavaScript, not JQuery (or in that order))
Manthan
Okayyyy
Manthan
Better is Django or flask ?
Anders (izzno / gooood) 🇳🇴
Two different things...
Anders (izzno / gooood) 🇳🇴
I'd say Django ... If you dont know either... Because you get more "for free" feeding "anyones" need for acomplishments faster ;)
Anders (izzno / gooood) 🇳🇴
You'll read a lot about flask being more lean and faster etc, but unless you are recreating facebook (aka 1mill + users) this does not matter... And make no mistake django can be just as fast. When you need it too.
Akash
I am planning to host 2 projects one static at domain.tld and my main app at dashboard.domain.tld so my homepage does not goes down ever.
What's the best way to redirect to home page if user is not logged in.
dashboard.domain.tld will check if user is logged in if not it should redirect to root domain.
Or is it better to keep the homepage in same django project
Akash
Also my project will have only way to signup is via telegram bot users get an auto generated username and password which they can use to sign in on we later or never use any id password and always signing with a one click via bot.
So does it make sense to have a telegram_id field in AbstractUserModel or I should create an app called telegram and make a OneToOneField with AbstractUserModel
.
If is authenticated method can be used
Anonymous
How to create. .json file in Django
Anonymous
Django rest framework quickstart turorial serializes User and Group models
In test the API section while it makes requests to get users list it provides username and password while they are not required.
You can request and get users without credential info. The fact that tutorial provides them confuses people specially those who are new.
~Kishor~
Any one have best YouTube link for Django from scratch leveal
S
I want to create a static educational Foundation website.( Project).I have the basic knowledge about blog in Django.....can anyone suggest the best tutorial YouTube channel for my project
Ghorz
https://dpaste.de/Qgae
find it difficult to update data, having issues with returned multiple object
Ghorz
S
Ghorz
Ok
If you can't create an HTML templates, duckduckgo.com or colorlib convert the the template, separate the static from templates, add DTL tags to integrate. Serve from django views and url patterns
Orack
has anyone created some django webapp for backtrader python framework ?
Anonymous
How do I write my serialized data in a .json file
Anonymous
???
Omair
For an single instance you can override the save function in your serializer to write the serialized data onto a .json file or try something like this https://www.django-rest-framework.org/tutorial/1-serialization/#working-with-serializers
Ashutosh
Is anyone have django tutorial videos?
Mirco
Alexander
hi! how can i get all database names with count of table and records count?
Anonymous
How do I link my json file with database
Anonymous
???
Muflone
What do you mean with link?
Jimmies San
Jimmies San
😎😎😎
Anonymous
😂
Anonymous
Actually we want to save the details in a json file and wanted to link it with the database..
Jimmies San
Muflone
In the dictionary:
Link: verb, see Link
Anonymous
No not jsonfield
Ghorz
Oleg
Anonymous
How... We don't want the fields in the db but want them in the json file
Jimmies San
Anonymous
Na.. Bro not like this
Anonymous
Can you show me some eg
Jimmies San
Na.. Bro not like this
this no, that no. your problem your solution. let us know when it's solved ;)
Anonymous
Okay
Anonymous
How can I linked a JSON file with my db... Json files contains the key value pair of the user data..
If the id in the db and the id in the json files matches i can fetch and read it..
Anonymous
Minimizing Database load
Anonymous
He can query in-memory
Jimmies San
Minimizing Database load
useless if then you destroy i/o performance loading data from files. and if the file is bigger or they are a lot... well, performance will rapidly degrade
Jimmies San
db are optimized for this stuff.
Jorge Luis
How can i make a test to validate a URL resolve in Django 2.2, i have a tutorial that make one in Django 1.11 but doesnt work for me
My Code:
...
path('p/<int:pk>', views.P_detail, name='p_detail')
...
Tutorial Code:
...
url(r'^p/(?P<pk>\d+)/$', views.P_detail, name='p_detail')
...
Jimmies San
Jimmies San
check the docs
Toni
Does anyone know where we can find complete django projects?
Anonymous
Github
Omair
Toni
Github
any link would help a lot 😊
Anonymous
Which type of project do you want.. Simple
Anonymous
??
Anonymous
You can check my github then github.com/surajfc