Anonymous
Can we create a model through query in Django (Dynamically created model)..
Hey, Help me out.. Actually I want to create a model through a python code written in views.py Just want to create a feature for automatic model creation
Anonymous
sounds like a job application I saw 🤔 so are you trying to cheat?
Actually it's a project bro.. Actually I am not getting answer So I thought might be you guys can help
cj
Actually it's a project bro.. Actually I am not getting answer So I thought might be you guys can help
then you're doing it wrong, re-think about it, fix your architecture and write the code the way it's meant to be written
Anonymous
also, I'm not your bro
So don't teach me.. If u hav answer thn answer it
Anonymous
no, you can't
It is possible.. But we don't know the method..
cj
It is possible.. But we don't know the method..
you have to deal with migrations and server restarting, involving whatever thing you're using as web-server, so no... you can't
Shubham
Hi as you can see https://dpaste.de/bceb I have two endpoint
Shubham
*endpoints
Shubham
but actually it listing
Shubham
{ "teacher": "http://127.0.0.1:8000/users/student/", "student": "http://127.0.0.1:8000/users/student/" }
Shubham
same
Shubham
why so?
Anonymous
Anyone had implemented SSO... Any guidance
Doragonsureiyā
Anyone had implemented SSO... Any guidance
Please 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 39k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
Ok
Anonymous
inchidi
woah i found that new feature bulk_update in django 2.2 so handy: def set_inactive(self): blogs = Blog.objects.filter(author=self) for blog in blogs: blog.json_field['hidden'] = True blogs.bulk_update(blogs, ['json_field'])
Daud
why so?
They are both working on localhost
Ghorz
This post will be useful to those on vps running django with nginx and gunicorn. When you do code adjustment or modification, there is no reflection except you reboot your server. The solution lies in gunicorn daemon. Answer: ps ax|grep gunicorn To view the process then, pkill gunicorn Lastly run gunicorn daemon. That's it. All changes will reflect with no system reboot.
cj
and also... better automate it using some CI/CD tool, don't manually do things on servers. protip: dockerize your apps 😉
Julius
(told me i was muted) Hello! Trying to make partial security on my website, with SECURE_REDIRECT_URLS = [r'^accounts/profile/$',] . Using development server, django-extensions, stunnel-generated cert. When trying to access non-https parts i get 'connection reset' error. What could it be?
Jaydeep
How the biometrics like fingerprint and face is stored in database like sql What will be the datatype of fingerprint and face?
Ori
TIL about Subquery: https://docs.djangoproject.com/en/2.2/ref/models/expressions/#subquery-expressions I needed to annotate my queries with subqueries a lot of times but didn't know django can do that.
Jaydeep
How the biometrics like fingerprint and face is stored in database like sql What will be the datatype of fingerprint and face?
Example Age will have a datatype of integer What will be datatype of fingerprint and face
Jaydeep
How is this data represented while processing?
No how it will be stored in database
Jaydeep
In which form
Денис
No how it will be stored in database
Whichever you choose. Depends on what it is. String? List of integers? Duct?
Денис
Sorry, dict
Manish
nothing is enough. You have to constantly learn. Don't skip little things that you thing you won't be need of.
Mirco
!res
Doragonsureiyā
Check out PythonRes, a channel for Python resources (links to help you out).
Mihail
Hi! Help me, please, how ModelAdmin.get_formsets_with_inlines() and InlineModelAdmin.get_formset() are working? Periodicaly have tasks, connected with them. But I can't understand, how I can use it, when I have to have deal with customization of inline objects fields.
säthïs
Django + Angular best stack or not?? With mongoDB
Mirco
Django + Angular best stack or not?? With mongoDB
With Postgres , but it's up to you But it's not the best stack at all
Ghorz
Start small, grow stage by stage
Mirco
Can you brief any best stack to learn
I didn't say it's not a good one , so you can learn it
Day
Wanna focus on django back end only with python any specific PDF that only focuses on that,,,
Doragonsureiyā
Check out PythonRes, a channel for Python resources (links to help you out).
Livan
hi, who to upload file to server with api graphql graphene_django or graphene-file-upload
Dhananjay
Hi everyone I m learning django
Dhananjay
Where can I get best study material and basic projecty
Dhananjay
Projects*
Maksim
Where can I get best study material and basic projecty
https://www.youtube.com/channel/UCRM1gWNTDx0SHIqUJygD-kQ
Anonymous
https://djangobook.com/mastering-django-2-book/
Anonymous
Scroll down to access the content
Felex
Hello i need some help
Felex
i have docker installed and an image have been working on,,,when i restarted the laptop....the server of my project is no longer working
Oleg
Django + Angular best stack or not?? With mongoDB
There is no best and worst stack. Almost every stack is applicable for different cases and needs
inchidi
@ICODOGGIO hi please read the rules
Gio
Sorry
Ashutosh
Can anyone share project on bill generation of anything
Ashutosh
E.g flower shop
Anonymous
can anyone helpe in join in django
Shubham
yes
Anonymous
Hello everyone I have a system in django which i used a Boolean field ( ✅ ) inorder to verify users after they have registered.. however i want to use a condition so as to enable only the verified users access a specific task Is there anyone with an idea how to implement this ? I'm stuck with the condition
Anonymous
Yes apply logic in view
Anonymous
Filter the value of the specific user from db
Anonymous
And rest is if else
Anonymous
säthïs
There is no best and worst stack. Almost every stack is applicable for different cases and needs
My question is not means that. I have some experience in django, am new to MEAN stack.
säthïs
MEAN in the sense js family
Ghorz
switch express &node to django which one is best
You're in Django group, you don't expect comparison from anyone. If we don't use django, we won't be here.
säthïs
That's why am asking we all using django not only django