No one
How can I save data from a session in the database. I tried but I am getting "Object not serializable" error
Gabriel
God, there are several people here in the group who don't add anything. Instead be direct and give the answer, they prefer to comment something negative. And when they don't know the answer, instead ignore it or give it to someone more experienced to help, they prefer to say that it's not possible.
Charly
Websocket should be enough
That wasn't one of the options
Vasanth
High sir any body know mail send functionality in django
Vasanth
High sir any body know mail send functionality in django
I am getting error in that can you please help any body
Vasanth
Show the error
SMTP authentication error bro
Vasanth
(535, user name and password are not accepted learn more) like this error
Vasanth
Can you please help me bro
Charly
Yes
https://stackoverflow.com/questions/75021886/gmail-smtp-send-535-5-7-8-username-and-password-not-accepted#:~:text=1%20Answer&text=Is%20the%20standard%20error%20message,as%20it%20no%20longer%20exists.
Charly
Solution is not there
There is a solution in the answer
nyctophile
Hello! I was trying to use crispy forms but I could not make it work and getting this on traceback Internal Server Error: /register/ here is everything I guess Can anyone help me, pls! Any help appreciated, thanks
Eternity
In your views.py
nyctophile
In your views.py
It did not change https://linkode.org/#OUSxDguvpEvpNhX4B0S5W
_
When modifying a Django model by removing a class field, it's necessary to ensure corresponding adjustments in the associated views, serializers, and perform database migrations. Besides conducting a global search and writing unit tests, how can we identify if the variable exists elsewhere in the source code, especially in large codebases? Given that Python is dynamically typed, errors manifest during runtime. However, in statically typed languages such as Go and Java, issues are caught during compile time.
Cyber
Hey i need help on django seo
Cyber
How to do seo in Django
Muflone
What is seo exactly?
Shahzodbek
What is seo exactly?
Search engine optimization
ERMIA
Cyber
I want my website visible in Google search
Cyber
When i search with content
Muflone
the optimization is unrelated to django search on google how seo works and apply the fixes in your templates
Junior
Guys its better custom allauth or rewrite functions??
Auc
I want my website visible in Google search
Add it to Google search console . Can help u do this for few $$
Auc
Then paste the code given to you in your code so Google can crawl through your pages
AZ
Hello everyone, I want to create a form for the products that I want to add to the user’s website. I also want to create a request form. This form contains the products that he ordered and the number that the customer wants of each product.
AZ
I try to search to find the best solution but I couldn’t found the solution
AZ
Can anyone know how to do that
Muflone
it's a normal form, what exactly you're unable to do?
AZ
I have store this store have products i want to add quantity for each product the user can get more than one quantity of this product he can add other products but each product has own quantity
Muflone
this doesn't answer at all to the initial question. do it if you have the ideas clear
Aby
anyone knows what is causing this error? raise ValueError( ValueError: No support for 'b'''. We support: cockroach, mssql, mssqlms, mysql, mysql-connector, mysql2, mysqlgis, oracle, oraclegis, pgsql, postgis, postgres, postgresql, redshift, spatialite, sqlite, timescale, timescalegis
Junior
Guys i need rewrite validators to change message?
Anonymous
Hello, I have a code that uses a module and receives input and output from the terminal. Is there a way to exchange this input/output via API? Or did this piece of code run on the front? Thanks
Doragonsureiyā
Guys i need rewrite validators to change message?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Junior
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] I need change message that this validators return, do you know how i do that?
Oloba
Hello. Anyone to guide on how I can handle an item such that after a certain date it's removed from the db.
Oloba
Let's say expiry date of food in an e-commerce site is due.
Naseem
How to use jwt
Jahongir
How to use jwt
https://django-rest-framework-simplejwt.readthedocs.io/en/latest/
Ogo
Good evening all. Can someone help me on how to integrate paystack payment gateway to my Django project?
Ogo
Thank you
Ogo
hello, i might be able to help.
I will be glad if you help me.
Abdul
Hello. Anyone to guide on how I can handle an item such that after a certain date it's removed from the db.
removing an item from DB might not be wise, why not mark it with a marker e.g. item.expire item.save use celery to schedule the task
Arockia
Hi Guys, Have anyone implemented django log forwarding to SIEM vendor?
Charly
Hi Guys, Have anyone implemented django log forwarding to SIEM vendor?
You don't do that on Django. You usually set up the server with a client to forward logs or something similar.
Arockia
Through Filebeat etc?
Charly
Through Filebeat etc?
Yeah for example
Jitxs
trying learn django for job but don't know how much is enough can anyone list some topics ? ik nothing will be enough as the technology is upgrading itself but for stuff's i can handle in job and as per job requirements as a freshman (fresher)
DiNo
Do i need to learn react basics ? As a backend developer in django ( im a fresher ) they told me learn creating api for react integration
.
Do i need to learn react basics ? As a backend developer in django ( im a fresher ) they told me learn creating api for react integration
Nope. You don’t need to know about React to create backend APIs for it. In fact once you have APIs in place, whatever the front end library they use shouldn’t matter to you.
Jitxs
CRUD, SQL, REST APIs, unit tests
for rest api do you mean django rest framework ?
Charly
But rest API is a pattern to design web services
matija
mark winterbottom has a very good course on django rest
Ædel
hello, i'm following this tutorial, and at the end everything works well. except one thing, google log in. I receive an id_token from my React frontend (and using @react-oauth/google) and i send to backend but it gives me an error: invalid id_token. I can create users, login, do everything mentioned in the tutorial but this one thing seems to not work. what could be wrong?
Ædel
this is the responsible url: (included with /api/auth/ prefix in the core app) path("google/", GoogleLogin.as_view(), name="google_login"), this is the GoogleLogin view: (frontend runs on port 7200 class GoogleLogin(SocialLoginView): adapter_class = GoogleOAuth2Adapter callback_url = "http://localhost:7200/" client_class = OAuth2Client
Ædel
finally, this is how i send my request from the frontend: function App() { const responseGoogle = (response) => { axios("http://localhost:8000/api/auth/google/", { method: "POST", headers: { "Content-Type": "application/json", }, access_token: response.credential, }); }; return ( <div> <GoogleLogin onSuccess={(credentialResponse) => { responseGoogle(credentialResponse); }} onError={() => { console.log("Login Failed"); }} /> </div> ); }
Zu
Has anyone here ever deployed django to a virtual machine? I have previously configured django with gunicorn and nginx. When I run sudo nginx -t everything is ok. But when I opened the IP address of my virtual machine, it turned out that my django program seemed not to be detected and the page containing the connection has timed out, is this because of my DNS configuration? or something else?
Anonymous
Hello All, I'm facing a serious performance issues on my Django project after moving media files in to S3. Before the Api response time is less that 1 sec, now it takes more than 10 second. Anyone faced this issue before? Using Django-storage and Boto3