Anonymous
How can we use a drop down in django admin for states?
you mean option for selecting states in admin ?
ps
Like i have states in js file need to use that in admin
Kushal
http://pastebin.com/q5ShHUcv
Kushal
http://pastebin.com/q5ShHUcv
The problem while login in the system
Code
http://pastebin.com/q5ShHUcv
you're using the 'get' method which can only handle one object. recheck how you're trying to retrieve the record
Kushal
Problem was only 1 number user
Code
Problem was only 1 number user
if you're trying to access more than one record, then don't use 'get'... unless you're passing the record to some kind of list/collections object
Code
a filter could work but it really depends on your code and your intent
Arsen1c
Hey anyone worked with MariaDB? I need help https://pastebin.com/fdK17X1y
Arsen1c
When i make a query to the DB asking for username(returned from request.form) and only grab the first result(using fetchone()) it returns NullType
Anonymous
Hi I am new to django python. I want to make one login page with LDAP authentication... Anyone please help me.. Please send me any link..
Anonymous
For reference..
Alberto
Hi: pastebin.com/vnhaQxTF I don't know why but when I load my web I get an error: Cannot find template Any suggestion will be much appreciated
Code
Hi: pastebin.com/vnhaQxTF I don't know why but when I load my web I get an error: Cannot find template Any suggestion will be much appreciated
what's the exact template error? btw, in your urls.py, place path('', include('main.urls')), at the bottom
Alberto
what's the exact template error? btw, in your urls.py, place path('', include('main.urls')), at the bottom
The template error is: "Cannot find template" and then points to the first line in index.html ({% extends 'base.html' %}).
Alberto
what's the exact template error? btw, in your urls.py, place path('', include('main.urls')), at the bottom
I'll make that change 👌, but what's the difference between putting at the bottom or at the top?
Prahlad
I have to implement a rating system any referrences
Cheap
https://stackoverflow.com/questions/61512642/not-able-to-connect-to-postgresql-in-production-using-aws-rds Anyone please?
Cheap
I'll make that change 👌, but what's the difference between putting at the bottom or at the top?
did you tried adding “templates(or whatever your folder name is” in TEMPLATES(in settings)?
Daniel
Hello, one question. Im trying change de input select tipical in a manytomany relation to other input to adapt with my template
Daniel
but i dont know how to do this
Daniel
Any idea?
محمد
Can you use choices in form fields
Daniel
how? because when i insert my form directly insert tipical select input
saran
Hello guys I'm getting a error, like value error: cannot alter field f_suplier.Product.images into f_supplier. Product.images - they do not properly define db_type. I'm getting this after I tried to change my dB from sqlite to postgres. I tried faking it. But its affecting my other models. When i try to insert a data. No table found like that. What might be the reason.?? Please find out
saran
I fixed it.
Florencio
Any hint about how can I implement this? Should I go for a completely custom form or can I use generic CBV plus something? https://pasteboard.co/J6a7QWX.png
Aneesh
Any one know how to load static js file other than using static functions
Florencio
Any one know how to load static js file other than using static functions
https://www.w3schools.com/tags/att_script_src.asp
Aneesh
I need to load js static file into my template.bt the staticfiles_dir is already in use. So I cant use that thing Is there any other method for that
cj
I'm pretty sure you configured bad the STATICS section in settings.py
Aneesh
Nop I cant use the staticfiles_dir function
Aneesh
It is already in use
Aneesh
Is there any another method for that
Aneesh
That's what iam asking
Cheap
its list
Aneesh
Thanks for helping .bt iam not getting the out
cj
Thanks for helping .bt iam not getting the out
https://docs.djangoproject.com/en/3.0/howto/static-files/
Anonymous
Can anyone tell me to retrieve deleted data from model.?
Sarthak
https://www.google.com/amp/s/www.cloudbooklet.com/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04-in-google-cloud/%3famp following this tutorial, but gunicorn fails to start
Sarthak
please dm to help
Alberto
did you tried adding “templates(or whatever your folder name is” in TEMPLATES(in settings)?
No I didn't, I have to add it to DIRS inside TEMPLATES, right?
Sarthak
hello
Sarthak
🙏
Sarthak
please help
Sarthak
Hi I have tried to change the working directory, and project directory The error is Job for gunicorn.socket failed
Florencio
Hi I have tried to change the working directory, and project directory The error is Job for gunicorn.socket failed
I think you have to understand why gunicorn is not being launched properly. Look for additional logs or try to launch it in another way. Also you may check if other process is listening in the same port.
Ярик
guys, can someone help with messages in django? im calling a success message with SuccessMessageMixin and setting a WARNING message tag im implement it in template with bootstrap like so alert-{{ message.tags }} but the message has a green (success color) instead of yellow (warning)
Sarthak
I think you have to understand why gunicorn is not being launched properly. Look for additional logs or try to launch it in another way. Also you may check if other process is listening in the same port.
Which port area? I changed GCP firewall to allow 80,8080,8000 to http and https No port on Virtual machine is occupied by any process 80 is set to listen
Sarthak
it actually ran by a dfferent method
Sarthak
thanks
Sarthak
but Idk what was wrong earlier
Sarthak
Now when I run curl --unix-socket /run/gunicorn.sock localhost it gives error Recv failure: Connection reset by peer
krishna
Hii I'm new to django. Currently I'm working with images using drf. I'm able to upload single image. I'm not getting how to upload multiple images using drf. If Anyone knows about this please help. Thanks in advance
Anonymous
Hii I need one help there is one my nested serializer device_types = DeviceTypeSerializer(many=True,read_only=True) which is not shown in response even I added in fields.
krishna
I tried but none of them are working for me. I will be thankful if you can share the link.
Florencio
krishna
Thanq
Prosper
hi
Florencio
which process is not running? gunicorn?
May be. I think you should check it.
Sarthak
failed to start gunicorn daemon
Sarthak
gunicorn.socket is listening
Sarthak
but gunicorn status is down
Sachin
Help guys
Anonymous
Looks like your having problems with static files on Heroku. I'd recommend reading the docs on it. https://docs.djangoproject.com/en/3.0/howto/static-files/
Anonymous
Help guys
Read above
Kushal
https://groups.google.com/forum/#!topic/django-users/u208a0IbDTk
Test
Hello, recently I asked a question in stackoverflow and still I didn't get anything.
Test
Can I share the link of that question here?
محمد دلشاد
how can i extract details from a table which is in OneToOne relation with User table