Hernan
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
cj
use any front-end library you want, it doesn't matter to Django
Lelouch
Lelouch
Post ones i will click
Shubham
Thanks
Lelouch
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?
Lelouch
Shubham
You may want to look into react. It is also front end library popular with django
cj
Lelouch
I m thinking to make social network site from django
Is this a good project
I want to add chat in this too
cj
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
Ihsan
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,
]
Ghorz
Shaun
😒🤦♂
What is the hell is the deal with these questions!? It's insane how bad this group has gotten.
Daro
Damn u are mean
Shaun
Ghorz
Shaun
you devil u.
cj
Shubham
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
Akchhay
SK
@Akshayalok i already install wheel
Abhiram
Akchhay
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
SK
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