Andrej
Has someone experience in using Django in a cloud native environment? I really like Django, but I'm not sure if it is the right component when it comes to Cloud architectures. Maybe someone has advice in this combination.
Karz
Can anyone suggest me the best YouTube course to learn Django from Scratch to advanced
Suhail
i cannot upload my django file on aws server.can anyone help me.
Ivanko ✙
As soon as I create a group in the admin panel, it is assigned to all users by default. Who knows what could be the reason? I have a custom user and there are three roles in the project
.
As soon as I create a group in the admin panel, it is assigned to all users by default. Who knows what could be the reason? I have a custom user and there are three roles in the project
Probably you have some signals implemented somewhere. Try searching your whole codebase with the word “receiver” if it’s not too plenty.
dani
hi , i need to use a varibale from a method outside the class inside a method in a class the two methos are located in the same file view.py who can help me
dani
could be great but in this group is no allow use pictures
Doragonsureiyā
could be great but in this group is no allow use pictures
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
dani
https://linkode.org/#8LRugeYV5FME2txcjNgmt1 in this is my code i need to use the variable value from the line 3 in the line 18 hoiw can i do this?
Mahmood
https://linkode.org/#8LRugeYV5FME2txcjNgmt1 in this is my code i need to use the variable value from the line 3 in the line 18 hoiw can i do this?
I don't know what you are doing But your logic is not good In the first method you get the variable value per request And you want to use it in different method... Instead of this why don't you just get the value of this variable from the request in the line 18 I think you can access the request inside the context my_var = context["request"].POST.get('format') I'm not sure about that but if this logic work for you, try it
Nitesh
Anyone know how to write api in django for keycloak
Doragonsureiyā
Anyone know how to write api in django for keycloak
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
Ravikumar
Hi everyone , when i pull the code into production iam getting some problem in migrations, if i change the in models its not alter in production
Ravikumar
How to manage migrations in production and local system
Doragonsureiyā
How to manage migrations in production and local system
Just read the documentation and do it
Amir
Hello friends, have a good time I deployed the project to Ubuntu server When the ip of the server enters the project, it comes up This project has a management panel, the IP of the management panel is different from the IP of the server When I try to enter the management panel, it gives me a connection error with the service I got a log request and it gives error 404 Where do you think the problem is? What should I set so that the management panel server is connected to the server and the project?
Alexey
hello. i have model Category. i want typing in some function its var. what i have to use? def func(model: ???): print(model.objects)
Hunter
Can anyone suggest a free django project deployment site?
khojibola
join() argument must be str, bytes, or os.PathLike object, not 'method'
khojibola
why i am getting this error?
𝙰𝚜𝚑𝚠𝚒𝚗
khojibola
title=request.POST["title"] poster=request.FILES['poster'] url=request.POST["url"] desc=request.POST["description"] addimg=request.FILES.getlist('addimg') # try: k = models.Portfolio.objects.create( user=models.Profile.objects.get(user=request.user), title=title, poster = poster, url = url, desc = desc )
khojibola
this is my views
khojibola
and error also in this field
khojibola
but i could not find it who can help me
khojibola
aa i think i found
khojibola
thank u
Alexey
it seems that i cant typing setattr(cls, "objects", manager) 🙁 that bad
i found way 🙂 make own interface, and i got autocomplete in IDE class DjangoModel(Model): objects: BaseManager def func(model: DjangoModel): print(model.objects)
Tiger
In python you can write script. Or you can write management command in django This will easy your work....
Script for what? Do you mean readin excel and transfering it into sqlite?
rais
hello, I want to deploy a Django app to production and I was looking for solutions to store secret API keys I was thinking to use dotenv but I don't understand if it's safe using this method in production any opinion?
Neeraj
Yes. Sqlite and mySql or Postgres or as you want.
Boukar
De
Doragonsureiyā
De
What are you talking about?
Mr_47
i am deploying my django application but i what user to get email activation link direct in their own email account
rais
I use python-decouple. Don't knw an env file can be a threat if it is not shared publicly.
yes decouple is another option but (for what I understand) it still stores keys in an env variable
rais
did u use it in production?
Hunter
https://railway.app/
Thank you so much
Danilo
Hi guys, I’m facing a problem with django paginator and bulk_update, i have 4 pages but paginator list the records on the first page after that the records come with 0 but paginator still looping
rais
U can encrypt ur env variables
ok but when I write them in the env file I have to write them normal as strings right? then when I want to use them (for example) as parameters of a function in the view how do I handle encryption and decryption?
rais
thanks anyway
rais
maybe with a key stored in the admin record could be a solution?
dani
```@login_required def formato(request): if request.method == 'POST': my_var = request.POST.get('format') print(my_var + "este es el formato") return HttpResponse("exitoso") return HttpResponse(" no exitoso") """ elegir fondo """ class FondoView(LoginRequiredMixin, TemplateView, View): template_name = 'fondo.html' #print(requests.COOKIES.get('key')) def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) #print("otra vez "+ my_var) all_records = Image.objects.all() filtered_records = None print(my_var + " nueva formato")
dani
how can i use the my_var variable into the def get_context_data method ?
ALi
Hello, if anyone has worked with pwa (django-pwa package), please tell me this problem: When I want to download a PDF file that I put in the form of a link through the database, in addition to the download link, the service worker source is also added to the page along with the download link. I don't want to show me the source of this serviceworker.js file, how can I handle this?
Debopam
Hello can anyone help me , actually I am working on a chatapp project but I don't know why my chatsoket is not connecting , in routine.py file i configure chatsoket path is : ws/room_name/ but when I run its showing not found i don't know why it's happening, i searched a lot but I haven't found any solution, if possible then please help me anyone please
Trident of fate
Hello, can anyone explain how to add custom link in myapp menu block in the admin panel?
Debopam
You can search in Google for it https://realpython.com/customize-django-admin-python/ and also you can read this article
AH
Hi, I need help please.in my application when we search something after 1 minute 4 seconds.it gives 502 ( bad gateway) error..i am thinking because of timeout..any idea how to increase time in django
Full-Stack Python Developer
What is best practice for hosting django ? Currently running in Django+gunicorn+nginx
Kirill
Hi! How can I run debug panel in Sitemap to look SQL? For examle: http://127.0.0.1/sitemap.xml with debug panel?
Moni
I am new to django, i am facing error no migration to apply
hehecatto
I m having a problem in django.......-bash:./manage.py: permission denied
Mazin
Or: chmod +X manage.py
and run ./manage.py it should work!
hehecatto
and run ./manage.py it should work!
Thank you...I will try it
Reignbow
Anyone knows good resource for learning advance JavaScript? Try mentioning free resources
Doragonsureiyā
Anyone knows good resource for learning advance JavaScript? Try mentioning free resources
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.
Denes
name 'httpResponse' is not defined
Denes
how to solve it pl
Maxim
Denes
from django.http import HttpResponse
Denes
but still bring error