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
am gettn this error when I try to enter data on the django database I need some help please
check the models or view the issue probably at ForeignKey field or in if statement
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
Anonymous
check the reference url links and settings root folder
That's all fine... It's working when I enter url manually
Anonymous
The problem is with redirecting
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.
Neo
js
can i do that in django custom validators, i tried this if value == "": raise ValidationError but it did not worked
Neo
No
Tukhtamurod
can i do that in django custom validators, i tried this if value == "": raise ValidationError but it did not worked
are you using django built-in-form validation or your own implementation in function based view?
Neo
Need some suggestions i have a table with 8 fields in it and i have 2 roles A and B, for A i need to give first 4 fields access and for B rest 4. For this do i need to create two separate tables and how can do this with one table.
@black_tiger07 my actual problem is this. So i created two forms one is for user A it has access to 4 fields but they should not be empty. And another form for B it has rest of the fields but should not be empty.
Neo
what do you mean saying the roles?? different users?
One is sender and one is reciever, sender enters the 4 fields in model, and rest is reciever
Tukhtamurod
Need some suggestions i have a table with 8 fields in it and i have 2 roles A and B, for A i need to give first 4 fields access and for B rest 4. For this do i need to create two separate tables and how can do this with one table.
whatever the role is, dont do like this, instead, make a separate tables for roles and separate 4-field tables, then to identify which role it is use model relationship, onetomany, or manytomany according to your need
Neo
whatever the role is, dont do like this, instead, make a separate tables for roles and separate 4-field tables, then to identify which role it is use model relationship, onetomany, or manytomany according to your need
But i want to access all this fields if the user is manager, so i created only one table. Can i merge two tables into one or can i provide a form which has two tables fieds to the manager
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??
Vxvek
Is there any documentation? Available
Gil
Is there any documentation? Available
yes, its very common, https://docs.djangoproject.com/en/3.1/topics/templates/ Search for google,
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
I have some basic knowledge from youtube
I also learning from youtube
Muhammed
Is it the correct way ..
Muhammed
To become a django professional
Anonymous
To become a django professional
I creating a blog project
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
Can anyone suggest the best place and best way to learn Django Rest Framework
Wait 1month django-rest-framework videos coming on youtube
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
EscanOr
Aditya
Online offical document
Aditya
Anyone need help please contact me
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
Hi dears Is possible that connect to websocket django by socket module?
I don't know becoz I didn't work with sockets
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?
Sadra
Hi dears Is possible that connect to websocket django by socket module?
hey. sure. but the better way is to use django-channels. It's built in django-channels and optimized for the django project purposes very well.
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
Rizki
👍
Hi, I’m using constance config to store my settings in my app. Can I store json objects inside config?