محمد دلشاد
in foreign key relation
Anonymous
Anonymous
in views . py def delete (request,dy_url)
Anonymous
do you guys create api inside app for the whole project or inside each project u create api
Anonymous
what is the best appoach
محمد دلشاد
do you guys create api inside app for the whole project or inside each project u create api
in my opinion individual apps api would be bttr for re usability purpose
Sindhu
محمد دلشاد
Jun
which youtube channel is best for class based views, actually I want to change the codes from function based views to CBVs.
Sindhu
yes
Tq u I got it
Дауран
Hello formmixin and detailview , does anyone work with these functions
Sharad
Can anyone tell me how to normalize tables in django?
Marcelo
trying to use requests package with django, but i getting conflig, its importing the wrong requests package, anyone know how to do a workround ?
Sh
Assalamu alaikum. Are there any open source projects to contribute?
Sai
I am getting the error"OperationalError No such table: project name" In the project while I am selecting the database in the admin panel. Friends please tell me why I am getting this error in my project
Anonymous
are you registered your model in admin.py
Pradyum
https://stackoverflow.com/q/64085953/7999665
Pradyum
I was not able to explain my problem here
Pradyum
so i put that thing on stackoverflow
Jo
Which is the django's latest version?
Pradyum
Pradyum
with long term support
Mohammed
If you know laravel or another backend framework, you can handle django with 2 weeks
Can anyone help me please in understanding. session with real time example
Prosto
Hello dear djangers! According django docs to get date I can use smthng like {% now "jS F Y H:i" %} it will show date month year time. So it possible from templates, to get this {% now %} with today+2days as output date?
Mirco
thank you, i know this long way)
It's the easiest way
Prosto
The One Only
Pradyum
Hi anyone can help me in validation part of django rest framework
Pradyum
https://dpaste.com/ADBBZSYD9
Pradyum
Am trying to put validation under short_name
Pradyum
worst part its not even getting called
Pradyum
Please find the code snippet under dpaste
Manik
Logging an exception to db in django?
Sumit
Hi, I have launched django with apache, it works well but when I have migrated my database to postgresql it is giving permission error, although DJango with postgresql is running with runserver but the problem is with running with apache. Anyone please help me.
Meba
why Py python manage.py runserver
Meba
so use python manage.py runserver
Sindhu
Python manage.py runserver
NaamMainKyaRakhaHai
try to make the virtualenvionment or usethe Anaconda for the same. so you can ective the versitual env and avoide the above mention error
Anonymous
Can someone help me with django? my static files are not being served to my localhost.
Anonymous
I hve been stuck and trying various ways since morning.
Anonymous
I would appreciate if anyone could help me.
Sindhu
What is the error
Anonymous
Images???
and css file .
Doragonsureiyā
Can someone help me with django? my static files are not being served to my localhost.
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Sindhu
and css file .
You include <% load static%>
Anonymous
You include <% load static%>
Yes. If you want, I can share my code with you.
Sindhu
Yaa
Sindhu
U can
Idan
Looking for Django Rest API help
Doragonsureiyā
Looking for Django Rest API help
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Idan
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Short question, I am trying to understand if I can run a UPDATE method if CREATE raise an exception
Idan
My method is working on CREATE but if the user is already exists I want to make UPDATE instead. Is that even possible?
Idan
I guess my question should be more specified. I work on Create in generics.UpdateAPIView then sending my data to serializer using is_valid() method. The problem starts when is_valid() doesn’t accept my data
Idan
I use both
Idan
At the same class
cj
why aren't you following REST as it should be?
Idan
I can’t separate it
Idan
I am sending a list of users that may already exist in the db
Idan
Cant filter it before
cj
/api/v1/users/ <- to LIST and CREATE /api/v1/users/<user_id>/ <- to GET, UPDATE and DELETE
Idan
So I want to create a new object only for those who are not in the db and for those who are already exist just try to update inseam of throwing an error
M
Yes. If you want, I can share my code with you.
Run once collect static and check if files coming also check if css getting override by other css make sure u include correct path in setting.py
Idan
Can I call UPDATE inside validate?
cj
Can I call UPDATE inside validate?
you are building a custom view, then you have to do things manually... use try/except or whatever you want
Idan
Got it.
Idan
👍
Hjk
Can django path call a fun that is defined after else eg - else: Def xx(): So can i call this fn from urls.py ???