Akhil
How to write serializers for it also
Akhil
If any links would be nice.
Rajjix
amit
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
You would have to do basically everything manually. I does not hash your passwords etc...
Anders (izzno / gooood) 🇳🇴
Anyone tried pycharm on Linux on a 4k screen?
cj
Ronald
Ronald
not quite 4k
Ronald
but
Ronald
still huge resolution
Anders (izzno / gooood) 🇳🇴
Macos has better scaling, I've used it when I had a Mac but Linux is very different 😉
Vichu
Hay by using restapi I need to post json format data in an another api. By using post man..it should be dynamic way.
Vichu
So need to hit an existing api with a new api which consist of json in body
Rajjix
Sounds like an api gang bang u got there.
Anonymous
https://stackoverflow.com/questions/53440471/how-to-load-tasks-in-redis-server
Anonymous
Luis
Recursion issues sometimes are caused by identifiers with same name... I learned it today/tonight
Akhil
Anders (izzno / gooood) 🇳🇴
Yes it will.
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
In deed, the inclusion of webstorm doesn't hurt either.
darksied
Hi everyone!
Can someone please show me a simple way to build a CRUD using Django Rest Framework (DRF)?
Rajjix
i think you tube has a bunch of those, and medium as well, when u follow those tutorials and face an error, then u can ask people are very helpful here
Rajjix
search for DRF crud
darksied
Thank you!
Anonymous
guys, I was a little tired of studying django, I want to study something else now, do you recommend which of the three books? Practical sql (I know how sql works and I already did a course in udemy for 5 hours, and this book focuses on sql with postgres), grokking algorithms or fluent python? or any other? my knowledge in html is good, in css I have good base but I do not use pure css (only frameworks), js my knowledge is the basics of syntax (so, nothing) and in python and django I believe it is from beginner to intermediate. Also I do not know git and I know some things of linux (that I learned in the 2 years using linux)
Rajjix
I would encourage you to learn a frontend framework, vue is the easiest to start with, there’s also react which is more popular but a bit more challenging to understand it’s core functionality.
Anonymous
have you worked and have experience with web development? I also want to learn front-end, but after learning back-end. All my back-end and HTML knowledge is here: https://github.com/marcoscoder/blog-django. I do not know JS, I did not get to work with SASS, I only know those 6 basic GIT commands, a little LINUX and I know how SQL works (I already got to do some things in the sql terminal but nothing hard)
Anonymous
more detailed post
Anonymous
https://www.reddit.com/r/django/comments/9zpihn/problems_with_learning_djangoweb_dev/
R
Anonymous
yes, but I wonder if it would really help me with web / django development, since for now I do practically nothing using "pure" python
Anonymous
the only thing I used that helped me was the Path class for the variable BASE_DIR
darksied
Thank you!
Rajjix
ur actually doing everything with python, functions calls imports, integrations, assignments u just don’t realize it because maybe u haven’t used other languages or backend frameworks.
U’ll need to read a bit more or find your way to improve your english skills helps a lot in reading manuals, and lastly as a developer you really should believe in urself a bit more don’t use the word I can’t anymore u just need to break things down to simpler pieces and understand how it works understand the flow of things not just how they are done, try to know where every-piece of data is flowing to reach it’s destination, debug ur code, and most importantly understand it, there is really no end to this, just deconstruct and reconstruct until u really understand the guts of it. That’s when u know that no task or feature shall stand in your way as a dedicated developer
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
And you should look at the mozilla django tutorial, its good... (I'd do that first)
Anders (izzno / gooood) 🇳🇴
Search this group for "django 2 by example"
This book assumes you know quite a bit, and moves fast. If you have the time you can head right in, but be prepared to find things and explinations on your own. But it's a really good book showing you the ropes asuming you know python (that is if you want to understand what happens and why, which rajjix mentioned = you should)
Leonardo
ok guys, so how can i manipulate multiple settings (base, dev, production) for each environment automaticaly?
Leonardo
how can i set production.py on my production environ?
Mirco
Make a module settings with base, dev and prod settings
Everyone inherit from base
Leonardo
yeah, but and git?
Leonardo
i just commit base?
Mirco
Nope , you can commit the module settings
Leonardo
but my production environ will use my dev settings, because i was using on my dev machine
Leonardo
and if i change the hardcode on my production machine appoiting to production settings, git will stage my changes
cj
did you create your project using de django cookiecutter template from two-scops?
Leonardo
so how can i do that dinamically?
Jimmies San
Jimmies San
change the code with a os.getenv(PARAMETER, PLACEHOLDER)
Leonardo
ok this is new for me now...
Leonardo
do you have a article about this @JimmySan ?
Leonardo
i tried to find but no succeeded
Rajjix
isn’t it easier to make ur own module file or folder and place it inside environment files and import ur production variables from there
Jimmies San
Jimmies San
Leonardo
what`s the common way to do that?
Jimmies San
i can share you some snippets
Jimmies San
the sourcecode with the options to get parameter from env
Jimmies San
that's all :)
Jimmies San
what`s the common way to do that?
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.local")
Jimmies San
so
Jimmies San
if in your environment
Jimmies San
you have a DJANGOMODULE_SETTINGS
Leonardo
i`m using gunicorn, is the same thing?
Jimmies San
the code "call" that options
Jimmies San
if not - placeholder [first choice on source code]
Leonardo
hmmm
Jimmies San
so if i have an env variables named django_settings_module with value settings.prod
Jimmies San
it load it
Jimmies San
if not: load settings.local
Jimmies San
that's all :)
Leonardo
it`s a substitution
Jimmies San
it's a os.getenv :)