Anders (izzno / gooood) πŸ‡³πŸ‡΄
Anders (izzno / gooood) πŸ‡³πŸ‡΄
The models are quite simple.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
I can always change this later.
.
I think its easier for people to contribute if they can just "run" it.
I think it is good to include migrations to every release commit
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}
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
.
https://github.com/izznogooood/myfamilycart Go nuts poeple :) Find a hole...
Make separate container for DB Make another compose file for dev with hot reload
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
Hot reload support?
It already has it
George
try changing code and watching the cli
.
It already has it
I mean hot reload in docker
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) πŸ‡³πŸ‡΄
https://github.com/buffalobill571/django-docker
Thank you, I will look at this tomorrow 🙂
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?
safeme
Official docs 😁
Absolutly... Thnx mate... 😄
Kabir
How can I integrate my web cam with Django frame work ?
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
Kabir
there are so many ways search google
Can’t find a proper guide to do so
Ronald
use js
Probably some sockets too
Anonymous
https://dpaste.de/vagd
Anonymous
https://dpaste.de/vagd
In many to many save all datas
Anonymous
I want to save only selected data
Guillermo
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
I think you will need to use if anyway. I would do something like this: query_args = {} if a: query_args['a_'] = a if b: query_args['b_'] = b if c: query_args['c_'] = c qs = qs.filter(**query_args)
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 ?
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?
R
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 ?
For offline/maintenence, theres an app whose name I dont remember, you can easily create a middleware to do it or handle it through nginx or webserver you use. For messages to the user, you can just use the messages framework included in django
Anders (izzno / gooood) πŸ‡³πŸ‡΄
A concept or arrow in a direction is all I need.
R
Yes, easy ones you've seen "a" recipe 😊, you have any?
https://github.com/fabiocaccamo/django-maintenance-mode
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