Lelouch
Guys suggest should i do Rest api with django + angular in this free time If yes them from where ??
Shubham
I'm not very sure about angular as I hardly found tutorial
cj
use any front-end library you want, it doesn't matter to Django
Lelouch
Post ones i will click
Shubham
Thanks
cj
Post ones i will click
use google.com or duck.com to search any front-end library you want
cj
Why not angular ?
I didn't say not angular I said use any library that you want 🤷🏻‍♂️ it doesn't matter to Django
Shubham
Btw can anyone tell me. I have updateview which is very perfectly fine. But user is able to submit even when he doesn't makes any changes to the form... Any suggestions on how I allow the user to submit the form only when he has made changes in the form?
Shubham
Why not angular ?
Angular is one of the front end library
Shubham
You may want to look into react. It is also front end library popular with django
Lelouch
I m thinking to make social network site from django Is this a good project I want to add chat in this too
Shubham
are you tracking the information about what user creates/changes each registry of the model you use for the form?
I didn't get you. But say there are 5 fields rendered to the user through an updateview. I was thinking of allowing the user to click on submit btn only when he has made changes in any of the rendered fields. Else (when user has not altered any field) I don't want to allow him to click on submit btn (may be disable and keep it). It there any workaround for this other than using java script?
Shubham
No
cj
No
then what you want to do won't be possible 🤷🏻‍♂️
Shubham
Ohh
Shubham
Suppose if I had than how i can do it?
cj
Suppose if I had than how i can do it?
just check if the current user is the same as the one in the fields you use to track the creation/change information and let him to make changes or not 🤷🏻‍♂️
Shubham
Ohh that way... Wait I think I could not explain to you my question properly
Shubham
I'll use js and do it
Shubham
Thanks man 🍎
cj
I'll use js and do it
🤷🏻‍♂️ then someone can just change your JS things using browser development tools and break your back-end 🤷🏻‍♂️
Shubham
Actually what I'm try to do is. See you have registered on my site. Now you want to update your details. The site loads you your data to edit (which is Updateview from views.py), now the problem is even when you don't change anything in your details you can click on submit/save button it will do a post and save the data (although nothing was changed). So i want to enable that submit/save button only when you change your details in the textboxes
K.
How can I apply hexagonal architecture to a Django server-side-rendered-view application?
Anonymous
my tip for url files, use *list instead [] + [] and create endpoints.py for path for urls/endpoints (like drf urls etc): # endpoints.py from django.urls import include, path from rest_framework import routers router = routers.DefaultRouter() endpoints = [ path("auth/", include("djoser.urls")), path("auth/", include("djoser.urls.jwt")), path("rest_auth/", include("rest_auth.urls")), *router.urls, ] # urls.py from django.contrib import admin from django.urls import path from .endpoints import endpoints urlpatterns = [ path("admin/", admin.site.urls), *endpoints, ]
Shaun
😒🤦‍♂
What is the hell is the deal with these questions!? It's insane how bad this group has gotten.
Ghorz
What is the hell is the deal with these questions!? It's insane how bad this group has gotten.
I could also tell you to write code for me. Godaddy has instructions for hosting app. This is django help group not shared hosting and filezilla group. Capish
Daro
Damn u are mean
Doragonsureiyā
hi tell me how to host uber in django
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Shaun
you devil u.
Shubham
SK
i try to install mysqlclient
SK
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
Akchhay
Hello everyone, I have deployed my Django app in pythonanywhere.com but when I go to admin page there is no css effect as in production
Akchhay
Can anyone help me
SK
also i download this file " mysqlclient-1.4.6-cp38-cp38-win_amd64.whl" and try to install mysqlclient, then i found this error :' mysqlclient-1.4.6-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.'
SK
how to install mysqlclient
Abhiram
How can access camera and capture pictures using django
Akchhay
@skapse12 you need to install wheel
SK
@Akshayalok i already install wheel
Akchhay
@Akshayalok i already install wheel
Which Linux flavor you are using
SK
windows 10
Akchhay
windows 10
In that case you need to install mysql driver
Akchhay
For windows
SK
okk
SK
same error
SK
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
Anonymous
Hello
Anonymous
Can anyone gives some help, or advice?
Anonymous
I must add to a group an objects on saving it to database
Anonymous
I have model Group(models.Model):
Anonymous
name = models.Charfield
Anonymous
pigeon = models.ManyToManyField(Porumbei)
Anonymous
I want when add new pigeon to put them in a group
Anonymous
Does anyone know how can I implement that?
Akchhay
I want when add new pigeon to put them in a group
Can you please give more information like what you are expecting
Anonymous
@skapse12 Every pigeon in the database must belong to a group
Anonymous
I need to add each pigeon when it is created
Anonymous
I have 4 different groups, depending on form fields value, the pigeon must be added to right group
Anonymous
And I want this to be automatic because I don't want the user to deal with
Anonymous
肺炎
Anonymous
菠菜
Anonymous
Hi, I'm ussing GeoDjango. I'm havving an issue with OpenLayersWidget and OSMWidget. When the map si loaded through a form in a template, It doesn't show up the pencil to mark an edit points. Is this a limitation or AM I doing someting wrong? I see that inside the Admini interface this error doens't happen
Vishu
I need help