Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
The models are quite simple.
Anders (izzno / gooood) π³π΄
I can always change this later.
.
Anders (izzno / gooood) π³π΄
Turtle_In_Hurry
can anyone tell me what is the approach of making Invitation-Only user registration where user who want to sign up first input his or her email and then gets invite link for further process {i'm using jwt token based variation}
Turtle_In_Hurry
Anders (izzno / gooood) π³π΄
Anyone?
You could do it programmatically
Anders (izzno / gooood) π³π΄
https://github.com/izznogooood/myfamilycart
Go nuts poeple :) Find a hole...
Anders (izzno / gooood) π³π΄
God yes... It's comming, I promise
Anders (izzno / gooood) π³π΄
The db IS a separate container
.
I see. Sorry
Anders (izzno / gooood) π³π΄
Im thinking about a dev compose but this way almost anyone can run it.
Anders (izzno / gooood) π³π΄
I see. Sorry
Haha that's OK
.
.
I think it is necessary
Anders (izzno / gooood) π³π΄
I have no idea what that is
.
Django runserver hot reload
George
George
try changing code and watching the cli
George
George
idk
.
Also would be good to make custom User model and get rid of Profile model
Anders (izzno / gooood) π³π΄
Why?
Anders (izzno / gooood) π³π΄
I can use that later.. M
.
Advices for the future bro)
Anders (izzno / gooood) π³π΄
Advices for the future bro)
Yes and I'm thankful, but why not use the default model? You get alot for free...
.
It is very convenient to use custom model based on AbstractUser imho
Anders (izzno / gooood) π³π΄
Then I need to do hashing / logins / logout / profile views etc etc, might as well use flask 😉, it's a tiny app (now)
.
You don't need to write logic for hashing etc. when you use custom User model
Anders (izzno / gooood) π³π΄
I distinctly remember when inheriting from abstract base user the save method does not hash?
.
.
I have wrote dockerized Django start template
.
https://github.com/buffalobill571/django-docker
.
Write me if you have any suggestions or advices
Anders (izzno / gooood) π³π΄
John
hi guys
John
i need populated choices in context)data
John
someone know make?
John
but
John
I have this field in modelform
requisicao = forms.ModelMultipleChoiceField(label="FORN/FUNC",queryset = Requisicao.objects.none(), required=False)
John
I 'm have populated field
John
form.fields['requisicao'].choices = lista_requisicao
John
this is correct?
Anonymous
I am using https://github.com/dmytrostriletskyi/django-telegram-login
to let users login to my website.
Everything works. when user click on widget I get a hash params in request and I can verify it.
Now how to keep user logged in?
my login_required view is still sending me back to login page.
safeme
Hallo everyone... I need some help, i want create dashboard app using django... How i can start?
Mirco
Mirco
Kabir
How can I integrate my web cam with Django frame work ?
Neo
Anonymous
Can any one guide how to sync my local db and remote db because my remote db is on some server and if the server is off the changes are reflected in local db but not in server
Anonymous
So i need some way to sync both local and server database
Neo
hello all
I have a few variables with some values like
a='something'
b='something'
c='something'
I want to filter my query like
qs = qs.filter(a_= a, b_=b, c_=c) but do not want to filter if a, b, c have no value or None
is there a way except if else ledder
Mirco
Ronald
use js
Probably some sockets too
Anonymous
https://dpaste.de/vagd
Anonymous
I want to save only selected data
Guillermo
Anders (izzno / gooood) π³π΄
sorry
Anders (izzno / gooood) π³π΄
i missread
Anders (izzno / gooood) π³π΄
How do you guys handle inserting messages / html in running projects. Lets say you need to take the site off line for 2 minuts, how do you warn? Template IF presence of a html fil insert or something ?
.
Anders (izzno / gooood) π³π΄
Anonymous
How to set default value in model from url?
For example default=getfromurl(request)
Artyom
Hi guys! Could somebody tell me: what the best way for making GET to frontend union from few tables? I have to define QueySet which make union request, to define views for him and to set url and next to use url? or some another way?
Neo
Guillermo
Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
A concept or arrow in a direction is all I need.
Anders (izzno / gooood) π³π΄
👍
R
But you can also for example create an html which says the site is in maintenence mode, and have another nginx site which serves it and when u are on maintenence, just enable it and disable the django one (additionally, you could also keep serving the django app in another port for test purposes using maintenence site config)
cj
you should buy it 🙂
cj
wait... you asked the same 3 days ago... come on boy, we already discussed about it