Anonymous
Line no : 38 In that link .. Okay ..
OK, I have seen. I think you updated and worked
....
OK, I have seen. I think you updated and worked
Yeah, I updated ... But not worked. .
Musa
Yeah, I updated ... But not worked. .
Check in db if slug field is not empty
....
Check in db if slug field is not empty
Hmm .. There is some datas are without slug ..
Musa
Hmm .. There is some datas are without slug ..
Add some values to the their slug
....
....
Add some values to the their slug
Yeah , Bro , It's worked. . 👍👍👍👍
....
Add some values to the their slug
Could you explain me that. ? What is the reason. ? Also what will we do like in this situation ,.. I mean i have 4 fields , I added so many datas in db , after that I added a slugfield .. so. In that case I will get this error. Is it .? Then how can I solve that .?? Except the add each row to some slug, or dlt that ..
Musa
Could you explain me that. ? What is the reason. ? Also what will we do like in this situation ,.. I mean i have 4 fields , I added so many datas in db , after that I added a slugfield .. so. In that case I will get this error. Is it .? Then how can I solve that .?? Except the add each row to some slug, or dlt that ..
The problem was you set your route to accept slug but it is passing null for the data that doesn't have a slug value.. If you add a slugfield later then you have to manually add slug values to the previous fields you created before adding a slugfield or delete and add them again
Anonymous
I am trying to deploy my django project on server, at local system it works fine, facing problem with allows host on server side, operating system centsos. Is any additional library I need to install for that.
Sai
Add your domain or ko address in allowed hosts array
Anonymous
Add your domain or ko address in allowed hosts array
Already tried for server ip port number
Sai
Don't require port number
Sai
What response you getting
Anonymous
Don't require port number
During runserver I used port number :8000
Anonymous
Add your domain or ko address in allowed hosts array
Server running on 0.0.0.0:8000 But can not access it by outside 204.768.222.87:8000
Sai
During runserver I used port number :8000
How you are running the server
Anonymous
Python3 manage.py runserver 0.0.0.0:8000
Сидредин
How to study DRF?
Сидредин
What is the best way?
Mirco
What is the best way?
buy Django for APIs book
Сидредин
Doragonsureiyā
Thank you!
You're welcome! 😊
Sai
Send response for better understanding
shaikh
.
Check if port whitelisted Sudo ufw 8000 for white listing port nd try again
....
I don't understand
I mean in model field. . Like null , default , Something like this. ?
Peaches
Hi guys in django rest framework whenever I request api I get new session. How to solve this problem.
Peaches
https://stackoverflow.com/questions/18251522/cookie-disappeared-in-angularjs-app-using-django-and-cors Here is an answer but I couldn't understand
Peaches
Could someone help me please
Alina
Website can't be reached in chrome browser
Alina
should i change something in DNS settings?
Alina
*in any chrome browser
Anonymous
*in any chrome browser
Are you running the server from your pc ?
GOD
Are you running the server from your pc ?
Thats my name bruhh gimme back
Sayooj
Anyone know about configuration of SAML 2.0 authentication on django 3?
mukul
any tools for downloading a whole site offline
Doragonsureiyā
any tools for downloading a whole site offline
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Atul
Hey guys, I am trying to build a Python (Django) project. Ping me if some one ready to contribute as freelancer.
Bestin
Hi guys.. i want to add raw_id_ field in django admin for content_type object ( generic relation ) model.. Since its not possible,is there any other method to get similar purpose ?
Tech
Can any one help me how to make a django middleware.py for adding licence key and renival
Alina
Hey guys! I faced - attempt to write a readonly database
Alina
to change chmod doesn't help
Alina
maybe somebody had such problem before?
Alina
Fixed
Alina
But new problem jumpedPage not found (404) “/home/alina/djangoprojectdir/admin” does not exist Request Method: GET Request URL: https://nightlifeisrael.com/admin Raised by: django.views.static.serve
Alina
Page not found (404) “/home/alina/djangoprojectdir/admin” does not exist Request Method: GET Request URL: https://nightlifeisrael.com/admin Raised by: django.views.static.serve
5P34R
I'm not sure but it seems like error caused by directory listing
5P34R
If im wrong plz correct me
WPA2
Hi, I'm facing issue with django-social-oauth2 package. When I sign up from Google a new account gets created , when I sign up from facebook again a new account gets created. I have friend extending abstract user class and am facing some error in that as well. Anyone will be able to help?
cr
How to display select box containing instances of the model and when selected one instance the data should be displayed ? Any resources for this pls refer
Alina
The problem was in static files paths. I deleted it and everything worked
William
Could please explain... Do i have to use 2 content type
Nope. Check - https://www.docs.djangoproject.com/en/3.2/ref/contrib/contenttypes/ On this page check the Generic Relations section
*( (*
<body> <form action="home" method = 'POST'> {% csrf_token %} {{user}} <input type="button" value="Register"> </form> </body> </html>
*( (*
nothing is happening after submitting
*( (*
wht 's the issue
*( (*
its a form object
cr
How to display select box containing instances of the model and when selected one instance the data should be displayed ? Any resources for this pls refer
Musa
Get the input: input= request.POST.get['name of input'] form.yourfield = input form.save()
Bestin
Nope. Check - https://www.docs.djangoproject.com/en/3.2/ref/contrib/contenttypes/ On this page check the Generic Relations section
Yeah.. i did that..my problem is that i want to select object id from a drop down list corresponding to the content type selected by the user..is there any way to do this ?
Priya
I have two models model A and model B In model A ,I have 2 fields [ Aa,Ab] In model B ,I have 3 fields [ A(model A foreign key),Bb,Bc] I have one csv to fill these two models, where column names are[Aa,Ab,Bb,Bc] How can I fill model B and get foreignkey object from model A using csv column values[Aa,Ab] I am using django-import-export to import csv in admin page .
Bestin
I think you need to filter based on the content_type to show the corresponding id of the content_type selected
Yeah.. on the same page ,after user input of conter type field how to do that ?.any idea