orion
Omg...
Rohan
Omg...
https://docs.djangoproject.com/en/2.1/topics/logging/
Rohan
Now read.
orion
ok, thank you!
Ghorz
What I mean is, for users that can't even login, not those that have logged in but trying to change their.password
That FORGOT PASSWORD, there are many factors to be considered like email, username, date of birth and if possible secret question
Ghorz
Iam good in c language and can solve average level problems in hackerrank and other online platforms
My dear C is baremetal, Python is surface. You got an edge, I coded C back in the days. It will definitely help you write efficient python code. Most Django code I read seem to be too inefficient. A problem meant to be one line can span several. Welcome to Abstract Programming.👍
Ghorz
You and I know there is a difference between k = [ ] for i in range(n): k.append(i**2) AND k = [i**2 for i in range(n)]
Ghorz
Which is better
Ghorz
?
Rohan
Heard of fast I/O?
Rohan
And those are both python codes
Rohan
Compare a C code to a python code with number of lines a s a measure.
Ghorz
I reduced a 6 line code to 1 and it was very short. Curtling
Rohan
Anonymous
what's going on
Rohan
That's called list comprehension
Ghorz
Compare a C code to a python code with number of lines a s a measure.
That's not what I meant. All am trying to say is that knowledge of C will help one know how to write efficient python code
Rohan
What next? You're gonna show me lambda function?
Rohan
🤷‍♂
Ghorz
Less number of lines != Efficient code
Right but easier to comprehend
Ghorz
Execution time + memory use
Ghorz
More like Recursive calls vs loop
Ghorz
🤷‍♂
Professor Algorithm and Data Structure. Back in Undergraduate year, my lecturer would write confusing mathematical jargons on the board, then explain all the theories which no one understood.
Ghorz
O(n)
Ghorz
O(n**2)
Ghorz
And the rest jargons
Rohan
Those "jargons" are helpful.
Wang
hello everyone, i want to creat blog in new year. who has running blog site. i want to see it. thanks everyone
Anonymous
where to host the blog?
Wang
anyone
Wang
Anonymous
can you please expand that anywhere?
Anonymous
Wang
can you please expand that anywhere?
Do u have blog by django creat?
Anonymous
But that doesn't justify your statement
Anonymous
but i wanted to create a blog to be seen by others too. Just asking for hosting areas free ones
Anonymous
:P
Anonymous
Anonymous
apart from these xD
Wang
I m sorry, my English is poor. my mean is it that i want see other guy's blog of django.
Wang
Pythonanywhere.com Heliohost.org
i don't need host to create
Anonymous
I m sorry, my English is poor. my mean is it that i want see other guy's blog of django.
yeah sure. For practicing your skills, no need of hosting (local is enough)
Ghorz
I m sorry, my English is poor. my mean is it that i want see other guy's blog of django.
I believe you wanna see a blog created by one of us, use it as a sample
Anonymous
I m sorry, my English is poor. my mean is it that i want see other guy's blog of django.
check for sentdex tutorials. Videos would be helpful. I remember he has done some blog creation for flask. You can check his youtube channel
Chiji
Hello everyone
Chiji
Can I use two context_object_name in a class based view ? I know it's possible in a function based view
Anders (izzno / gooood) 🇳🇴
It all felt like a hack
I think I know what you mean, but it does not make it any less easy :/, that being said I think the way you use it in single pages or on elements feels good to me. The app file layout I get your point. It's..... New...
Anonymous
guys as far as django developers are considered, do you guys remember all the syntaxes specially for generics? or you too look into documentation from time to time?
Shubham
Hello , how to dockerize the Django REST API project from scratch , how to write proper DockerFile and yml , im constantly getting an error
Shubham
snj@snj-HP-Pavilion-g6-Notebook-PC:~/Desktop/byob-profiles-rest-api$ docker-compose run web python src/profiles_project/manage.py migrate /usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown. warnings.warn(warning, RequestsDependencyWarning) ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. snj@snj-HP-Pavilion-g6-Notebook-PC:~/Desktop/byob-profiles-rest-api$
Shubham
Hello
Shubham
Is there any 1 who worked with socket
Shubham
*docker
Shubham
Yes
Sorry I meant docker
Shubham
It's default 1
Ghorz
Is the docker deamon running
Mi
Hey guys
Mi
How do you do domain driven design with Django?
Mi
I mean, is this even possible?
Anonymous
domain driven. What's that?