No one
How can I save data from a session in the database. I tried but I am getting "Object not serializable" error
Charly
Gabriel
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
Vasanth
High sir any body know mail send functionality in django
Charly
Vasanth
(535, user name and password are not accepted learn more) like this error
Vasanth
Can you please help me bro
Charly
Vasanth
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.
Vasanth
Vasanth
ERMIA
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
Eternity
In your views.py
nyctophile
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?
Muflone
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
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
Muflone
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
Check your settings file
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
Aby
Junior
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/
Nerd
Ogo
Good evening all.
Can someone help me on how to integrate paystack payment gateway to my Django project?
Abdul
Ogo
Thank you
Arockia
Hi Guys,
Have anyone implemented django log forwarding to SIEM vendor?
Arockia
Through Filebeat etc?
Charly
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)
matija
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
Charly
Charly
But rest API is a pattern to design web services
matija
matija
mark winterbottom has a very good course on django rest
Joseph
Æ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