Rohit
will you tell me if it will be implemented in django
cj
will you tell me if it will be implemented in django
almost everything (web related) can be implemented in Django
Anonymous
I am faceing some issue with Django
cj
can i say my idea
just say it, show some code (if you have any) and make smart questions, also if you're willing to pay for it, tell the amount of money too
cj
I am faceing some issue with Django
good luck, kudos for you
fcs
do u guys heard of fastapi
cj
do u guys heard of fastapi
yes, but this is a Django group
fcs
lol
cj
lol
don't try to compare apples with oranges 🤷🏻‍♂️ if that's what you want to do
Anonymous
When I try to access some content from django...it doesn't show to me
fcs
don't try to compare apples with oranges 🤷🏻‍♂️ if that's what you want to do
recently i ve been using fastapi, but i think this framwork is not manture enough
cj
recently i ve been using fastapi, but i think this framwork is not manture enough
no it's not, it's just a new one, no more than 2 years IIRC, and has a very limited use case, to make APIs, Django is bigger than FastAPI (but yes, slower, although we don't care about it)
Doragonsureiyā
When I try to access some content from django...it doesn't show to me
Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
fcs
how can i find some django projects i can learn from
cj
how can i find some django projects i can learn from
go to github/gitlab and use their search bar 🤷🏻‍♂️ or simply use google.com or duck.com
cj
also this 👇
Doragonsureiyā
Check out these amazing topics: https://github.com/topics
fcs
tks
Vignesh
Guys I have a doubt y doesn no one recommend openshift for deplying django I see it a complete win it's free . But am I missing a imp point
Presence
Any best guide to jwt implementation?
Presence
Pyjwt or simplejwt?
inchidi
Pyjwt or simplejwt?
simple jwt, just follow their docs
Presence
Great...
Amit
When a user click a button it should pass a primary key to views.py . How can I do that .. <form action="/addtocart" method ="post"> <button name={{pro.key}} type="submit" <button/> Views.py def carditems(request): request.Get.get(name ) But am not getting any primary key Also I added function to urls.py Can anybody help me pls
Amit
Help me guys I stucked here
cj
It's not working I tried
you have to show all your code 🤷🏻‍♂️ we don't read minds here
Raad
If i have a hotel management system, is better to have a separate app for each functionality? For example, app for reservation, app for the reporting, app for managing the rooms, etc.. Any suggestions?
Raad
yes, I tend to do my projects that way, separate apps for separate funcionalities
Doing this will help in performance or for organizing porpoises?
Raad
For ur business domains
I’m using Microservices architecture. -User auth and management in one service including 3rd party API. -Main service which is reservation and hotel management including rooms, reporting services. -POS service
cj
Then don’t use Django
why? you can perfectly build microservices using Django 🤷🏻‍♂️
Muslim
Why?
Microservices require 12-factor app, it’s hardly possible using Django, maybe u should consider using fastapi or other microframeworks. Separating apps != microservices
Raad
Microservices require 12-factor app, it’s hardly possible using Django, maybe u should consider using fastapi or other microframeworks. Separating apps != microservices
I considered fastapi, Uvicorn but when I saw that it’s possible to use ASGI with Django I thought again about Django
Muslim
following 12-factor app is totally possible using Django
Everything is possible, but then why bother using Django? U don’t use Django auth cause u have separate auth service, logic is too sharded between services, Django is just overkill for microservices
Muslim
I considered fastapi, Uvicorn but when I saw that it’s possible to use ASGI with Django I thought again about Django
Django is “one tool for anything” using already written apps, but it’s not for microservices
Raad
I will look at it again but thanks to everyone who replied
ᐯᑌᏞᏦᗩᑎ📈
how to restrict users from going certain pages?
Muslim
how to restrict users from going certain pages?
Django guardian - for object level permissions and for raising 403
Mirco
how to restrict users from going certain pages?
A permission class is the right way to follow Django has all you need to know inside docs
Abhiram
Any one plz suggest best and simple way to convert Django web application to Android app
Abhiram
😞
cj
😞
you have to re-think, re-write what you want to do 🤷🏻‍♂️ make an API and build a stand-alone client app 🤷🏻‍♂️ there's not a "magic" best and simple way to "convert" a Django web app to an Android app, and being said that, don't even think to build an Android app using Python either, you'd better learn Java or Kotlin (or Flutter)
Abhiram
✌️
tfhx8
Hi. django model.pk start to 1, not 0 ?
tfhx8
Why?
Muslim
Hi. django model.pk start to 1, not 0 ?
Postgres sequence for ids starts with 1
tfhx8
other database default start 0
Muslim
other database default start 0
Depends on sequence implementation
tfhx8
example?
Muslim
example?
Official doc on model id
Anonymous
hey,I want to create user specific pages example:- a to do list where I only see my tasks no others , I'm not able to find only one tutorial which I dont understand . can anyone help ?
Cesar
hey,I want to create user specific pages example:- a to do list where I only see my tasks no others , I'm not able to find only one tutorial which I dont understand . can anyone help ?
Lets assume you have a model Task with many fields, been owner = models.ForeignKey(User...... one of them. then you would simple do this in your view: tasks_list = request.user.task_set.all()
Cesar
If you want more help, send your task model and view function via a code paster service like pastebin.com
Anonymous
If you want more help, send your task model and view function via a code paster service like pastebin.com
yes..I also want my user details to be stored according to their ids https://pastebin.com/gFnGVkV7
Cesar
yes..I also want my user details to be stored according to their ids https://pastebin.com/gFnGVkV7
Change patients view obj = Patient.objects.all() To obj = Patient.objects.filter(user=request.user)
Cesar
Anonymous
You forgot to makemigrations (?)
nope, done that..no migrations to apply
Anonymous
Static media is not working in my django project...need some help
Anonymous
I didn't find solution on Google but I give correct path where my static files are stored
cj
that's a very very very very common issue with many many many posts dedicated to talk about that
cj
even here in this group, if you use telegram's search feature, you'll find the solution
Anonymous
Static media is not working in my django project...need some help
http://www.catb.org/~esr/faqs/smart-questions.html
Cesar
nope, done that..no migrations to apply
Check deeper... Makemigrations && migrate
Anonymous
Check deeper... Makemigrations && migrate
yes,I already applied it , first time when I applied it then it was updated ..