Orack
no get data, no post data, no files data
Orack
Muflone
doesnt wiork😂
Just use an optional parameter, initialize it with none and in the queryset check if the parameter is None, return all records
Orack
Orack
write a new view
Orack
getAll()
Omair
or
Yeah you can do that too
Omair
Muflone
It doesn't
Orack
nvm
Orack
phew
Orack
learnt a lot about django today
Muflone
Why are you using DRF if you started today?
Orack
Orack
only manage backend
Orack
someone suggested me use drf
Orack
if only api
Muflone
DRF is great for complex api
Muflone
But you first must know Django
Muflone
I use simple Django also for API
Orack
in django
Orack
i needed to put csrf_exempt before any function
Orack
that is not a good practise
Orack
Muflone
https://github.com/muflone/django-hotels/tree/master/jsonapi
Orack
i still feel writing api in php is easier😂
Rohan
Orack
need more time to get familiar with this
Orack
Muflone
a simpler api like status is made of 5 lines of code
Muflone
whose 2 are the context data
Muflone
and it uses both no arguments + arguments, like that you asked before
Orack
Muflone
no, I never tried DRF in my whole life
Orack
http://www.muflone.com/django-hotels/
Orack
404 not foiund
Muflone
ahah documentation not ready yet
Muflone
btw you don't need to interact with my api 🙈
Muflone
it's a mere example how an API can be made with only django
Muflone
it won't ever replace DRF
Orack
Orack
with 1 get and 1 post
Muflone
great
Orack
Muflone
it depends on your needs, if your API is really complex and needs authentication or tokens, DRF will give you better results
Muflone
mine is restless API, with inline authentication
Shiva
Guys my url.py and views.py changes not reflecting in server
Ajay
Try making migrations
Faisal
Orack
Shiva
And did some changes to testing views.py
Faisal
Have you added the app in the settings?
Shiva
cj
Yes
restart the service 🤷♂️
cj
Yes after server restart it worked
you have to restart the service everytime you chage things 🤷♂️
it's not automatic, unless you're in developing stage
Shiva
Belmo NaTazu
Hi guys, I search best video course Django for beginners but not novice in Python.I am not banned in Google but want know how to use Django right
Orack
Orack
in the end moved on with quickstart guide in documentation
Belmo NaTazu
Rσуαℓ geeк
Hi if I may ask apart from social authsites such as facebook..Twitter and so on can one use their own sites to authenticate specific users
Brian
Rσуαℓ geeк
Yes you can
Oh that's great i'd like to know how though...or is it so as you do it with the Social auth site
Anonymous
how can i implement mail verification
Yash
Anonymous
ModuleNotFoundError: No module named 'blog.apps.BlogConfigdjango'; 'blog.apps' is not a package
Kori
hey so I am trying to deploy a website using docker and i'm having a hard time using a custom domain on the nginx service. the app is running on the machine when i specify the ip address and the port but i want it to use the domain specified. i'm new to docker so i might be missing something
Kori
Artyom
Hi ! How I can to get values of QuerySet separately?
Artyom
For example queryset result is {{value: 2}, {value: 5}, {value:8}}. I wish get 2, 5, 8 like a separately value
Mihail
Hi there DjangoDevs, is there a module or api for login with google? I want to use it with REST-API, thanks in advance
Mirco
Mihail
Mirco
ok, i will thanks!
You will have a ready DRF project with social auth already configured