_untold_._mystery_
Yeah
To give sample code
Mirco
To give sample code
Look for it on internet, there are many and many articles about it Too long to explain here
_untold_._mystery_
Yeah but not clearly
_untold_._mystery_
In our project to put two database and try to open separate django admin for database based
Mirco
2 dbs ?
Danish
Is it possible?
Мark
Hello do you know is it possible to implement web3 login?
Charly
Hello do you know is it possible to implement web3 login?
Yes. I did a little google search (you should do this more often) and showed this package: https://django-web3-auth.readthedocs.io/en/latest/readme.html
Ms
Guyz which design pattern would you suggest , My project get too complicated and i don't know where should i put login Specifically in serializers when they get nested its make things even worse Could some body give me an hint, link or etc... Thanks
Promiscuous Ferris
Hey guys. i have searched quite a lot for this issue to no avail. i have this project in which i decided to use APIViews from drf. the thing is, i also changed my auth method from django's deafult to rest framework's implementation. and i fed the jwt authentication method to the REST FRAMEWORK settings. the thing is, rest framework doesn't make you install middlewares and it suffices to installing the app. So the way i see it, django's default authentication is still active but is not being used by me views. and furthermore, the rest framework authentication only applies to it's own APIViews, correct? if so, then how is drf able to check the value of the authorization header? because when i was making my own custom authentication, django's default authentication system would check the authorization header, fail to authorize [rightfully so, since i was using my custom method] and my code wouldn't even run. at the moment, the drf authentication works even though the django authentication middleware is also active, but the middlewear is not stopping drf from doing its job. how does that happen?
~Ronnie
I'm using Dj_rest_auth to implement authentication. The APIs I have developed are for a mobile application built using Flutter. All endpoints have been consumed on the app and they are working fine. However, the reset password doesn't provide a better user experience. Normally, if a user requests for a password reset, he or she is sent a link via his or her email. Once the user clicks the link it directs her to a web page that allows the user to update his or her password. The base64 token string is passed to the URL and is obtained dynamically when the user submits the password reset request. How can I encode the base64 token string to a 6 digit number sent via email that the user will key in the app then change his or her password. Then the user's password and the 6 digit number will sent to the server. The 6 digit number will be decoded back to the long base64 token generate by the server to validate the password reset. What other options can I consider? I'll appreciate any feedback on this.
Devendra
Can anyone tell me how to host django project and which platform is best to host
Roy
Can anyone tell me how to host django project and which platform is best to host
Use pythonAnywhere for free Trail. They provide 524mb storage free or a new account
𝙼𝚊𝚖𝚋𝚊𝙳𝚎𝚟
We are not as accurate as robots
Muflone
The error is pretty common and you mixed migrations having two with the same initial number
Saeid
Hello, I am experiencing a weird issue! my project runs very well! but when it gets done all the website gets a mess up! I cannot see the data in the front-end part of my website! I know my question might be general, but I really do not know where the issues are! I got mixed up! Could you pls guide me? :(
Saeid
#static
Thx now the web runs very well! :)
.
2 models, 1 form. Is it real? I have a model related to django user model, and in 1 form i want to fill this 2 models
King of dollars
How to Lear django model’s, aunthetication, urls and other things in deep
clouded
Any reliable source
First step in learning Django is to do the official Django tutorial.
King of dollars
Already did
King of dollars
Doesn’t learn much from it
clouded
Doesn’t learn much from it
Most do, I wonder why you don't. The answer might be the key to a better recommendation.
King of dollars
Idk 🤷 it has very long documentations
King of dollars
What I learn from tutorial and what my fellow classmates were doing .. is totally different . I don’t understand what they are doing.
Anurag K
Anybody help me to do google authentication in django project
King of dollars
That’s why I said I need some reliable resource to learn dhango. And I hope you might help me
clouded
Idk 🤷 it has very long documentations
Are you just reading it or doing it?
King of dollars
Just doing and reading also .. but not much
Anurag K
you can use allauth.
Actually i am not using django in build User models, i use custom model for user registration With that can i use allauth
_untold_._mystery_
Mirco
Yes
why ?
IDRIS
Hey im having an issue With sending an email to a user With Django can someone help me?
Doragonsureiyā
Hey im having an issue With sending an email to a user With Django can someone help me?
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so delete your question here and move to the @PythonOfftopic group and ask there.
_untold_._mystery_
why ?
Some task are there based
_untold_._mystery_
have sperate database for each user in django so django admin has to be in different based on user url id
Sasha Tsikhun
hi! I use Cloudinary to save images and when I add a image to the API (DRF) I have this path (json output): "image": "image/upload/v1704304089/file.webp" but in order to access photos from the frontend, the path must be completed: "image": "https:/res.cloudinary.com/dgma1faft/**image/upload/v1704304089/file.webp**" Can you tell me, how to make path absolute?
𝙰𝚜𝚑𝚠𝚒𝚗
hi! I use Cloudinary to save images and when I add a image to the API (DRF) I have this path (json output): "image": "image/upload/v1704304089/file.webp" but in order to access photos from the frontend, the path must be completed: "image": "https:/res.cloudinary.com/dgma1faft/**image/upload/v1704304089/file.webp**" Can you tell me, how to make path absolute?
Just use an f-string: assuming ur data is in data variable: data = { "image": "image/upload/v1704304089/file.webp" } you create an absolute path for image like this: data['image'] = f"https://res.cloudinary.com/dgma1faft/{data['image']}"
Sasha Tsikhun
but the main thing is that it will work!) thank you!
Sasha Tsikhun
ask him then whats the solution
he is just a front-end dev, he doesn't known python and how to work with Cloudinary) and I am also a beginner...
Sasha Tsikhun
yes but he claims that that solution is bad ¯\_(ツ)_/¯
ahahah) I'm such a beginner, that I belived him..
TI Mercado Industrial
Hello, any course or advice about deploying a Vue + Django + Cloudflare in AWS? Thanks!
Charly
Hello, any course or advice about deploying a Vue + Django + Cloudflare in AWS? Thanks!
Cloudflare is a provider you can't install it in AWS and we can't help on Vue. For django any guide for VPS woill help you for deploying it on ec2
py
I am really happy if some tell me the advantage of using Django over other back end framework like Nodejs or php language?
Aman
any resource in how to integrate django with react??
Charly
any resource in how to integrate django with react??
you don't really integrate the you create an API with django and you consume it with react
Aman
any tutorial for this
Charly
any tutorial for this
For create an API check django rest framework documentation
Aman
okay thanks
Máђ_Møùđ_3dłý🖤
Guys, sorry, the problem is that when we create the data piece, it does not work
I'm
Does anyone know if there is a way to upload large files like 50GB with django?
TI Mercado Industrial
Cloudflare is a provider you can't install it in AWS and we can't help on Vue. For django any guide for VPS woill help you for deploying it on ec2
Thanks! I understand that Cloudflare is independent form AWS, but can we use Cloudflare instead of Cloudfront?
Doragonsureiyā
Thanks! I understand that Cloudflare is independent form AWS, but can we use Cloudflare instead of Cloudfront?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
M. Hossein
Is it possible to make my custom DRF exception handler to catch both drf and django related exceptions? It does not by default I also dont wanna use any cuatom middleware
Jarvis
from django.urls import path from . import views from django.contrib.auth import views as auth_views urlpatterns = [ path('',views.dashboard,name='dashboard'), path('login/', auth_views.LoginView.as_view(), name='login'), path('logout/', auth_views.LogoutView.as_views(), name='logout'), ]
Jarvis
line 8, in <module> path('logout/', auth_views.LogoutView.as_views(), name='logout'), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'LogoutView' has no attribute 'as_views'. Did you mean: 'as_view'?
Jarvis
how to solve
Nawaraj
its as_view() not as_views()
Gigil
Guys I have a project in django 1.1 and python 2.7 and need to integrate a new feature of another team which is in python 3.6+ do any one have experience in making them communicate Like a script in my django1.1 needs to call the script in the python 3.x I tried to do IPC but then i am concerned about the load.
ERMIA
how to solve
Plz get use to read error messages it's trying to tell you as_view()
Victor7
Good morning folks Can anyone help me with the road map of Python backend?