Doragonsureiyā
Is there anybody who make a blog application.?? In django
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Doragonsureiyā
I DMed you. Let's teach each other.
We know the rules are quite long, but read them, because on average, hundreds of users are banned from this network every week. Reading the rules will help in avoiding this pitiful fate.
Runtime Error
How to make backend in blog application
Runtime Error
Using django
Doragonsureiyā
How to make backend in blog application
Just read the documentation and do
Runtime Error
It contains only frontend but i m not getting how to do first login then post a blog
Reza Ghorbani
Using django
Learn Django
Runtime Error
Learn Django
Could u suggest me video for adding backend part
Maxim
Could u suggest me video for adding backend part
there is no "how to become a programmer" video
Sanchit
Hii everyone !!! I have my data entered in a model in Django and it has various fields . Now I want to show details of particular filed with name like "xyz" on html page . What I will write on views.py and html page ???
Frozen
Do any one know fetching data using MQTT and Store it in Influxdb
Doragonsureiyā
Do any one know fetching data using MQTT and Store it in Influxdb
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Ницше
hi all. how to use the ORM forces to send the correct request. Let's imagine that we have 2 tables, one of them is a building with floors and rooms, and the second is employees who have the fields name, phone, workplace and a link to the building table. so here's how to display a list of floors in which there will be associated workers with these floors. in raw query i can implement this
Ницше
don't use raw queries :)
So how do you do it with ORM?)
Mirco
So how do you do it with ORM?)
just use the foreign keys in filter
Ницше
just use the foreign keys in filter
no foreign key in table "buildings"
Knowledge
use filter to select building floor and prefetch_related for fetching all employees
Ницше
use filter to select building floor and prefetch_related for fetching all employees
in this example it will work. in my case i have a table "Links" it has 3 foreign keys. and there is a table "Temp" in this table there is a foreign key to the table "Links". it turns out when I want to get a list from the "Connections" table in the "Temp" table there may not be an entry
Vadim
Hello, got a question , While logged in as a regular user on localhost, then on localhost/admin logged in as an admin, the regular user automatically logged out and admin automatically logged in on site, is that correct behaviour? Or it should have been prevented to login on admin page while regular user is logged in on site?
Manoj
2 I have a Django app which sometimes throwing below error. The request's session was deleted before the request completed. The user may have logged out in a concurrent request If anyone experienced, then it's handled please share the solution for it.
Code
why my AuthenticationFailed is not working from rest_framework import exceptions raise exceptions.AuthenticationFailed( detail='Please continue your login using ' + filtered_user_by_email[0].auth_provider)
Vadim
Hello, how to redirect to another page if user already logged in and trying to get login page, using LoginView
Ashish
Hello, how to redirect to another page if user already logged in and trying to get login page, using LoginView
from django.contrib.auth.views import login def custom_login(request): if request.user.is_authenticated: return HttpResponseRedirect(...) else: return login(request)
Aby
Why am I getting template syntax error at / Invalid block tag
Aby
you miss spelled somthing
Yup, it is now solved
Jugurtha
Hi guys , for projects that requires only rest API, is it better to ise FastAPI or just Django with DRF
Jugurtha
I'm really confused
Jugurtha
I want use vueJS
Jugurtha
Thx for you answers
Mirco
Hi guys , for projects that requires only rest API, is it better to ise FastAPI or just Django with DRF
it depends on your needs but yeah you can use FastAPI but if you like all the batteries included by Django, the ORM etc etc you can still choose DRF
Jugurtha
I do like Django ORM, but fast API too comes with SQLalchwmy
Jugurtha
I really like Django, but IDK if it's good choice, since I'm going to use it with VueJS
Jugurtha
I love the DRY of Django
Jugurtha
Do you guys still using jQuery ?
Jugurtha
For Django projects
Jugurtha
not by default
Yes , not by default
Mirco
I really like Django, but IDK if it's good choice, since I'm going to use it with VueJS
you can use it without any issues VueJS ( frontend ) and backend can be handled as totally splitted projects
Mirco
Do you guys still using jQuery ?
nope, only on some legacy code
Jugurtha
What do you use the most ?
Ola
Django+React? Sweetest blend..
Jugurtha
So you use only DRF in your project ?
Jugurtha
Do you recommend react over VueJS?
Mirco
So you use only DRF in your project ?
for the most of them but I often use FastAPI as well
Mirco
Do you recommend react over VueJS?
nope, u can use whatever u prefer and are more comfortable with I don't have any preference, also HTMX is awesome
Jugurtha
Alright I understand, thank you, Do you use any template startup like cookie cutter or any ready template to go faster ?
Jugurtha
Alright I understand, thx for your time
Doragonsureiyā
BlueDream
Hello, everyone.
BlueDream
I have any question of django.
BlueDream
Who can Help me?
BlueDream
☺️
wowlikon.py
BlueDream
Ok, thsnks.
wowlikon.py
I can try
But i start learning django 4 days ago
BlueDream
I got it.
wowlikon.py
Ok, thsnks.
What are you need?
BlueDream
Front End React and Back end Django, I need API Integration.
BlueDream
Can you help me?
wowlikon.py
wowlikon.py
You can search in stackoverflow
BlueDream
Sorry, but i don't learned react
Thanks for your attention.
Nick
Can anybody please tell how can i create html pages according to database
Nick
I dont want to create same html pages for every link
Nick
Like a movie detail, only data changes page remains same
Nick
Is it possible?
Nick
use react
any link related to this?