cj
you have to give more context - what OS - what python version - what django version - what terminal - are you using virtual environment? etc...
cj
reading minds is not a well paid job nowadays
Anonymous
ok, sorry :D Wait, i'll give all info
Anonymous
Windows 10 Pro python 3.7.3 django 2.1.7 any terminal - cmd, powershell, cmder (bash) i'm using virtialenv
cj
oh... Windows... well... I can't help you here, I haven't used windows since 2004 🤷‍♂️ maybe there will be anyone else that can help you 🙂
Anonymous
:D Its up on the company I work..(
Anonymous
i prefer linux
Anonymous
Well, I can't do it here for some reasons. But I can try to run project on ubuntu later to figure out is it due to OS
Anonymous
good idea, i'll try now
@(*_*)@
hi! Please tell me how to make an "id" with the name of the region. I use the following type of presentation in views.py: sef = Items.objects.values ​​('codeobj__region'). annotate (used = Count ('region')) In the "Codeobj" table, the link with "region" looks like "region = models.ForeignKey (Region, ...). How to make it so that the result would output not" id "but the name of the region?🤦‍♂
Сергей
when I call serialiser.save() I receive in respnose {"izn_ptd_range":["A valid integer is required."]}, how can I prevent this error? A method validate_izn_ptd_range called only when this field without errors, it`s only idea change this field in put method but error arise befor so that put method not caled.
@(*_*)@
representation... used: <QuerySet [{'codeobj__region': 52, 'used': 1} , 52 = id, instead of id, submit the name
Himanshu
Should I use class based views or function based views? I'm building a blog.
Mirco
Should I use class based views or function based views? I'm building a blog.
use CBVs for your blog, thanks to CBVs u will have few lines of code without reinvent the wheel
Himanshu
Can anyone give me some good side project list using django
Himanshu
opensource?
Anything would work I want to build up something so I can present it in my portfolio
.
Anything would work I want to build up something so I can present it in my portfolio
list of companies who use django https://stackshare.io/django
Himanshu
Thank you
.
Thank you
list of useful links https://github.com/wsvincent/awesome-django
Anonymous
can anyone send me Django 2.2 doc's pdf
Anonymous
pdf
Mirco
Yep
Anonymous
also new update
Mirco
Yup
Anonymous
2.2.1
Mirco
Here u go man
Mirco
You can always find the most recent pdf online
Anonymous
Thanks buddy
Mirco
next time type Django + pdf + docs on your search engine 😊
Anonymous
😅
Shubham
Anyboy who needs affordable web hosting with high performance??
Shubham
hello
Shubham
does anybody know can we automate LinkedIn with python?
.
does anybody know can we automate LinkedIn with python?
google it at least for information. we can help you with code, but will not google for you
Shubham
Its not django relevant
i thought django based on python
Rocky
does anybody know can we automate LinkedIn with python?
Use selenium to automate it one of the ways
Shubham
okay
Rocky
In python
Anonymous
How to compare two json.gz files in Python
Anonymous
Ok
Sencer
Hello,
Sencer
I got a task added to celery with this code block: sender.add_periodic_task( crontab(minute=0, hour=10), check_aws_sns_for_bounced_mails.s(), name='check_aws_sns_for_bounced_mails' ) But the app is not triggered at shcedule. Code is on remote production server and I don't have access. Is there any interface make admin to install for watch task status?
Sencer
Is celery results backend for logging the task states?
inchidi
Is celery results backend for logging the task states?
i dont understand your question, but celery (and your message broker) will be another process/daemon (with django/uwsgi) so they will have their own logs
Paul
Hi, can you suggest approve/reject/pending system? Most of them deprecated and were updated many years ago.
Paul
My problem is: user updated profile. i need to keep previous data on site before admin moderation.
inchidi
My problem is: user updated profile. i need to keep previous data on site before admin moderation.
then you can simply put new user profile data with choice field (new, accepted, rejected) on another model and after admin accept, update user profile with that particular data and change the status
inchidi
And keep history in second model?
if that model.status != new then its history, isnt it
Prosto
Hello djangers! May be someone knows how to work with dates? I build store and i need 2 dates there - Date of Purchase and EndDate. How to make it - Date of purchase + 1 year(This will be EndDate)? May be there is a way to make it from models?
Juris
google "help python timedelta"
Juris
Google is your bro :)
Prosto
Google is your bro :)
nope, my bro is Yandex)))
cj
nope, my bro is Yandex)))
then use it first 🤷🏻‍♂️ 🙂
Prosto
Google - anything will be found, Yandex-anything was never lost
Anonymous
Hi to all, when I want to work with dictionaryField, its show me this problem model class djangocontrib content type models content type dosen't declare an explicit app label and isn't an application in installed apps
sravan
In python
You can use iris automation tool which is based on python
George
Is there a field that replace him? I want to store an object with more 1500 characters
Considera changing to a text type that suits you and maybe changing your db structure
Anonymous
i WANT TO STORE A DICTIONNARY INSIDE TEXTFIELD
Anonymous
is that possible?
Anonymous
dic with more than 1500 character
Anonymous
but when I store this dictionnary its show me a /n and /r betwwn arrays
Anonymous
is that a problem when I want to call the numbers inside this dic