Leonardo
im sending delete to myurl/hospitals/1
Mirco
read better documentation
Leonardo
and when i get again, the id still there
Mirco
Take your time, read again and try to understand how DRF handles it 😊
Maz
Anonymous
Anonymous
yeah
Anonymous
professional
Anonymous
It’s connected
Muflone
I'm not yet sure he's using django at all
Muflone
Anonymous
try to guess
Uhmmm because he knows how django databases really work?
Anonymous
Anyway thank for you all,,
Muflone
Like it was told you 2 hours ago, check your settings.py, plus check your database settings specifying your database
Anonymous
Anonymous
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'The database you want',
Muflone
with postgres examples included
Anonymous
Anonymous
If all people understand it why they made such groups and communities :3
Mirco
Anonymous
Mirco
😊
Muflone
Hard as hell
https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-DATABASES
Anonymous
Muflone
use the documentation, you'll need it
Mirco
Okay thank you 🌚 you’re a legend too
I think you and lots of people always forget the main goal of a documentation:
read it
And if it looks hard, read again and again and play
Anonymous
Anonymous
Like two months of coding I still need time to aggregate things up
Mirco
Mirco
You need time, code as much as you can and learn how to read documentations
Anonymous
🌚❤️
Mirco
You will understand it better in the future when you get more experience
Anonymous
Mirco
Anonymous
Hi, when we using virtual environment? Only when we develop our web app or ... ?
cj
Jose Luis
i have a generic.DetailView where i need to add an button in the template to set to disabled an option. recommend me to use a form/post or maybe exist another better way?
Jose Luis
i just need to click a button, run a JS to confirm and then update the record
Jose Luis
thanks
Jose Luis
the problem is thta i dont want to use REST FRAMEWORK, and i dont want to send a full form, i just need to update an value, UpdateView is not what i want, i need something simple, something small, like send a AJAX to just update that value.
use something like /user/update/<ID> and just modify one value
Arturo
use View of django generic class and override the method put
Master
Write simple FBV update. I fail to see problem so far.
Jose Luis
ok, will check it, thanks again
Leonardo
@pyflare the problam that was missing an slash at the end of url 😅
Mirco
Mirco
You've learned before giving the fault to the framework u'r using , first give the fault to yourself 🤪
Vadym
Hi guys. New here. Noob need help.
Vadym
I heard it's not a good idea to store this type of data in DB. Give me some ideas please.
Trials
the kind of data that is not good idea to store in the DB
Orack
can I return things in except block of try catch?
Orack
https://del.dog/gringuckam.txt
likethis , i get TypeError: cannot unpack non-iterable int object for first post request
Ashish
In pycharm db.sqlite3 file was loaded in the wrong encoding:'UTF-8' .how to fix this
Adonis
does anyone know how to start with AWS Worksdocs API ? am trying to implement that as a backend for my app
Beka
Friends who has a book rest API DJANGO 2.2?
Beka
I just asked thanks )))
Adonis
Anonymous
Who did have cod of marketplace?
Beka
Yes I understand 🤦😁 no problem
Anonymous
Master
???
https://www.google.com/search?q=django+marketplace&oq=django+marketplace&aqs=chrome..69i57.4086j0j1&sourceid=chrome&ie=UTF-8
Anonymous
Master
if you need help with simple google request, its too early for you to study Django.
Anonymous
Did't you understand me?))
Anonymous
Anonymous
Master
Don't be smart
Thats kind of job description... Are you sure you in correct channel?
Anonymous
Thank you smart man)
Bunty chhatri wala..
https://pastebin.com/jAuBhkAE
Its always showing page not found when I'm trying to delete a todo
Code is in above url..
Anonymous
Oui
Hello, after python manage.py migrate i get this err: django.db.utils.OperationalError: (2019, "Can't initialize character set utf8mb (path: C:\\Program Files\\MySQL\\MySQL Server 6.1\\share\\charsets\\)")