Вин Король Саксов
Foreignkey() any one can explain???
This guy --> https://google.com
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
How to retrieve data from db of a specific user login ?
Firstly, have you assigned and data to be retrieved?
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
Hadi
What do you mean by when you need it?
i mean when i want to execute some queries im not talking about django
Hadi
i mean when i want to execute some queries im not talking about django
i want to execute those for example : if item == 'show_members': db_connects db.execute('SHOW MEMBERS') db_disconnects
Shubham
I want to order based on filed that may be blank.
Shubham
I want to order based on filed that may be blank.
If there is a value then order queryset order based on it or else do not order. How can I do it?
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
just use whatever tool you consider suitable - inheritance, composition and etc
Hikmet
what do you mean by "rights"? If you need to customize some part of django - then do it.
I mean not customize, I mean override existing middleware. I tried to edit method by printing some random stuff, but it does not see the changes
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
Hikmet
I guess you're doing something strange.
I wanted override LocaleMiddleware which is dealing with internalization, but my changes did not affect workflow
Maxim
Try sptm2go
smtp2go?
!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?
Amir reza.t
ask the client
Which works best for the Django project?
Charly
Which works best for the Django project?
no difference at all between these for django
Amir reza.t
no difference at all between these for django
What is your choice between these?
Amir reza.t
no one
Which Chinese company do you choose?
Charly
Which Chinese company do you choose?
I don't use chinese companies
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
This is error CDEBF0453.Question: (fields.E300) Field defines a relation with model'Question',which is either not installed,or is abstract
make sure makemigrations and then migrate your change in models, and also add your app into the list of INSTALLED_APP
Y
did you migrate your model?
Yes i had migrate my model Now i want to do makemigrations
Y
*add
Suhaib_0.0
Can I use Python in mysql?
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
cj
question Is mysql( command line) similar to( command line) in postgreSQL
similar, yes, they both are SQL, but PostgreSQL has more features and follows SQL standard a bit better, anyway this is offtopic convo for this group
Ness
In blog api, we handle users, blogs , categories n comments, do we need to create an api for likes too... ?
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
Ness
how else you will handle or manage likes?
I don't know, i m just asking, do we need to ?
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
Ness
then how u do work with them
Ness
i m still learing and i don't know
Вин Король Саксов
N what if we don't have any model for likes, just a manytomanyfield with user, then how we can manage them
Learn how many to many field represented in sql. It is just another table but with only ids, and you can count likes on that table for post, user etc.
Ness
Learn how many to many field represented in sql. It is just another table but with only ids, and you can count likes on that table for post, user etc.
I did learned all this stuff about manytomanyfield, n did manage all the likes of myblog app, i m just wondering how we can like a post through api, or we don't really need to implement that ?
Pravin
Some one having solution for multiple images upload in drf...there is no use case...any code snippets also useful
Mirco
Some one having solution for multiple images upload in drf...there is no use case...any code snippets also useful
https://stackoverflow.com/questions/39645410/how-to-upload-multiple-files-in-django-rest-framework/39668395#39668395
Beyond Dark
What tools have Django that flask doesn't have?
Doragonsureiyā
What tools have Django that flask doesn't have?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python