cj
it's not recognizing you're using Django, maybe
Name is not blank
@abdulazizAlbidani It was successfully completed thanks guys.
cj
the last line is telling you what to do 🙄
Neo
Orm
sorry
George
sorry
bah dw
Вадим
Hi, guys. I need help)) it is the good way to make friends system?
Вадим
I am beginner
inchidi
that should be fine
Вадим
Thanks)
inchidi
Thanks)
https://github.com/revsys/django-friendship/blob/master/friendship/models.py in case you need complete/more complex example
Вадим
Ooy. Okey, thanks again.
Wang
Holle everyone. everyone know markdown is useful. so i use markdown in my blog of django project.
Wang
but it has a problem, i can apply image by my blog self
Wang
who do know how to fix the problem?
Wang
but it has a problem, i can not apply image by my blog self
BlackPepper
Any good resource for django channel?
inchidi
Any good resource for django channel?
the official docs actually good enough
Mohamed
https://www.youtube.com/watch?v=RVH05S1qab8&t=7s
Mohamed
Any good resource for django channel?
BlackPepper
Yeah.. Tried that one, but I feel if there is any video tutorial step by step would be great.
Mohamed
https://www.youtube.com/watch?v=Wv5jlmJs2sU&list=PLLRM7ROnmA9EnQmnfTgUzCfzbbnc-oEbZ
BlackPepper
https://www.youtube.com/watch?v=RVH05S1qab8&t=7s
Full video is not available. Tried that one. Not watched fully but gonna do that first. Thanks
Name is not blank
Meaning?
An environment that ease direct communication with an administrator and user.
-
Helllo all. Help s1, pls. I have question, where is better to call clean() method of model for validation. There is case to use it in save() method of model and call full_clean() there. But if I do like it will be called twice in form validation.
#Счастливая❤️
hello all. please, how to deploy django app bj myself on windows server?
Anonymous
How do I perform asychronous tasks in Django for example when users make a call to a certain endpoint, All calls will be asychronous
-
@Inchidi mmh, Its in model clean(). And I have modelForm that calls it, and in serializer validation I call model.clean()
Вадим
hello all. please, how to deploy django app bj myself on windows server?
python manage.py runserver 0.0.0.0:8000 View your external ip, write in allow hosts in settings.py your ip, and view {your ip}:8000 in your browser. If you have not a static ip, you would have some problems
Вадим
And allow port in settings WiFi box
Вадим
My english so bad and I don’t know, did I understand you correctly
inchidi
All
you can use asgiref for that
Вадим
?
Anonymous
you can use asgiref for that
Ok I check it out thanks
Mirco
Any good resource for django channel?
There's a good book called Practical Django 2 and Django Channel 2 published a few months ago
Alexander
Hi guys, I've defined a custom user model as recommended by the official docs. Should I since now ref to the user Model via get_user_model() or settings.AUTH_USER_MODEL?
Вадим
You can use default user model, but you should create profile with onetoone
Alexander
Difficult then this
Hello. Yes, I know about the another option (creating a separate Model for storing additional user info). But I did not unsterstand whan did you mean by "Difficult then this". What is more difficult that what? Thanks 🙂
Вадим
Difficult then create custom user model as for me.
Alexander
Difficult then create custom user model as for me.
Thanks. Any comments on the initial question? 😀
Anonymous
Asgi is not compatible with Gunicorn
Sanjay Krishnan
Has anyone done django datatable server side?
Sanjay Krishnan
How do you configure pagination and extra filtering?
Mirco
Sanjay Krishnan
cj
Can you please share?
sure, wait a couple of minutes until I reach a PC
inchidi
Can you please share?
how's datatable json format required to make it work btw?
cj
Can you please share?
Here it's... as simple as that https://bitbucket.org/c0x6a/django-datatables-paginator/src/master/paginator.py
Sanjay Krishnan
Will ping you for any doubts
Nithin
Hey, i beginning a large drf project. I am planning to keep the business logic code in a services.py. Do you guys usually do this? Should i do it right from beginning or do it later only if necessary? I am a bit worried about over engineering.
Nithin
If i am following this structure then i shouldn't use model viewsets rt as they directly interact with the the models?
Mirco
Study as better as u can official docs to build the right structure from the beginning
Nithin
okay. Btw i was following insights from this question's answers as django docs dosent say much on logic separation.
Mirco
okay. Btw i was following insights from this question's answers as django docs dosent say much on logic separation.
There's an awesome book called 2 Scoops of Django that teaches you Django best practices about projects Make models fat, etc. etc.
cj
Django 1.8 ? Is there new version?
the latest for the book is 1.11
Abdulaziz
Third Edition, 2015-05-20 ?
Anonymous
Can someone teach/guide me a proper way to store log in a model 😂 please.
Anonymous
I meant logging (not sign in)
Anders (izzno / gooood) 🇳🇴
oh
Anders (izzno / gooood) 🇳🇴
Then there is no "propper" way.
Anders (izzno / gooood) 🇳🇴
Depends, what do you want to store ?
Anders (izzno / gooood) 🇳🇴
events, lines, text ?
Anders (izzno / gooood) 🇳🇴
(and does it have to be a model)
Anonymous
Errors and success cases of functions
Anonymous
Yea just wanna see it on admin page
Anders (izzno / gooood) 🇳🇴
Then customize the admin to show a text field with the log file reversed.
cj
Third Edition, 2015-05-20 ?
then your Google is broken