Muflone
or better with a TCP tool like dbeaver
Anonymous
Hello friends
Ani
check out django channels
I have checked but I couldn't get how to send serializer class through it as we can send it in views
Anonymous
Some help me
Anonymous
I am learner
Anonymous
Today I thought .. why don't make a project
Anonymous
So today I have started a project
Anonymous
I want to use nav bar for main page
Anonymous
How to do it
Anonymous
Plz help
Mirco
There are so many tutorials out there Please check them out
Anonymous
Please tell me that type of tutorial those are fully describe
Mirco
Please tell me that type of tutorial those are fully describe
Even the one from djangogirls shows you how to use a navbar into a Django project
Anonymous
Thankyou
The Summer
https://stackoverflow.com/questions/58786442/returning-dictionary-from-templatetags-and-printing-in-template
The Summer
Plz help me with this
Dharmendra
I want to create simple app which allows user to perform below operatios using DRF and angular 1.register with site, 2.signin, 3.Able to view profile I have below doubts, 1.How would i track currently logged in user of site in Django? 2. How would i manage csrf in django and angular to know about it? 3. How would i manage session timeout?
Dharmendra
Can someone please help
Anonymous
K
Денис
I want to use nav bar for main page
Use bootstrap, save yourself a headache
Dharmendra
Thanks CJ, I am new in django and looking for good links which has tutorial of DRF and Angular
R
I hAve found that the net ninja tutorial is excellent and free.
R
That is video though so if thats nit your thing then ...
R
https://t.me/pythonres/32
R
Why in the world are you asking that here?
Dambe
Buy a new one
Dambe
Joking. What's the brand?
cj
is that related to django?
ShiLu
Hello everyone~ I don't understand what is diffrence between "authenticate(request, username=username, password=password)" and "authenticate(username=username, password=password)"?
Ghorz
Thanx in advance
https://ghorz.com/blogblog/Tutorial/2019-09-01/14/how-to-integrate-paystack-payment-to-django/
Dharmendra
If you have any links then would be great
Dharmendra
Angular and DRF integrarion app demo 1.session managment 2.db management 3.static resource
Dharmendra
sqlite would be fine as django used it as default db
Js
Hi everyone...I just spent a few days learning Angular in order to build websites using Django as backend and Angular as a front-end. I find Angular a bit difficult and I am not sure if it is worth the effort when I can build front ends using Django as well. Can you advise if it makes sense to make the effort to learn angular when I can do the majority of things in the front end with Django?
cj
you don't do front-end things with Django, everything is done at back-end (yes, rendering the templates is a backend thing too)
Js
if you're just starting to learn a front-end library, go for Vue.js
Vue.js is easier or just more useful than angular?
Dharmendra
I want to create simple app which allows user to perform below operatios using DRF and angular 1.register with site, 2.signin, 3.Able to view profile I have below doubts, 1.How would i track currently logged in user of site in Django? 2. How would i manage csrf in django and angular to know about it? 3. How would i manage session timeout?
If i want to create app then should i need to overrwrite django's existing login template and use django.contrib.auth for authentication OR i can create my cusom login template in angular and for authentication i can write custom views in DRF
cj
I already told you to look up for djoser package
Dharmendra
I need to learn and implement instead of using djoser package
cj
I need to learn and implement instead of using djoser package
at least read how that package works so you will have an idea to write some code yourself 🤷🏻‍♂️
Sam
Have some one worked on highcharts???
Doragonsureiyā
Have some one worked on highcharts???
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 46k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Dharmendra
What is the difference ?
If you are using any package then there may be chance off there internal flaws, so would be good to use with core framework, however as a code readability we can read and take it as reference
random_neighbour
Hey guys I'm new to django I'm a machine learning developer so i Just started learning django for my backend so can anyone suggest me any good resources on jwt in django it would be a great help thank you
Aemie
Corey MS series for django on YouTube is pretty good.
Ani
Hi I have made api with django rest How can I use django channels to send serialised data from serialzers same as we send it through apiviews
professor
Is possible to disable browsable api into plain text json?
Mirco
Is possible to disable browsable api into plain text json?
You can see the plain json by using the proper button one the browsable template
Anonymous
I have a very silly doubt related to Django. The problem is i added urls in my html pages using '{% url 'name' %}' tag but it is taking relative path... For eg- If i am at homepage and click on blog button.. then i am at site/blog now. But when i click on blog again, then i am at site/blog/blog .... Can anyone please help me in fixing it? Thanks in advance.
professor
You can see the plain json by using the proper button one the browsable template
I mean like this https://jsonplaceholder.typicode.com/todos/1
professor
instead of the GUI browsable. I want to display like this
Mirco
instead of the GUI browsable. I want to display like this
Why ? You also have this kind of view by pushing that button
Mirco
And if u call with a client like Postman, you receive the json as u want
Mirco
it will be public available
And what's the matter ? Clients of your APIs will fetch the json
professor
I just want to remove the gui . is it possible?
Mirco
Change the DEFAULT_RENDERER_CLASSES setting
Mirco
REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': ( 'rest_framework.renderers.JSONRenderer', ) }
professor
that's will disable the gui right?
Mirco
Yes
professor
thanks
Mirco
But it's useless You are thinking about clients of your API will receive the browsable version instead of json and that's wrong
Mirco
Anyway, now you know how to disable it
Mirco
For all info, check docs
professor
by the way , why do I need the browsable? debugging test ?
Mirco
by the way , why do I need the browsable? debugging test ?
You can inspect and navigate your APIs easily by using the browser Obviously in addition with some good documentation tool
Mirco
But the users that call your APIs , will receive just the json
professor
if the user (curious) cut some folders like api/v1/ ? will see content based on my rules. the browsable or not?
Mirco
if the user (curious) cut some folders like api/v1/ ? will see content based on my rules. the browsable or not?
On the browser the users will see the same result received by calling the same address into a command line client or js fetch API func
professor
I see. let me check those the