Michael the wolf 🐺
Hi in django , i have this urls.py entry path('myurl/<str:some>/<str:thing>', name='something'')
but i want to make the name include dynamec value same as str:some. How do i do that ?
Michael the wolf 🐺
actually this exactly
path('refunds/<int:someid>', login_required(views.RefundHistoryView.as_view(),"",settings.AUTH_LOGIN_URL+'/someid'), name='refund-list'),
Michael the wolf 🐺
i want to append AUTH_LOGIN_URL with someid defined in path param for refunds url
Muhammad Shofyan
hi, maybe someone can help we with this question :
https://stackoverflow.com/questions/69343960/django-jquery-autofill-data-from-models
.
there someone answer, but still got error..
.
thanks
Praveen
use app name instead of dot.
Nisis
Hve you included the app in your settings.py?
Chauhaan Tushar
yes
Alex
Who can help figure out what this function does? Write in a personal
Doragonsureiyā
Who can help figure out what this function does? Write in a personal
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
Hikmet
Hello everyone. I have configured i18n in my app, but now have an issue.
I used LANGUAGE_CODE as english while testing. But when I wanted to switch default language to russian, it again shows page in english.
How can I resolve this issue?
Hikmet
I read about language preference of LocaleMiddleware, and read that it first looks at cache, cookies and Accept Language, but how can i make it ignore all this stuff and make it look only at settings variable?
Pragati singh
hi all, do you know any specific extension which auto imports in django libraries?
like on getting forgot say for admin i have to from django.contrib import admin which i have to google and that hampers productivity..
do you know any such extension which work well with django? thanks ;)
Siddharth
How to retrieve data from db of a specific user login ?
Nisis
Hadi
how can i connect to mysql db only when i nead it instead of connecting to it all the time?
Nisis
Second, look at the queysets documentation it's super well explained over there
Nisis
Shubham
I want to order based on filed that may be blank.
Hikmet
Guys, have we rights to modify existing middleware in django? For example CommonMiddleware?
I tried but my changes (simple print in process_request) did not affect django workflow
Alex
Alex
just use whatever tool you consider suitable - inheritance, composition and etc
Alex
Hikmet
I know the rules of inheritance and composition, aggregation stuff, as I am not newbie. But the problem is with middlewares it seems that it's not working
Harish
!ALIEN
Maxim
!ALIEN
check this out https://www.smtp2go.com/
!ALIEN
# smtp2go
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.smtp2go.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 2525
EMAIL_HOST_USER = EMAIL
EMAIL_HOST_PASSWORD = PASS
# Alternative PORTS: 8025, 587, 80
Amir reza.t
which server does the client prefer: 1.huawei, 2.alibaba, 3,tencent?
Charly
Amir reza.t
Charly
Amir reza.t
no one
Which Chinese company do you choose?
Charly
Anonymous
Hello can anyone tell how to use sub email of google in django
Anonymous
Like my subemail is afnan@milliyar.com i created this in google
Anonymous
In my submail setting there is no app password options for generating password
Anonymous
I want to use this email as django email service
Y
Hello everybody
I have some error when I try to run my django sever
Y
This is error
CDEBF0453.Question: (fields.E300) Field defines a relation with model'Question',which is either not installed,or is abstract
Y
Someone's can help me please?
Pouya
Mirco
Pouya
Y
Y
*add
Suhaib_0.0
Can I use Python in mysql?
Charly
Suhaib_0.0
Suhaib_0.0
Or I can just postgreSQL.
Charly
Suhaib_0.0
question
Is mysql( command line) similar to( command line) in postgreSQL
Ness
In blog api, we handle users, blogs , categories n comments, do we need to create an api for likes too... ?
Alex
Ashok
In redis, ZRANGEBYSCORE will work with sortedset. I have my code,
redis.zrangebyscore(key, -timestamp, -max_age)
can anyone pls help me with to do the same in set
Alex
Green
May I please know the best source to learn Django from scratch …
Tohid
what is error black listed token ?
Mirco
Everything under Jazzband
Ness
yeah
N what if we don't have any model for likes, just a manytomanyfield with user, then how we can manage them
Alex
Ness
then how u do work with them
Ness
i m still learing and i don't know
Pravin
Some one having solution for multiple images upload in drf...there is no use case...any code snippets also useful
Beyond Dark
What tools have Django that flask doesn't have?