Anonymous
HEy
Anonymous
I am getting Xframe Error
Anonymous
Refused to display 'http://127.0.0.1:8000/media/trailers/video.webm' in a frame because it set 'X-Frame-Options' to 'deny'.
Anonymous
Any Fix?
wanderer
I implemented gmail signin using django-allauth
But I want to display the user details to the react frontend
How do I do that?
C¥b3r
am gettn this error when I try to enter data on the django database I need some help please
C¥b3r
value error: cannot assign “‘User’”: “Post.author” must be a “user” instance
First name (optional)
Hi everyone !
I face this error while using channels for WebSockets on production:
WebSocket connection to 'wss://domain.me/ws/orders/confirm_all/' failed: Error during WebSocket handshake: Unexpected response code: 404
while there's no problem on localhost ( with runserver command )
Any idea?
Javad
Javad
Anonymous
I am displaying all fields of object Person at /person
object also includes images
So the images path is being displayed
I want to open the image by clicking on that image path
But it's going to /person/media instead of /media
Anonymous
Please help
the LudoPaisa
How Unity 3d base apk with django and firebase auth
the LudoPaisa
Any one tell me
the LudoPaisa
Phone otp
Javad
Anonymous
The problem is with redirecting
First name (optional)
Neo
How to validate the fields when it has null and blank set to True in model, but in form the should not be empty.
Tukhtamurod
Neo
js
can i do that in django custom validators, i tried this if value == "":
raise ValidationError
but it did not worked
Tukhtamurod
Neo
No
Tukhtamurod
Neo
Neo
Tukhtamurod
Tukhtamurod
Neo
the LudoPaisa
Any one tell me how django Auth with firebase
the LudoPaisa
For apk
Gil
Hi! Does anyone know how changeform (from django Admin) works with JS on submit save changes ? I don't understand, I need some trick to guide me
Eng. Mohamed
Hi all
I have a question here
If someone can help me
https://stackoverflow.com/questions/64402691/django-combine-multiple-listview-using-get-query-and-search-form
Vxvek
Hey all
Is it possible to change the template of admin in django??
Gil
Vxvek
Is there any documentation? Available
Eng. Mohamed
M
Can someone help me django with ajax
in case you get ans please post solution here .. i am also looking for something with django ajax whcih will help me in refreshing my elements ( i wanna avoid refresh page )
Muhammed
I am new to Django,
how can I learn django
Muhammed
I have some basic knowledge from youtube
Anonymous
Muhammed
Is it the correct way ..
Muhammed
To become a django professional
Anonymous
Anonymous
From knowledge of youtube and django document , websites
EscanOr
Can anyone suggest the best place and best way to learn Django Rest Framework
Anonymous
EscanOr
I have to learn now
Please tell among available sources
Yuvraj
Heyy, I am making a comment system but i am getting the following error:
IntegrityError at /article/1/comment
NOT NULL constraint failed: mainapp_comments.post_id
Request Method: POST
Request URL: http://127.0.0.1:8000/article/1/comment
Django Version: 3.1.2
Exception Type: IntegrityError
Exception Value:
NOT NULL constraint failed: mainapp_comments.post_id
Full Code: https://dpaste.org/mqYR
Aditya
I'm django rest api developer
Aditya
I need big client project
Aditya
Anyway please help
Bunty chhatri wala..
EscanOr
Aditya
Online offical document
Aditya
Anyone need help please contact me
George
Ashwani
def teacher_login(request):
email1 = request.POST.get('email1')
password1 = request.POST.get('password1')
tea = authenticate(email=email1, password=password1,)
print(tea)
if tea is not None:
login(request, tea)
return redirect('home')
else:
return HttpResponse("/Try Again")
return render(request, "teacher_login.html")
Ashwani
help
Ashwani
i am using custom user model...without abstract user.....So what should I use in place of *authentication*
Mousiol
Hi dears
Is possible that connect to websocket django by socket module?
Anonymous
Anonymous
Daisuke
Hey guys would you recommend direct dive into django without the knowledge of python. A guy who has strong concepts of java and oops and can understand the syntax of python can be directly get started with django?
Mousiol
Sadra
Sadra
Angela
Please help, how do I build a website with referral link on djsngo , every user will have a link that has their name
Khumoyun
Hello, I can't find answer from google
Question: How update user group in Django?
I have a group field in my User model which is field type ManyToMany
Rizki
Please help, how do I build a website with referral link on djsngo , every user will have a link that has their name
simple solution..
import hashlib
Refferal(Model):
user = OneToOne(User)
upline=ForeignKey(User, null=True, related_name='downlines')
ref_code = CharField()
def gen_code(self):
text = '%s' % self.id
code = hashlib.md5(text.encode())
return code.digest()
def save(self, *arg, kwargs):
if self._state.adding:
self.ref_code = self.gen_code()
return super().save(*args, kwargs)
Use
try :
upline = Referral.objects.get(ref_code=some_code)
except:
upline= None
user_refferal = Referral(user=user, upline=upline)
user_refferal.save()
Rizki
hope it helps
Khumoyun
Rizki
👍
Anonymous
Anonymous
…
Hi, I’m using constance config to store my settings in my app.
Can I store json objects inside config?