cj
And any preferred resources will be helpful
🤔 how much are you familizarized with Python and Django?
Gabriel
Guys, I wanting an opportunity to work using Django, any of you knows a job vacancy, i’d like a remote one..
Corteis
anybody!! have any book about simpleMooc with django???
cbag
Hello
Anonymous
Hello All Gmng
Anonymous
Heya, anyone familiar with building fullstack apps using Django / Apollo / GraphQL stack? I have an issue with the CORS headers preventing me from accessing the API
Anonymous
I used and set the cors header middleware, tried both allowing all hosts as well as whitelisting the specific domains but it didnt work. I aldo used csrf_exempt on the graphql endpoint but it's still refusing to connect. SORRY shoudlve mentioned this in post 😅
Anonymous
weird thing is that when I run the Apollo playground, I enter a query and press play, it fetches the correct response from the GraphQL endpoint but then the data disappears and it says that it can't fetch the schema
Vibhor
Which one has more scope java or python
Vibhor
Future perspective
cj
Which one has more scope java or python
in this group, people will tell you PHP 🙂
Anonymous
Language is just a tool until you know the programming concepts very deep
pvs
Can anyone know how to create custom group permissions in django rest framework
pvs
pvs: For each view
007
how to create dynamicform like this :- https://www.canva.com/design/DADTYYXkdgE/iqQfpuNmLUJFYnNdJhdgmA/edit?category=tACFasDnyEQ#
007
i got an error page not found ( 404 ) in django ajax post method :- https://dpaste.de/TWwS
Mirco
Sometimes u need to write row SQL when ORM could not be enough and a basic understanding of E/R and SQL is strongly recommended imho
cj
you only need the database driver, you don't need the DB engine runing in the same machine if you don't want
Anders (izzno / gooood) 🇳🇴
I am building an app and was thinking about letting django sessions handle the authentication (registration/login etc) but using JS to fetch the data from a django API. How do I pass the session or token from django to the frontend JS? assuming someone is suthenticated should I hide some token in the DOM, add it in a script tag with django templates. Or is this just a bad idea?
cj
assuming you have a normal Django app with templates and everything else
cj
if you are planning to make a pure API, just Django Rest Framework with djoser package, you'll worry less about auth
Anders (izzno / gooood) 🇳🇴
I would think its easier to let django handle the user reg / sessions etc. Email also... a lot esier eh?
Anders (izzno / gooood) 🇳🇴
But I like your idea, just using normal views. But making an Axion / fetch request will the auth session be there ?
Anders (izzno / gooood) 🇳🇴
yes... I do it, I let django manage that
Then you make "get" requests to normal views from the app ? (what about post requests)
cj
Then you make "get" requests to normal views from the app ? (what about post requests)
I made calls to some endpoints (views that return JsonResponse) using common AJAX (GET and POST) inside a template previously rendered from a normal view, I do it mostly to fill combos or update small fields
inchidi
+1
inchidi
if you already use session based, then whats the point of using token based anyway
Anders (izzno / gooood) 🇳🇴
if you already use session based, then whats the point of using token based anyway
I agree, I just did not think a request from JS would be "authenticated". But of course, its clientside. I guess i did not think at all :D
Anders (izzno / gooood) 🇳🇴
There is no need for an API at all hehe.
Anders (izzno / gooood) 🇳🇴
This just made my life so much easier ;) hehe...
inchidi
i got an error page not found ( 404 ) in django ajax post method :- https://dpaste.de/TWwS
on your browser console, is "am i called" from this line https://dpaste.de/TWwS#L26 printed?
Daniel
hi people
Daniel
I have deployed a app Django on DigitalOcean and fine but the API url serve me error 404 ... Any idea what is up?
Daniel
where is these log? ..
cj
where is these log? ..
don't tell me you're not logging your app 😱😱😱😱😱😱😱😱😱😱😱😱😱
Daniel
I am new ... :c
cj
I am new ... :c
https://docs.djangoproject.com/en/2.1/topics/logging/
cj
let me recommend you to integrate it with sentry 🙂
Daniel
https://docs.djangoproject.com/en/2.1/topics/logging/
https://docs.sentry.io/clients/python/integrations/django/
cj
https://docs.sentry.io/clients/python/integrations/django/
yes, so you will see the logs in a nice web ui
Trials
manually is hard ... rigth?
no, but you have to dig in a .log file
cj
no, but you have to dig in a .log file
digging manually is hard, or at least tired
Daniel
let me recommend you to integrate it with sentry 🙂
"Deprecated Client This SDK has been superseded by a new unified one. The documentation here is preserved for customers using the old client. For new projects have a look at the new client documentation: Unified Python SDK."
cj
manually is hard ... rigth?
but you can start with a basic logging in a .log file
Daniel
jajjajja oka ...
cj
jajjajja oka ...
https://docs.sentry.io/platforms/python/django/
Turtle_In_Hurry
Have anyone worked on jwt token authentication
inchidi
Have anyone worked on jwt token authentication
this kind of questions called meta question btw
Turtle_In_Hurry
Mean you have worked with it
Turtle_In_Hurry
So i am making an invite only django api where i want to use jwt to authentication by sending email with verify link append with jwt
Turtle_In_Hurry
I'm newbie i. Django so please bear with me
Turtle_In_Hurry
Just wanted to know do i need to send whole token or just a signature
Turtle_In_Hurry
?
Naveen
Guys, i learning web crawling by BeautifulSoup. How i can write django view for that?
inchidi
Just wanted to know do i need to send whole token or just a signature
yeah you can send signature, for example generate uuid and random generated token related to certain user is enough. actually your first option is not possible option, if you make it works then technically you are abusing JWT
inchidi
Guys, i learning web crawling by BeautifulSoup. How i can write django view for that?
please explain more what are you trying to do, to avoid xy problem
007
on your browser console, is "am i called" from this line https://dpaste.de/TWwS#L26 printed?
Nope... Whenever i tried yo open that url, it shows page not found . Error raise by views.forminfo
inchidi
Nope... Whenever i tried yo open that url, it shows page not found . Error raise by views.forminfo
if you cant see am i called on your browser console, that means the action not called. which mean your request is sent by your default post form action
inchidi
TLDL: fix the action call first
007
TLDL: fix the action call first
I think my action url is correct. Might be ajax call is wrong
007
Do you have any code which have Ajax post method
inchidi
Do you have any code which have Ajax post method
https://stackoverflow.com/a/6960586 on submit != on click btw
Aman
Can we use django-oscar with MySQL only bcoz I have shared hosting account on hostinger business class but it only allows me to use MySQL
ʚɞÇherry Łoveʚɞ
django-oscar doesn’t require specific database. You can use MySql then.
Rajesh
Gi
Rajesh
Hi
Rajesh
Is there any good tables
Rajesh
In django
Rajesh
Like tables for filtering paginations in ajax
Mirco
Like tables for filtering paginations in ajax
https://django-tables2.readthedocs.io/en/latest/