Najim patel
But in admin login page there is no user data available
Najim patel
that's not an error
How I solve this problem
Lokesh
Please Help to create multiple Users using Internal groups in Django...
Lokesh
As example Student and Teacher and Super user
cj
How I solve this problem
that's not a problem neither an error... go learn about HTTP statuses
Shreehari
Please Help to create multiple Users using Internal groups in Django...
hope this helps you https://simpleisbetterthancomplex.com/tutorial/2018/01/18/how-to-implement-multiple-user-types-with-django.html
Arezoo
please help me to find answer my question: https://stackoverflow.com/questions/65395708/how-can-i-use-multiselectfield-in-drf-patch
Ani
As example Student and Teacher and Super user
Use boolean fields such as - is_teacher, is_student, etc. Use them accordingly in your views or templates accordingly. Eg: request.user.is_student
hareesh
How to handle models with forms
hareesh
Here i used foreign key as user in model table
Molaiea
I am trying to change the default error message in maxvaluevalidator by overriding the class but d msg still doesnt change mm any thoughts?
Doragonsureiyā
How to handle models with forms
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Hamidreza
Firefox can’t establish a connection to the server at ws://localhost:8000/ws/address/. Why Django Channel Can't Read This Url And Give Me a 500 Internal Server Error For WebSocket? my routing,py is wrong or my template js in wrong?
cj
Firefox can’t establish a connection to the server at ws://localhost:8000/ws/address/. Why Django Channel Can't Read This Url And Give Me a 500 Internal Server Error For WebSocket? my routing,py is wrong or my template js in wrong?
I run with the same exact problem today morning... you have code —or following a tutorial— with old channels code and you're using the lates channels version, just add .as_asgi() on your consumer's routing it's on the docs: https://channels.readthedocs.io/en/stable/topics/routing.html
Hamidreza
but you have an error with ws/address/ and you're showing ws/statistics/ 🤔
I used training to learn That tutorial had the following addresses localhost:8000/chat/lobby/ But I wanted my addresses to be as follows locahost:8000/statistics/ I deleted the room_name from the self.scope in consumers.py self.room_name = self.scope['url_route']['kwargs']['room_name'] and problem fixed ➕ A small mistake but at the same time big
Bhashkar
Hi for now i am using uwsgi --ini uwsgi.ini for nginx <-> socket <->uwsgi and when i close terminal it terminated goodbye to uWSGI.. So i want to run this command once and socket file work for all request how we can do ?
Anonymous
Hey anyone can help me how to install django... Step by step .. I tried many times but I couldn't?? Please suggest me
Anonymous
pip install django done!
I already installed
Charly
I already installed
then whats the problem?
Arezoo
how can i use MultiSelectField in views.py ?
Doragonsureiyā
how can i use MultiSelectField in views.py ?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
AliReZa
how design progres bar for upload somthing in django in adminpanel?
Anonymous
Guys, I have created a User Model. They can be of two professions, Student or teacher. Now I have created another Model which is PROJECTS. GOAL: I want to enable Teachers to create a New project and assign to multiple Students. How implement this? Just guide me. Coz I want to create an object or instance of Project class and assign it to multiple objects of Student class objects. How to do this?
Harsh
how design progres bar for upload somthing in django in adminpanel?
You can copy html from boostarp and desgin according to you ... Then you can use ajax Use upload() method And Can use upload ().getprogress() And loop it using Java script for every 1 second so progress of every one second will be show if you want more information message me
Anonymous
Hey Guys I am having Issues With Google Drive Storage In Django
Anonymous
Please HELP
Anonymous
PLZZZZZZ I AM SCRATCING MY HEAD FROM 1 WEEK
Anonymous
THIS
Do you think that's enough to resolve your issue?
Anonymous
No
Anonymous
Whats the issue?
Anonymous
I Want To Use Google Drive as My Media Storage But I am unable to do that
Anonymous
https://codeshare.io/GAMKqv
Anonymous
Study the authentication of Django
But how to allow one object of a model for many other objects of another model.how to do this linking?
Faisal
Foreign Keys
Omkar
How can we add js plugin to django website
Anonymous
Foreign Keys
With foreign keys, I tried. But its for one to many relationship. If i make a foreignkey in project model, linked to students, if i create one project object, How will i get the option to choose all the students to assign the projects?
Faisal
What you want to do
Anonymous
What you want to do
Guys, I have created a User Model. They can be of two professions, Student or teacher. Now I have created another Model which is PROJECTS. GOAL: I want to enable Teachers to create a New project and assign to multiple Students. How implement this? Just guide me. Coz I want to create an object or instance of Project class and assign it to multiple objects of Student class objects. How to do this?
Anonymous
What you want to do
When i create a project object, i want it to allocate bunch of already created students to that project object. . Then i want students to submit the project. That's it
Faisal
Okay
Anonymous
Okay
Can u help?
Faisal
Yes, wait a min
Faisal
How you want to choose students is there any criteria
Anonymous
How you want to choose students is there any criteria
No, I want to choose all the students. Like when i create a project, I should get an option, to choose all the students. When students open their profile after logging in, they should see the project assogned to them.
John
I have created e commerce rest api using django including payment method but I am not sure about my api or Models is completel or not whai I have miss something or not so is there any one who well known about django e-commerce and how will test my api I want to use this api for my real world project so I doesn't want any loop hole in it
Tous
I have something like this with Jexcel {type: calendar, options: {format:'DD-MM-YYYY'}}
Tous
Can anyone help me on this
Mirkənan
what's order of this process? I have class which extends CreateAPIView. that view has ModelSerializer. which is first? view's post() function? then what? serializers create() function or perform_create()?
Nurgazy
How i can filter DateTimeField with weekday and month?
Nurgazy
created__week_day doesn't work
Nurgazy
created__month too
Vinod
Anyway to run tasks in background without using celery and rabbitmq ?
Dhruv
Heyy guys!! I am having a model form... I just want to update only particular fields in the form through URL...(i.e..127.0.0.1:8000/update/?tubelight=true)When I do only the mentioned field values gets updated and the rest of the fields in the form (non mentioned fields in the url say fan,bulb) value is reset... Any idea or suggestion is most most most welcomed.
Mohammad
How can I get a first name and a last name from the instance user in the signal? By writing the following option instanse.first_name I will receive an empty string
Meghna
Can I loop through two models in the same app to get data into single table? I tried using two for loops but it only increases the number of output.
Anonymous
Any course suggestion To start learning Django with project
Rahul Dwivedi
Anonymous
Okay
Doragonsureiyā
Any course suggestion To start learning Django with project
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Khumoyun
Hello, I need create chat form in Django admin side. But I have no idea
Mirco
Hello, I need create chat form in Django admin side. But I have no idea
Too much effort honestly, but you can study the Admin section inside official documentation and how to customize it
Doragonsureiyā
Thank You!
You're welcome! 😊
Anonymous
What can users of a closed site do to change their information in views