Anonymous
it always eats my head
Anonymous
should i concern too much about security?
Sadra
It's a bit out there. Something separated from the Authentication process. It's kinda session management.
Anonymous
Sadra
should i concern too much about security?
Security is important. Django does a lot of things. In spite Django does some configurations, you have a lot of additional options that you might need to use in your production.
Currently on Django3.1, some other options has been added.
Suggest:
https://docs.djangoproject.com/en/3.1/releases/3.1/#security
Anonymous
Anonymous
Sadra
Sander
How can I do a cumulative sum of a value in my model grouped by date?
Mirco
Pikachu
How to do multiple create at a same request and if any data is duplicate than the return the duplicate data
Sander
Study annotate and aggregate on Django docs
I have the following query rn:
pl_cum = Tip.objects.values("prediction__fixture__date__date").annotate(total_pl=Sum("pl")).filter(channel__name__contains="Premium").order_by('prediction__fixture__date')
Sander
Mirco
Marcos
sorry its true
Mirco
Never done something like this yet, I cannot help u so much 😯
Bogdan
hi guys. Who could help me with project?)
Bogdan
I have some troubles with urls on my production
Bogdan
I need to show my html on https://1/2/3(example), but idk how i could realize it o django
Bogdan
it looks like easy task, but i can't finish it
Mike
Hello everyone, I have problem with login what not working. here is a code of views link of code: https://repl.it/@mikemikel/ElderlyBruisedHertz#model.py when I click submit in login.html its give its error "ValueError at /login/
The view stamit.views.login didn't return an HttpResponse object. It returned None instead.". who can helping please?
Sander
Mike
Hamirul
hello gais . one question here
Hamirul
does anyone know what is the main issue here ?
django admin dint show the admin site eventho i declare at the url src ?
Hamirul
from django.contrib import admin
urlpatterns = [
url('', views.todo, name='todo'),
path('admin/', admin.site.urls),
path('api/', include(router.urls)) # add this
]
Ivan
Hi everyone, can anybody help me on django_restframework
Ivan
?
Ivan
With some guides and tutorials links apart of the oficial bibliografy?
Shiva
Ivan
Anonymous
Anonymous
from django.contrib import admin
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include(router.urls)),
url('', views.todo, name='todo'),
]
Hamirul
ok done . tqsm from malaysia 🇲🇾
Shubham
is there any way to to make API live so that the frontend guy can better consume it?
Shubham
I have a requirement to implement user groups of Admin(CAN ADD ANY USER), Teacher (Can add any student), student(can only view his profile) in DJANGO FRAMEWORK. how to implement this using django groups?
Anonymous
Anonymous
Sadra
Sadra
Commodity
Should I use a database for handling messages or message queues?
Commodity
cj
Hamirul
Sai
Hi friends while I am rendering the data in the form then I am getting the error as " No reverse match"
" App_name with arguments () not found. Pattern tried[]"
But i have given the urls perfectly but i am not getting why I am getting that error.
Can u guys please help me with this
Anonymous
Can you share your urls.py and snap of error
M
Is there any way to calculate reaction time of users in milliseconds? (The time it takes from opening a page to clicking on a key)
Sadra
Sadra
Sadra
M
Doragonsureiyā
Read the rules before any activity: @PythonRules
Sh
Assalamu alaikum. is it possible to use prefetch_related operation inside select_related?
class Student()
university = ForeignKey(University)
class University()
....
class UniversityName()
university = ForeingKey(University,related_name="name")
I want to get UniversityName from Student object. I did:
student = Student.objects.select_related("university__name").get(pk=1)
this gives me error how to make such query properly?
Mirco
What d'ya wanna know ?
Mirco
No
R.U.S.H.A.B.H
Does anyone has implemented the custom user model ... I want the explanation of abstract class with logic if anyone can explain it with an example 🤔
Mirco
Mirco
R.U.S.H.A.B.H
Mirco
Commodity
R.U.S.H.A.B.H
Mirco
Mirco
Богдан
Ghorz
Ghorz
Although I entirely swapped out username from the Model.
Ghorz
Only email and password
R.U.S.H.A.B.H
Ghorz
I also fused it with Django allauth
Ghorz
So you can do all authentication
Ghorz
Ghorz
pip install django-bootstrap4
Ghorz