Anonymous
How do you use Ajax.!
Did you bother to check Google at all https://www.w3schools.com/xml/ajax_intro.asp
godmode
Sure
Johan
For deploy Django... nginx + gunicorn ... or wsgi and apache?
Anonymous
In django rest framework, when do we have to customize perform_create or perform_save functions?
Anonymous
Any help would be appreciated! 😊
godmode
What's the best for a post commentary system, use the Django comments modules ir a own...? Cuz It could be a pain un the ass create one from 0
cj
—btw it's done in Django—
godmode
I Saw discuss, but with this look.... IS there something similar to discuss?
godmode
I mean how's that nowdays un the 2.2
godmode
In*
godmode
what?
The commentary system of Django... How is that implemented , still doesn't a way to moderate the comments?
cj
The commentary system of Django... How is that implemented , still doesn't a way to moderate the comments?
I don't get what you are trying to say... nvm, read its docs: https://django-disqus.readthedocs.io/en/latest/
godmode
I mean moderate the comments ... Yo know when somebody piss you offf and you wanted yo delete the comments...
godmode
Hold on....
godmode
Django’s comments framework | Django documentation | Django https://docs.djangoproject.com/en/2.2/ref/contrib/comments/
cj
https://disqus.com/admin/create/
you have a nice back-office to moderate the comments
godmode
I'm talking about this... And asking if there any success with this... The contrib.comments
godmode
Or that's complete off...
godmode
okey disqus... you won
godmode
@c0x6A i didn't read it, sorry, thank you man!
cj
@c0x6A i didn't read it, sorry, thank you man!
sadly that's a big problem nowadays... :(
godmode
aggg it's not more that i didn't read at all... it that i want a nice custom solution... and i think django in a future should have a nice comment system into
Anonymous
Hello guys I've created token by JWT and My questions 1-how to access to user information by token ? 2-Is that the Right way and is that secure?
godmode
@cj discus working on!
Anonymous
Raj
unni
It is not a spam ad sir
cj
It is not a spam ad sir
oh yeah... it's not, you are right... it was a recipe to cook pancakes...
unni
That's really rude
Anonymous
Hello guys I've created token by JWT and My questions 1-how to access to user information by token ? 2-Is that the Right way and is that secure?
token = request. Meta['HTTP_AUTHORIZATION'] data = {'token' : token} payload_decoded = jwt.decode(token, settings.SECRET_KEY) try: valid_data = VerifyJSONWebTokenSerilaizer().validate(data) user = valid_data['user'] self.request.user = user except: pass
Abhishek
users can log in to the site and add their posts and all posts are displayed in home. At the same time I want the posts by the user to be displayed in user profile.
Anonymous
hey guys! I need to dynamically filter list of some foreign key values in django admin how can I do that?
Andrew
Hi, can anyone tell me how I should send a csrf token through my API to avoid 403 error because I only found solutions related to the frontend and not to the backend
.
Hallo
.
I am creating api with drf
.
Then get thia notification
.
Can not send image here lol
Anonymous
Notification 😂
Mirco
Can not send image here lol
Obviously , you should read our rules
Anonymous
What's the error
Anonymous
Post the code
.
Post the code
Solved, thanks 😁
Yash
Can i use same url for two diffrent purpose ?
Mirco
Can i use same url for two diffrent purpose ?
Yup , but Django chooses it by ordering
Yash
Yup , but Django chooses it by ordering
How can please explain or you have any link releted this topic ?
Yash
Like instagram home page and after user logged home page url is same
Yash
But there views are changed
Mirco
Like instagram home page and after user logged home page url is same
That's another story, Instagram is a Single Page App so the index is always the same then javascript makes all the stuff Even though you see changes about url
Mirco
Anyway you can use javascript fetch APIs or old Ajax to make something different into the same view without going away or refreshing
Muhammadbobur
hi
Syam
Hi all. Can I connect django and Xampp MySQL?
Yash
Step 1- first install MySQL client using pip install MySQL client Step 2 –then open XAMPP and start apache and MySQL Step 3- then open phpmyadmin page on browser by clicking on XAMPP MySQL admin Step 4 – then after create one database regarding to your project name Step 5 – change little bit of setting in your Django setting.py --DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'yourdatebase name', 'USER': 'root', 'PASSWORD': 'passowrd of your datebase', 'HOST': 'localhost', 'PORT': 'if any ', } }
Fil
Pip insatll mysqldb
Fil
Or pip install mysqlclient
Abhishek
how to use filter in foreign key
Abhishek
Anyone
Sami
yo I need super expert in django
SatyendraN
Hi guys, How can I use Excel format in form.py to fill data ? So that I can copy and paste like excel instead of filling form.
Maqbool
Hi, When I use ForeignKey in my model, it showing an error 'OperationalError no such coloum named issued_book_id' Anyone please help me regarding thia
Павел
Hi, haw is done db if I have dump?
CHANDRA SHEKHAR
Hi, When I use ForeignKey in my model, it showing an error 'OperationalError no such coloum named issued_book_id' Anyone please help me regarding thia
you should try to reset the migrations using fake migration . here is the link of that https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html
Manish
hi
Manish
api/v1/ login i get space in url pattern
Manish
how to fix that?
Maqbool
Post the code
https://drive.google.com/folderview?id=1JfuRMJmTsdbR-aOd81H_tTECAzoruro-