clouded
I asked how to do it, not why I shouldn’t
We try to give good advice only.
Дмитрий
Thanks
clouded
Thanks
Think about it, what does Django do that you cannot do in your app created using Kotlin, especially in the context of wanting to run Django on the mobile device?
Дмитрий
Yes
Дмитрий
I have existing Django app
Дмитрий
With SPA
clouded
I have existing Django app
Well, I can't help with running Django on mobile but it would be simpler to put it on a server and use it from there, which enables you to use it from everywhere, not only from your phone.
BHUVI🍅
Does csrf token and sessions are mandatory for a secured web app!
The Inspired
what about the migration history and and the db? I've transferred the data using data migration.
when you delete the app folder, that app's migrations are also deleted with it, the only migrations stay with in the D B tables... that is why I said to double check if there are any other app's tables that depend upon the tables of the app that you are going to delete
Anandhu
is there any pdf which contain django theory questions.... ?
Doragonsureiyā
is there any pdf which contain django theory questions.... ?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Вячеслав
Hello. I'm working on new project with poor optimization and want to do something with it. I opened debug toolbar and saw that django makes nearly 5k queries to db because of n+1 problems. Of course there are a lot of similar queries and doubles. <script> const cars_fast_outcomes = {{ user.get_cars | jsL }} const categories_fast_outcomes = {{ user.get_outcome_categories | jsL }} const csrf = '{{ csrf_token }}' const current_user_id = '{{ user.id }}' let user_permissions = {{ user.get_permissions|js }} let drivers_cashbox_base = {{ user.get_drivers_additional|js }} let locs_cashbox_base = {{ user.get_locations|js }} </script> base.html has such strings in the beginning and these methods are called a lot of times when page renders. I think I have to pass this data from my views, but is there a proper way to do it? I mean there a lot of views in project. Editing all of them would be pretty strange and wrong obviously. UPD: I found out that user.get_cars() returns json, that is created by calling .json() on every Car object (new database queries entail). Something has to be done with such pattern
ishaan
I want to convert my django Admin into a advanced cms with good ui, is there any library? i tried integrating some like django suit but it's not working
Abhi
Try on Google or GitHub you will find many resources
ishaan
There are many way to make custom cms
I m trying, if u have worked on anything like this, suggest
munchen777.eth
every time a product adds into new ‘session’
mbk
Hi I am getting an error in admin panel I have created django form and been using it form adding products I am getting error whenever I type 'Make' word in the description of the product
mbk
Show the error
The Specified URL cannot be found This error is coming up. Seems like it is not getting redirected
Charly
The Specified URL cannot be found This error is coming up. Seems like it is not getting redirected
That doesn't seem to be related to what you write in the description field
Charly
show your relevant code
Doragonsureiyā
every time a product adds into new ‘session’
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://dpaste.org, https://hastebin.com, https://bin.kv2.dev or your favorite one!
mbk
check if you have set correct url name in templates urls.py.
URL name is working for every other products which do not have keyword 'Make' in it
mbk
It is only throwing error only for products containing 'Make' keyword
mbk
If I use Ensure instead of make in keyword value it is working fine
Shayan
Hello guys i have a problem when i run python 3 manage.py migrate And then terminal show me this eror Django.db.utils.integrityEror : NOT NULL constraint failed : new_app_ho.author This is my author in model.py : Models.textfield(max_lenghth=20, default='Unknown'
Shayan
Try TextField
I have TextField in my author
Abdullo
And use one TextField
Sakshi
Is there any course fir Django available on YouTube which cover almost all content?
M. Hossein
I wanna be able to dynamically add languages to django through admin or views. Then make and complie messages. How can I do it?
Farzad
I wanna be able to dynamically add languages to django through admin or views. Then make and complie messages. How can I do it?
One way is to save those messages into database and use celery + google translate api to translate and save those messages into database whenever you add a new language
Farzad
Any way to use po mo files?
I don't know about that
P_
The author of the post in my post class was directly pointing to the user class in the app account, now I changed it and I want it to point to the profile and then the profile is linked to the user, that is, the author of the post comes from the profile class, but when I go to the admin page for the post author I get this error when I set it ‘integrity error’ foreign key constraint failed 😨
Abhi
I think he is an underrated channel
Namon
Hi Guys i am facing an issue where i get "'WSGIRequest' object has no attribute 'get'" exception. I have done a lot of trouble shooting with GPT and Stackover flow but seems helpful
Namon
Impossible to help without details. Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
i have a 3 stepper form. Each form has its own forms that after validation, step one moves to the next step. After entering data into step, it ggives this error
Namon
I suspected it to be with the forms validation but have step over and over again each line and got no error
Fred
guys why need celery?
Abhi
guys why need celery?
Celery mostly used for asynchronous tasks like messaging or any queue method every task is doing in the background with interfere application
Ak
How to use cron job in pythons it looks very difficult than laravel Any suggestions 🤔
Charly
For cron job
No is not
Ak
No is not
What do you understand by cron
Ak
Dear admin
Charly
What do you understand by cron
I do know what's a cronjob. But you are mixing things. For Cron like operations is Celery Beat not just celery
Ak
I do know what's a cronjob. But you are mixing things. For Cron like operations is Celery Beat not just celery
Yes you are right but 99 percentage use of celery for task scheduling or cron
Charly
Yes you are right but 99 percentage use of celery for task scheduling or cron
If that would be true then beat would be part of celery
Ak
If that would be true then beat would be part of celery
I will do some research on it tomorrow
Bet
I have an error, but I have already corrected it, and so far, nothing has changed.
Bet
don’t not send image to this group?
Bet
TypeError at /authentification/login/ login() missing 1 required positional argument: 'user' tha is there error
Nima
https://stackoverflow.com/questions/78796494/keyerror-at-verify-order-id does anyone know how can I fix this?
Eternity
TypeError at /authentification/login/ login() missing 1 required positional argument: 'user' tha is there error
login() function takes 2 arguments: request and user you want to login. You forgot to pass a user
pranav
how to send in app notification through django
pranav
suppose an user registers or any event ooccurs then i want to send an in app notification how can i achieve this?
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
[25/Aug/2024 15:01:33] "GET /static/myapp/style.css HTTP/1.1" 404 1804 i have added a background color using another file style css, and i used {% load static %} but bg color is not working
Text
I want to improve myself by making a project with Django, can you post any project videos?
Dipanshu
I want to improve myself by making a project with Django, can you post any project videos?
https://youtu.be/3Z436eICOw4?si=Zr4n3KHQz129-6cH idk if this helps
Pablo
I want to improve myself by making a project with Django, can you post any project videos?
You could also check this out. I think it’s cool. You learn how to build a chat web app with web sockets and Django channels https://youtu.be/U_p1B3rNobo?si=8H6XueKjvLcRCp4x
Anonymous
Can someone send a link of a Django website created so I can see how it looks?