Meh
I am a beginner in Web development and I am looking forward to explore django for one of my project
Meh
I have to Implement a library management system for a librarian pov with voice based search system. A Google search yielded me that it can be easily implemented using python so I was thinking of using django for the project. Is there any other option better than django?! Since I don't have any experience with Web technologies, I would like to assure that django is an optimal choice!
Seetharaman
Django is the best
Fredrick
G. .is is deep on rifle I'll b. Bvvvbvvv hour b by hour but tight thy try but tight thy try NTTtjr but tight tertiary NTTtjr but tryststrysts trysts trysts tentbtbttt the yyu
Shubham
Hi there, I am stuck in implementing one feature in Django, my doubt is I have created a user model by inheriting AbstractUser class. I have write one Booleanfield in my user model. I want to login all the users in Django admin whose flag is true. How can I implement this. Is anyone have the idea? It would be great help for me.
Shubham
I see no problem in that
To login the Django admin I think the user must have issuperuser. But I also want to authenticate the users which have that flag true.
Rohan
To login the Django admin I think the user must have issuperuser. But I also want to authenticate the users which have that flag true.
https://stackoverflow.com/questions/471550/customizing-an-admin-form-in-django-while-also-using-autodiscover
Rohan
Or write a custom auth backend
Rohan
https://testdriven.io/blog/django-custom-user-model/#admin
Rohan
Quality
Please help me. I use a template, everything works fine, but only the page is shown as the source code of the page, not rendered html. What is it? How do I make the pages display properly?
Muflone
Wrong content-type
dhelbegor
Hi guys, can someone help me please? I'm working with drf. I have a choices in my model, and I need to show that choices in a post, I'm trying to use serializers choicefield to show the choices but because my view is a create view I can't get the choices What is the best approach to show the value and the name of a choices in the form for the user? Create a endpoint just to pass the choices for the client or create a handmade choices in the client?
Anonymous
Hi there, I am stuck in implementing one feature in Django, my doubt is I have created a user model by inheriting AbstractUser class. I have write one Booleanfield in my user model. I want to login all the users in Django admin whose flag is true. How can I implement this. Is anyone have the idea? It would be great help for me.
you can get the model fields using object = authenticate(login=login, password= password) after that you can access model fields using (.) you can && the condition if object.issuperuser && object.yourflag: do login stuff
Anonymous
i need some django project
Anonymous
can some help me
Shery
Hi there, I am stuck in implementing one feature in Django, my doubt is I have created a user model by inheriting AbstractUser class. I have write one Booleanfield in my user model. I want to login all the users in Django admin whose flag is true. How can I implement this. Is anyone have the idea? It would be great help for me.
you write in models.py a class like this one class User(AbstractBaseUser): admin = models.BooleanField(default=False) you will need a property @property def is_admin(self): return self.admin but it will be superuser. Maybe you should use the staff flag
Lykheang
hi all member do you have source code upload image + graphql ?
.
can we instruct psycopg2 to use simple query mode?
D4RK
Anyone teach me Django framework?
Anonymous
Omg, you can study django anywhere!
D4RK
I'm looking for someone to guide me.
ten
Anyone having Django tutorial or pdf or books
r0b0t
I'm looking for someone to guide me.
Django's documentation has the best tutorial
Anonymous
What's current stable version of django? (Now)
Anonymous
Doragonsureiyā
Anyone having Django tutorial or pdf or books
https://docs.python.org/3/tutorial/index.html
Anonymous
any?
something for college project
Anonymous
like online shoping etc.
Sergey K
Do online shopping site
Doragonsureiyā
Anyone having Django tutorial or pdf or books
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Can somebody help me with djangocms?
Doragonsureiyā
Can somebody help me with djangocms?
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 49k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Shery
something for college project
Try searching something like django sample on github
Aswath
Can i extend the User model directly instead of extending AbstractUser
Aswath
?
Ansab
How to set extra fields during Google social authentication
Ansab
Hey.... How to logout from Google signed users from django???? Pls help
Mirco
Hey.... How to logout from Google signed users from django???? Pls help
It's a bit tricky, not supported by third party apps u use for Google login
Sumit
There is a boolean field in my model, false by default. How to write a method so that when the method is called it gets true
Anonymous
I know
Anonymous
why?
Mirco
The question is why you wanna mix them if Django is built on different programming language
Anonymous
I dont use PHP I use Python
Anonymous
Not use Amy php
Mirco
No doubts, choose php or python before any other decision
Jimmies San
No doubts, choose php or python before any other decision
php? 😱😱😱😱😱😱😱😱😱
Mirco
php? 😱😱😱😱😱😱😱😱😱
🤣 For me there's no doubt , obviously
Jimmies San
yes sometime even a python developer needs to go to the toilet
Jimmies San
😊😊😊😊
Batman
😊😊😊😊
nice docker pfp 🧐
Anonymous
Use case: In database there's json field which contains schema for html form how to render html form based on that jsonschema? is there a way to this? Any answer is appreciated please and thank you
nigga
PHP has his advantages. It is designed for the web. And php can handle also json
Anonymous
I have a table displayed in html created) from django model with a checkbox as the last column (boolean in the db). How can I update the boolean in the db for a specific row when the checkbox is clicked?
maroong
can some help me
Check justdjango on YouTube
Swapnil
!docs
Doragonsureiyā
https://docs.python.org/3/
Swapnil
! django docs
Doragonsureiyā
Django Specific Group
Michaël
Hello! In Django 3.0.1 if I go to '/admin/' second time, the server just stops with the code 304. I haven't changed anything except migrate and createsuperuser. At the very same time in Django 2.1 it works fine. What can be the reason?
Pixelated
Any hints or ideas?
You probably need to use Ajax. But don't quote me on that, im a js noobie