No_name
I have been trying to send a password reset mail using django and the mail is being sent but when i click the link that i get in mail it shows following error
No_name
TemplateDoesNotExist at /password-reset-confirm/Nw/set-password/
HamidReza Fekri
hello how to solve this problem I get 'str' object has no attribute 'Student' error https://dpaste.org/fSEO8
Doragonsureiyā
hello how to solve this problem I get 'str' object has no attribute 'Student' error https://dpaste.org/fSEO8
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Pulkit
Instead of using SQLite on Heroku you can configure your app to run on Postgres.
Maxim
Why SQLite data deleted?
any files are deleted with the instance stop
Pulkit
Why SQLite data deleted?
Dynos (light weight linux containers) are restarted (cycled) at least once per day to help maintain the health of applications running on Heroku. Any changes to the local filesystem will be deleted after the restart. The cycling happens once every 24 hours (plus up to 216 random minutes, to prevent every dyno for an application from restarting at the same time).
Asssshhhhhaaa
I have to use query params in the api where I have to do filtering and sorting by the same field please let me know if anyone knows the process
Asssshhhhhaaa
Using mongo
Nelson
Good morning. please I had a problem saving the data of my form in the django database, I can not retrieve the data of type select of my form, the error display is MultiValueDictKeyError at /offreEmploi
demon
demon
The example is very clear
kuldeep
hi, everyone, can anyone help me out with this, I am not sure why I am getting this error every time when I try to move something from 1 app to another File "/media/php/DRIVE/Project/192/192ATS (May 30)/Binance/plans.py", line 19, in PlanMember currency = models.ForeignKey(binance_models.Currency,on_delete=models.CASCADE,related_name='members',) AttributeError: partially initialized module 'Binance.models' has no attribute 'Currency' (most likely due to a circular import)
Muxtoriddin
I have the problem with django that debug is true everything is good but debug is false server returns error 500.
Rahul
Any one have complete training cheet sheet of django
Doragonsureiyā
Any one have complete training cheet sheet of django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
i want to query objects from two deffrent models in one set please help below i am mentioning my model and view https://dpaste.org/J4o3i i want merge both lists to be merged together . if sorce is same in both of the lists there values should merge together and make .
Alex
what error?
Somebody
what error?
ypeError - expected string or bytes-like object.
Somebody
*T
Alex
complete error message will be helpful
Somebody
Alex
https://dpaste.org/qbfJh
do you get any input requests, for ex for model field default value while migration
Юлиан🦉
I m confused with signal doesn't work (at list, print function in the beginning of handler is never executed after creating object in admin), I tried to move signals content from the ending of model file to apps.py with no result again. https://pastebin.com/Pc2FLzXu
Юлиан🦉
Have filling like I m saving it wrong way, so tried post_init - had debuger notifications about signature, but no any effect
Tokir
You have to do some changes in apps.py in ready function import your signal and also changes in init.py
Tokir
https://youtu.be/W8MLlwvSS-U
Tokir
This link will help you
Юлиан🦉
Also ran through debugger - signal is connected, but callback isnt called, is there any statements which I should care about? I did the recomendations from the doc about app.py, but it wouldnt be signature exceptions, I would say that admin site doesnt call save()
SomeBody
Hello Django Service Objects Anyone familiar with this library?
Bayo
Is there any tutorial that have user privilege right user in django
Doragonsureiyā
Hello Django Service Objects Anyone familiar with this library?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
vishnu
How to decode worker error?
Charly
How to decode worker error?
we dont know what error are you talking about
Charly
Answer smart question should be a skill too🤭
Specially when you are ansewring to a bot
🇦•🇳•🇴•🇳•🇾•🇲•🇴•🇺•🇸
How to decode worker error?
you have to force wanda to say "what error"😂
karakurt
Hi. I'm parsing some data from a site to my database. And I need to render that data in the webpage. I think it's overhead to use Django for just rendering templates. It seems to me this is the case to use Flask. Am I right?
Asssshhhhhaaa
Please let me know the query
Anton
Hello! Please, help. I have two models. Movie and tag. The movie has an M2M relation to the tag model. I'm trying to filter by movie name and tags. Well... then I parse the user's request and get a QuerySet with the given tags and movie name. How to filter by M2M? i would like to do qs.filter(name__iexact=search, tag_list__contains=tag_objects) but the contains method doesn't exist for M2M
Netra
Hi.. What to do if swagger is not loading in server after taking code live
Мark
Guys, what have I do if when I save my html file in vs code, all jinja constructions become one line?
Мark
I can show it in video
To Infinity & Beyond ♾
someone please send me a great link on django pdf file upload tutorial that i can follow
Sama
Hello, does anyone know how to create an announcement in Django?
Sama
Notification
Мark
code format extension?
Only html snippets but if I download django extension, everything is okey but I have to open and close all html tags manually
Neo
Hello, does anyone know how to create an announcement in Django?
need more context, how do you intend to deliver these notifcations to your user?
Neo
you can do long/short polling you can use sockets notifications also exist via email/text message
Sama
need more context, how do you intend to deliver these notifcations to your user?
For example, I want the user to register on the site to receive the message "Registration completed successfully".
Neo
If you just want to show an alert box its as simple as triggering it from your view depending on a condition, you still haven't made it clear how or where you would like to deliver these notifications
Alex
Website
django messages
Neo
Website
Like alex said you can django messages to store temporary data. In the view you redirect your user after registration you can have the view pull it from django messages and display it in an alert/modal(google javascript modals)
Netra
Hi.. What to do if swagger is not loading in server after taking code live
Bhushan
Hi guys any one help me to solved django assignment
Doragonsureiyā
Hi guys any one help me to solved django assignment
Read the rules before any activity: @PythonRules
Doragonsureiyā
Hi.. What to do if swagger is not loading in server after taking code live
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.
Mykola 🐲🐉🃏
👋 hello everyone could someone advice, best way how to choose different db for different env? if env = local: use local db else: use another db
Юлиан🦉
Mykola 🐲🐉🃏
if else condition exactly in setting or do you know more elegant/effective way to do it?
Andrej
Has someone experience in running Django on Kubernetes? Are there any best practices for that scenario? Some people say the architecture of Django is not made to run in a containerized environment. What do you think?
Neo
👋 hello everyone could someone advice, best way how to choose different db for different env? if env = local: use local db else: use another db
I achieve this by having two different settings module. One called production.py and another called development.py I modify wsgi.py and manager.py to use the settings module specified in a .env file. You could also stick with one settings module and use dj_database_url package alongside a .env and use different database connection strings in your production environment and development environment