Dahmer
Hello
Dahmer
I'm working on this project where django admin uploads file and let the users download it..I've been able to upload the files through django admin and save it in the media root but I can't seem to understand how to link the download button with each file url
..
Guys i have a question. Can i use redis for holding verification code rather than saving this code in the database ?
Seifeddine
..
I don't like this idea. So is it enough to connect in django settings and i can access redia server from any part of my app ?
cj
..
Yeah but the trick is it doesn't hold the data forever.
..
cj
No.
what do you mean by "verification code" then
..
Send verificatiom code to phone.
..
And after user enters that just drop it.
..
Then where to store this ?
cj
..
Guess so. Need to write extra code. Like after user got his token, I delete the value from "verify code" table ?
..
Or. I change his status to verificated: ture. Then send him to login page. He sends me login request I check his status if it is active. I assign him token ?
cj
..
Does tokens need to be stored in db also ?
cj
..
Thanks.
cj
Thanks.
but you can always take a look to JWT, if you don't like the idea to store it persistently
cj
..
Did it. But its kinda hard for me to get it. In sense of implementation.
uquacore
uquacore
Don't store the tokens in your project since it's not safe
..
In env ? Isn't it complicated ? How am i gonna parse them after i stote them in a file?
Muflone
..
Will take a look. Tnx.
cj
..
cj
User auth.
then no need for .env things, read about JWT
..
So help me out a little. I am writing code according to an example. I noticed that in the example there send_sms.py module in which basic drf token being created for user, and also there basic token being created in login. I am confused about this.
..
Great. I apreciate it.
Shear
Generic detail view ActivityDetailView must be called with either an object pk or a slug in the URLconf. how do fix this type error all my urls are okay
Shear
Hello, suggest any hosting services that offer free tier please for a django project
Adarsh
Hi 👋, can anyone help me with this problem :- when i submit the form using post method after getting all variables values then i want to clear requests variable ??
Tuan
Kumar Shreyansh
Siva
Hi I have a error i will run the program but there is no out put from my program but they have no error msg
vaseem cholakkan
You can use channel_layer
one of my friend recommended me using celery for this which is better if you know celery and this one ?
Tamerlan
Tamerlan
https://youtu.be/FcVwDEcu6K0
vaseem cholakkan
I used channel_layer i can send you a video
yes i got a link from one of the user but my friend recomended me to use celery which is better i also have to make premium subscription plan in my project
Tamerlan
Adnan
Hi does anyone know django deployment on digitalocean APP PLATFORM course ?
khalelovaD
hello, I had a problem with authorization through google, and by the way, when I attached the server url to the google user console, this error occurs and I don’t know how to solve it, I entered the client id and client secret correctly, but I don’t understand what the error is, please help
Error 400: redirect_uri_mismatch
The application cannot be signed in because it does not comply with Google's OAuth 2.0 policies.
If you are its developer, register the redirect URI in the Google Cloud Console.
Request parameters: redirect_uri=http://127.0.0.1:8000/social-auth/complete/google-oauth2/
Frazil
Follow the documentation once again its not configured properly
uquacore
https://dpaste.org/XOE0W
uquacore
https://dpaste.org/XOE0W
I have an issue with realizing a sign up authentication using Social Auth module in Django. I'm providing a code snippet so maybe any of you has an idea of what is wrong.
IGA
please tell me if it is possible to upload a Django project to Github for a visual check of the site
IGA
I checked in Google but there were problems when unloading venv
and I don’t understand how to include a site on github hosting
sarn
sarn
It offers free hosting
IGA
Do you mean this one
Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud.
sarn
Yeah
I think if you need to know how it'll look
You need to use that
Nerd
Anonymous
ProgrammingError....
Relation "product_brand " does not exist
Line 1: SELECT COUNT(*) AS "__count" FROM "product_brand"
How can i solve this error??
Sanitizer
I am experience this in my project when I run python manage.py migrate
django.db.utils.ProgrammingError: relation "accounts_user_user" does not exist
vaseem cholakkan
Sanitizer
vaseem cholakkan
then you might have missed any migrations do migrate
Sanitizer
Check your inbox for screenshot
Doragonsureiyā
Check your inbox for screenshot
Can i send you a private message?
No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
Doragonsureiyā
Check your inbox for screenshot
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Shear
How do fix this error: role 'postgres' does not exist on dockers postgres
Мark
Hello everyone, I am sending an email from the website domain mail during registration, I do everything as it should be, but nothing is sent
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.cointranche.com'
EMAIL_USE_TLS=True
EMAIL_PORT = 587
EMAIL_USE_SSL=False
EMAIL_HOST_USER = 'confirmation@cointranche.com'
EMAIL_HOST_PASSWORD = '#########'
what could be the error?
cj
Мark
It was only one message, now it just does not send any messages
Manikanta
Friends I need without refresh the page when I click the submit button could you please help me on that
Cloud Service