Maxim
Guys how make spa app by python?
this is not a Python group
Zulik
In Django i mean
شهرزاد محمد
Guys how make spa app by python?
You are talking about frontend not backend
Maxim
Guys how make spa app by python?
Django is primarily a backend framework SPA is a term mostly related to frontend
Shubhtiwarii
I need help in defang.io deployment
Shubhtiwarii
My project
Luis
What have you tried?
Jet
Guys how make spa app by python?
However this is also possible, it's not advisable. Staff like inertia and htmx might help you do this. But frameworks like django are primarily great for backend, strong backends we say. Frameworks that have tried to do both backend and SPA frontends have somehow remained premature. I would strongly advise you keep django for what it does. Serve your APIs with drf and consume using something like vuejs, angular or react. This will ensure that you're using the right tool for the right job.
mbk
Guys I need to learn web sockets using django Please provide suggestions or valuable information
Ahmad
How can solve this django.db.utils.OperationalError: foreign key mismatch - "hotels_hotelimage" referencing "hotels_hotel"
Ahmad
Send your models
Thanks I solved it
Sanket
Is there any way? I have one model in production server. And also I have lot of data in table. But. Now I have to split this model into two part. I don't loss my live user data. Is there any way I modify table and don't loss my data?
奈姆
you have to create the new model, and migrate the data if you plan to remove any existing model attributes.
rtg
hi! 😉 Does someone use django-recaptcha?
rtg
i cant configure ok
Doragonsureiyā
rtg
i get a recaptcha input in form, but not a recaptcha style, only a normal input
🐾S
Yes
Can share how you did it? And resources too please How to connect react to django
𝚆𝚘𝚛𝚕𝚍𝚕𝚎𝚜𝚜
Talking about captcha , i have a question too I saw a website handling throttling differently , because after enough requests it'll simply show a captcha form instead of fully blocking the client Is this handled in Django or elsewhere?
Bouyant
I'm working in Django, let's have a model have unique field(i.e unique=True) and I want to update this earlier value with new value. Here my idea to do: The new data may contain a unique field value or new value ,so what I want to do,when this unique value is not changed remove from the validated data using validated_data.pop(field name),and update other changed data , however if changed check in database from other's and if not found update it.ERROR is constraints violation how solve this?
Prasanna
Hi Team, Currently I am running Django app in my local server http://127.0.0.1:8000/ I have few features in my app. 1.First when I click 'http://127.0.0.1:8000/profile' path where it shows user details. 2. When I click back button it redirects to http://127.0.0.1:8000/ path. 3. Second http://127.0.0.1:8000/logout where it displays user logout msg. 4. But when I click back button it is redirecting to http://127.0.0.1:8000/ this path where it should have redirected to http://127.0.0.1:8000/profile path please someone suggest/share idea how the path should redirect to http://127.0.0.1:8000/profile
@SamahTech
For serving media in django on organizational server, which is better, nginx or apache?
cj
For serving media in django on organizational server, which is better, nginx or apache?
the one that you know better, both are good, but people tend to use more nginx, but again, use the one that fits your needs
roman
Hi, what are the best practices to redirect users from certain pages if they are already logged in? LoginView already has such functionality using redirect_authenticated_user attribute and as far as I understand, this is achieved by overriding the dispatch method and checking this attribute. However, there is no such built-in functionality for other views, or in general, hence my question. Maybe the way to do it is to copy the dispatch method implementation from LoginView and for example move it to a separate mixin, or is there perhaps a more concise way?
White
Hii someone please help me to solve my problem
White
I made CRUD function for Employees details table and when I deleted the particular user table they show me page not found I really need your help to fix this issue
Pikou
Hi Does anybody have the pdf of this book: 'boost your django dx'
vinho
Hello everyone. I am new in django. i have installed django in a virtual environment i have created a project but when i runserver i get this message "watching for a file changes statReloader". can someone help me
vinho
What's the problem?
My server is not running. Just stuck on
vinho
Stuck on what?
When I type the command python manage.py runserver I get a message watching for file change with StarReloader and nothing happens.
A.M.I.R.
It’s mean server is running
ARYAN
My static folder of the project is not connecting to the server
Никита
Check your Settings (STATICFILES_DIRS)
ℳɾ.ℳơħάʍάđɾ૯zά
I want a good book for advanced Django. If you know of one, please recommend it.
Д
Hello everyone, I want users to be able to leave a review and give a rating from 1 to 5 stars to a post. I'm a beginner, could someone guide me on how to do this? Let's say I have a Posts application with a Post model. It's important that a user can leave only one rating, and I also need some logic to calculate the average rating from reviews. I've created a Rating model, and it works; I've linked a field in it to the Post model ID, but I don't know what to do next.
Suryo Adhy Chandra
I now about existing a lot of books about django, but i don't know which from them its good
In my opinion, you start to make the first project using one of the books you have read. Then read other books to find new ideas according to the style of the book maker.
A
Hi any good resource on django 2FA.....
Fahim Reza
Hi friends, do you think the best reset_password in Django is to create a custom_reset_password or use django.contrib.auth or ...?
شهرزاد محمد
Fahim Reza
django-allauth
I will definitely check. Thanks🤝
H
Could anyone help me for building the project
Doragonsureiyā
Could anyone help me for building the project
No one can help you until you explain your difficulties.
H
I want to create 2 user admin and normal user. Where admin user can add an android app as well as the number of points - earned by user for downloading the app. (Please do not use the default Django Admin) and User can see the apps added by the admin and the points. The user should be able to see the following fields.where the user can see the apps added by the admin and the points. The user should be able to see the following fields.
clouded
Their Name and Profile Points Earned. Tasks completed. Option to upload a screenshot
It appears you have not went through the experience of following the official Django tutorial. Does the appearance deceive me?
clouded
How to create admin without using default django admin
Do you differentiate between Django admin and Django application admin?
H
Do you differentiate between Django admin and Django application admin?
Means django admin for project level but i don't know about django application admin?
clouded
Could you please help me where I can learn this
https://stackoverflow.com/questions/44109/whats-the-best-way-to-extend-the-user-model-in-django https://forum.djangoproject.com/t/how-does-extending-the-user-model-work/28206 https://docs.djangoproject.com/en/5.0/topics/db/models/#model-inheritance https://realpython.com/manage-users-in-django-admin/
Sakshi
Hi everyone I want one help... I have code where I fetch lot of data from 2 collection according to date.. But this api is taking 7 seconds to show response how can i optimize this?
Sakshi
Data fetching may be.... According to date
奈姆
Data fetching may be.... According to date
You can install django-debug-toolbar to get more debug info.
Nishanth Siraj
Hi did anyone tried channels or Daphne with rest api and frontend configuration?
Nishanth Siraj
Is it possible?
Denys
Hello, I made register and login view with endpoint using JWT. I add refresh_token to httponly cookie once logged in. How can i delete that cookie once user logged out? When I'm trying to use response.delete_cookie("refresh_token") it just adds new cookie with an empty string https://pastecode.io/s/mtqcne6f