Mirco
Fastly is implementing the fix so everything should go back up
Mo
factory = APIRequestFactory() x = factory.get('/notes/', json.dumps({"id": 1, "m": 1, "n": ["Ab1", "Ab2", "AL1", "AL2"], "M": 12, "Starttime": "2021-04-14,"R": 0.0160, "T": 0.0030}), content_type='application/json') St = x['Starttime'] Error: not enough values to unpack (expected 2, got 1) ???
Macurrent
Will the django extensions be implemented in django by default in future??
Eng. Mohamed
Hi All I am using Django Rest Frame Work and I'm trying to get authenticated user info, using token in session. https://stackoverflow.com/questions/67885164/django-rest-framework-pyjwt-token-invalid-header-padding
Eng. Mohamed
So have you gotten it ❓
yes, and it is appears clearly in postman and also printed it in cmd
Eng. Mohamed
token = JWTAuthentication.generate_jwt(user.id) response = Response() response.set_cookie(key='jwt', value=token, httponly=True) response.data = { 'message': 'success' }
Eng. Mohamed
if that, what is the wrong ?
rohittt
Why I am getting noreversematch.. At url
Mirco
Why I am getting noreversematch.. At url
Because it does not respect the pattern you have specified
Mirco
if that, what is the wrong ?
jwt.io Copy and paste the token here and check if it's valid or not
Shiv
Any pointer for implementing Kerberos authentication
Doragonsureiyā
Any pointer for implementing Kerberos authentication
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Shiv
In Django
Mirco
i got Invalid Signature
So it's not a proper JWT token Something is wrong in creating it I suppose
H &
Who may I add to my Network on LinkedIn? DM me please🙂
Eng. Mohamed
So it's not a proper JWT token Something is wrong in creating it I suppose
i added login view in my question to show how i created and saved the token can you please check https://stackoverflow.com/questions/67885164/django-rest-framework-pyjwt-token-invalid-header-padding
Eng. Mohamed
pyjwt
Eng. Mohamed
Which package are you using for JWT ?
https://pyjwt.readthedocs.io/en/latest/
Eng. Mohamed
i am reviewing it to catch the error
Mirco
i am reviewing it to catch the error
Catching the error is just a workaround to avoid the 500
Telegram
Hey i am creating a video chat web app using django how to add authentication to it .....like logged in users can chat with each other
Eng. Mohamed
in so please
Eng. Mohamed
Done
Great Thanks .. Finally it worked, thanks
Mirco
Great Thanks .. Finally it worked, thanks
The source of error was the bytes The decode wants a the token stringified
Eng. Mohamed
The source of error was the bytes The decode wants a the token stringified
yes, i am reading about that now, but in jwt.io, the token is still Invalid Signature

What can I use instead of Ajax in Django? Django rest framework??
Mirco
yes, i am reading about that now, but in jwt.io, the token is still Invalid Signature
You need to remove the starting b and the ' at start and at end Just copy the token without the bytes prefix And it will be rendered by jwt.io
Eng. Mohamed
You need to remove the starting b and the ' at start and at end Just copy the token without the bytes prefix And it will be rendered by jwt.io
no, after i added .decode("utf-8") as per your answer, it removed b and the ' in the start of token automatically, but i found the answer here https://stackoverflow.com/a/40180262/9134690
Eng. Mohamed
Thanks Mirco, Great Thanks

Use React
Thanks👍🏻👍🏻
Doragonsureiyā
Thanks Mirco, Great Thanks
You're welcome! 😊
Macurrent
https://docs.djangoproject.com/en/3.2/topics/pagination/ I was trying to follow this to create pagination but for sure it is not that helpful. Am wondering why this django documentation is always like this
Macurrent
Page of . This was what i was seeing instead of page 2 of 3 ☝️
Ty
Write query and access the contact address by the query.contact_address
maybe I am confused. I thought I have done that, when I access the contract_address however it only shows one entry and not the 50 I am looking for maybe my models are off?
NoBody
Hello guys, I have two models: class Contact(models.Model): title = models.CharField(max_length=50) url = models.URLField() And class UserProfile(AbstractUser): profile_pic = ... phone = ... ... How can I have a relationship to each user has multiple contact and each contact has relationship to one user
Anonymous
Hi guys I need work support on django Pls contact : 9951352583
NoBody
Add foreign key in contact model
Thanks bro, Is there any way to get that from UserProfile model ?
Ty
If anyone has time and could help me out with a question I had with django i posted it here: https://stackoverflow.com/questions/67888276/django-models-many-to-one-not-able-to-access-all-objects-in-a-foreign-key-field
SL
Hi guys Could you pls advise some links where I could find examples and recommendations of best practices for building relations in django rest framework? Thanks Привет Не могли бы вы посоветовать несколько ссылок, где я мог бы найти примеры и рекомендации по построению отношений в django rest framework? Спасибо
..
Guy does django debug works on angular js frontend
..
Django debug toolbar*
Macurrent
Do we have any django freelancers here
Vedant
How do I use django as backend for react native app?
Firdaus
How do I use django as backend for react native app?
https://www.django-rest-framework.org/
Dan
Hi guys! Is there a payment system in America in which a client under 18 years old can register?
Dan
bitcoin, webmoney, paypal etc.
Paypal requires at least 18 y.o.
Anonymous
Excuse me
Anonymous
Best source to learn data science quickly?
Hello
Can anybody help that I know how to integrate Paytm but how to make that transaction between users in our django app
Anonymous
Life?
Anonymous
life
Life?
rakshit
Which is the best framework to use with django as frontend?
DonLarry
Best source to learn data science quickly?
bro, just google it, there are many sources of information, but the only way to learn quickly is to persevere https://www.youtube.com/watch?v=ua-CiDNNj30 https://www.youtube.com/watch?v=-ETQ97mXXF0 https://www.youtube.com/playlist?list=PLeo1K3hjS3us_ELKYSj_Fth2tIEkdKXvV https://www.edx.org/course/subject/data-science
DonLarry
Which is the best framework to use with django as frontend?
i think there is not a "best" framework for frontend (with django as backend), because you can use any of them, so, just use the one you like/want/need more
No
Please anyone tell me that how can i ignore a folder or file of .vscode using .gitignore and then push it to the online server without vscode
Ms Directionless
How to download a CSV file in Django ? Especially when data is scrapped
Macurrent
Page of . This was what i was seeing instead of page 2 of 3 ☝️
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. It's like those comments are not being detected on my django project. Any help here??