Ivan
okay
Husen
/api/auth/verify-email/?otp=527870 How can I get numbers starting with otp in request?
L¿<>
Receive him from HTTPREQUEST object
L¿<>
in detail?
Param = request.GET.get(&#39;otp&#39; )
Arsham
Hey Everyone, I have a problem with my Django project. I&#39;m creating a website, my problem is, when user is loged in, i want to remove the login button and register button. I have been do some changes on my base.html file, but changes are not define. What should i do?
Arsham
just check if request.user.is_authenticated
let me send you the code file
Arsham
just check if request.user.is_authenticated
https://dpaste.org/2Aq5s This is the base.html file
Mirco
https://dpaste.org/2Aq5s This is the base.html file
request.user.is_authenticated unless via context you didn&#39;t map the user ctx var to request.user
Mirco
what should i do?
Change the if statement with the word I told you not user.is_authenticated but request.user.is_authenticated
Mirco
It depends on your authentication, if it&#39;s properly set or not Otherwise it&#39;s normal it doesn&#39;t work
Mirco
Arman
Out of your experience, what&#39;s the main reason of miscellaneous migration errors? As for now I can formulate it like this &quot;there is difference between migration files and actual db&quot; , pls comment this
Rishav
I&#39;m making a ecommerce website, my css files get loaded but if I&#39;m changing something in the css, its not getting reflected. please help with it.
Rishav
done still not working
अज्ञानी
There could be many reasons for this.
Rose
User Kumneger has 1/3 warnings; be careful! Reason: do not send PMs without the recipient&#39;s consent; ask the person in the group first (rule #9)
Gugu
I need help with the deployment of the Django project, nginx or apache. I can use both, but I can&#39;t find any helpful articles. Please help me with this
Abu r
I need help with the deployment of the Django project, nginx or apache. I can use both, but I can&#39;t find any helpful articles. Please help me with this
There are many tutorials and articles. This one look good for me. I was actually referring to a YouTube video. https://medium.com/@ganapriyakheersagar/hosting-django-application-with-nginx-and-gunicorn-in-production-99e64dc4345a
Rose
User Ruchitha has 2/3 warnings; be careful! Reason: crossposting
Luiz H.
&quot;If you set EMAIL_USE_TLS, Django isn&#39;t using smtplib.SMTP_SSL but smtplib.SMTP. It then does starttls() before login(). Port 587 is correct. For implementation details, see django.core.mail.backends.smtp.EmailBackend.open() &quot; my resetpassword is not working, (it&#39;s getting timeout on trying to connect ) , and I already tested manually using smtplib.smtp_ssl , and it works on test. but , where am I change it on reset PasswordReset?
Seth van Dalstein
hi I`m creating online store. can you advise frameworks like django-filter and django-allauth, which can help me with functionality to create interesting features as recomendations, carts system, personal cabinet, admin-panel, rating, searching products dn etc.
Toqa
Hello , could anyone help me finding projects to practise concepts of backend using django?
Gugu
There are many tutorials and articles. This one look good for me. I was actually referring to a YouTube video. https://medium.com/@ganapriyakheersagar/hosting-django-application-with-nginx-and-gunicorn-in-production-99e64dc4345a
I&#39;ll try this and will come back to you. I&#39;ve followed these all the step. It work fine when gunicorn run it as a http. Bt as soon as I turn to https, then it requires firewall lets encrypt in server. I&#39;m using plesk nginx
Abu r
Kumneger
Hey😊, I am looking for a good book that could teach me well about django. Google couldn&#39;t help enough. Can you recommend me one or two or even send me the book if you have it in pdf and it wouldn&#39;t be a problem. Thanks😊
Rose
Hey😊, I am looking for a good book that could teach me well about django. Google couldn&#39;t help enough. Can you recommend me one or two or even send me the book if you have it in pdf and it wouldn&#39;t be a problem. Thanks😊
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial (https://docs.djangoproject.com/en/dev/intro/tutorial01/) * Tutorial from MDN (https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django) * Tutorial from django-girls (https://tutorial.djangogirls.org/en/)
Shawna
Hi guys! Now I have a model called &quot;Product&quot; this product is consumed by different users with different languages what is the right way to make translation so if different users languages im using DRF
The Inspired
this way, there will be less load on the DB
Shawna
Do you really need to use translation on the backend? I recommend using it on the frontend
you mean i should get model info in defulat language then for example fetch third party like &quot;google translation&quot; to translate model every time ?
The Inspired
yep. you can either use 3rd party service, or write the translations yourself
The Inspired
and store it as key-value pairs in the frontend folder
Shawna
yep. you can either use 3rd party service, or write the translations yourself
I don&#39;t think this is possible due to how expansive translation is is there any other way
The Inspired
3rd party service is your only option.
The Inspired
just dont store the translated value in DB.
The Inspired
store it in local storage
The Inspired
I don&#39;t think this is possible due to how expansive translation is is there any other way
also its not that difficult. Write a script to fetch data, translate it and write it to a file. eazy peezy
Shawna
🙇🏼‍♀️ what worries me is running out of local storage
Shawna
3rd party service is your only option.
i know but let&#39;s say i got &quot;hello&quot; word that is translated to arabic then for each arabic user i have to fetch from google and each new user i pay for something that i already did
The Inspired
🙇🏼‍♀️ what worries me is running out of local storage
nah, it wont. just make it to erase the contents of local storage when user navigates to another page and/or reloads the page
The Inspired
Rose
This is not a Django specific question, please delete your offtopic message. If it&#39;s a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Shawna
Okay
thank you understood
Anonymous
Hi, Does anyone have an example of logging in with Telegram in Django?
Charly
Hi, Does anyone have an example of logging in with Telegram in Django?
Telegram doe snot provide authentication for external apps
Hadi
Hello , could anyone help me finding projects to practise concepts of backend using django?
Start with a blog project. find a free template and add it to your django project.
Arsham
Hey there I&#39;m currently developing a Django blog, but I&#39;ve encountered an issue with user logout functionality. Can anyone help me identify the problem and suggest a solution? Whenever the user clicks on the logout button, it redirects to a blank page at &#39;members/logout&#39;, but there isn&#39;t any logout functionality within the &#39;members&#39; folder. I&#39;m quite stuck at the moment. I&#39;ve been following a step-by-step tutorial on a YouTube channel, but unfortunately, the logout feature isn&#39;t working for me. Any insights would be greatly appreciated. Why is this happening?
Arsham
Show us your views.py and urls.py
I fixed it, thanks, the problem was from base.html
khaled
I am facing a problem. I am using DRF and I want to upload an avif image but I heard that pillow does not support avif uploading
Gugu
I&#39;m not good at plesk ,but installing let&#39;s encrypt might solve the issue
As soon as I install it. My all domain got haulted as they&#39;re running on Apache Server using nginx Proxy
Reignbow
I have trouble understanding reverse(), I tried documentation. Still not getting that how to reverse the urls?
Jamie
Generic api views are not supporting swagger? What should I do for this
Kingamir86
I have question how can I add my language to django docs and how can I translate it please if you have any experience in this field guide me please
Jamie
Generic api views are not supporting swagger? What should I do for this
Should I write apis on Apiview instead of generic api views
Hamza-12
Why do we use forms in django instead of writing in models and views
Hamza-12
What are the benefits of using forms
Mirco
What are the benefits of using forms
How do you think we can receive data from users to be saved then into models ? Thanks to forms
Samuel
Why is it difficult to upload django app online