Rohan
:(
Mirco
Maz
..
Hello, felllows. Does anybody has an electronic version of this book 👇 If yes, can you share it please with me. Thanks
Mirco
N S
What do you mean edit multiple records of a model?
I have a student who has 6 subjects in each semester and there are 8 semesters in total so each student will have 8 records.
My question is how to update multiple student marklist if the data is stored like the way i have explained
Mirco
make a search on google before asking here and if just related to python regex, ask into python group pls
Rohan
N S
https://dpaste.de/mE3K
N S
i have done this using modelformset_factory but i cannot save that data because of a id field which is a primary key is there a way to remove that field from the modelformset
N S
my views.py https://dpaste.de/p48X
N S
my forms.py https://dpaste.de/pdxT
Wanjohi
Hello Everyone. Anyone who can guide on deploying a Django app on Windows Server. This is my first time and it's been hectic. Have managed to run the app on the server. I need to enable auto-restart(In case the server is down) with either IIS or Apache. This is where i'm stuck. Help appreaciated!
Alexander
Alexander
yes
Alexander
https://blog.docker.com/2018/01/docker-windows-desktop-now-kubernetes/
Alexander
you can even use Kubernetes
Alexander
just make sure Docker for Windows autostart with Windows
Krunal
Need to know about how can we access 2 database in django
Krunal
Is it possible?
Akash
Hi
Akash
Can any one suggest how I can start django 2 and suggest the video tutorials also
And 1 more thing for learning django knowledge HTML,CSS is required
Alexander
read django docs and django girls docs
Alexander
use Django as API generator (with django rest framework or graphene-django) and js frameworks like Vue.js
Victor
Hello
Now I can pull users in my DataBase by script from cmd ( python manage.py pull_users)
How can I do it on the website( not by cmd) ?
Mirco
Victor
Mirco
Wanjohi
Alexander
read Medium articles, a lot of information there...
Anonymous
what is the main purpose of ORM in Django
Anonymous
ok but what the objective for orm role
Anonymous
if the data from rdbms it is in table format but when i use non-rdbms how django orm
Mirco
Anonymous
tell me please
Mirco
Anders (izzno / gooood) 🇳🇴
I've been at this for a couple of hours now:
I am using DRE's viewSets to serialize models, but i need one pertigular models retrieve to be post as its PK can not be sendt over GET requests. Any idea how to override the retrive and force POST ?
Mirco
Anonymous
Any have you ajax to submit form. ??
Anonymous
I have a doubt in url.
Anonymous
Suppose url I'm in a url. localhost:8000/courses/21
Anonymous
I want to pass course id to another view.
Anonymous
In that case do i need to specify url.. As localhost:8000/courses/21/addid ?
Anders (izzno / gooood) 🇳🇴
Hense I can't override the GET
Anders (izzno / gooood) 🇳🇴
ah, and send back a 404 or method not allowed on GET :)
Mirco
Anders (izzno / gooood) 🇳🇴
Nice, thanks ;)
Mirco
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Method not allowed...
Anders (izzno / gooood) 🇳🇴
The answer back is method not allowed (POST)
Anders (izzno / gooood) 🇳🇴
The method is decided elseware. Not in the retrieve function...
Anders (izzno / gooood) 🇳🇴
I think its a wrapper of viewsets.
Anders (izzno / gooood) 🇳🇴
I am am only doing it like this to keep the browsable API, but I will loose that with POST anyway, so I could just write the view manually.
Anders (izzno / gooood) 🇳🇴
Not a problem.
Mirco
wait a sec, but I'm not understanding why you wanna use POST with retrieve when retrieve is used to get instance
Anders (izzno / gooood) 🇳🇴
get data you mean ?
Anders (izzno / gooood) 🇳🇴
get a model instance and send back
Anders (izzno / gooood) 🇳🇴
Its becaouse the primary key s in this DB are part numbers and some part numbers contain "/" and other nogood characters
highnes
How can i create a page that only opens if loged in as a staff
Anonymous
Hello friends, ca some help me to create a polygone class as a table on my database?
Anonymous
can*
someone*
cj
Anonymous
The main idea is I want, from a captured (with screenshot) image from Google maps, I want to made her a field from registering the coordinates respectively from 1 to n, to make or to draw a polygone inside the rectangle (the crop for example) I captured
cj
cj
can*
someone*
you can edit your messages in Telegram 😉
Anonymous
Aadhi
Can we able to save the queryset values into database along with form object while using model form?????
Aadhi
Can anyone help ???????
cj
Ильяс
Hi people
Ильяс
Could you please explain what is my mistake
Ильяс
NoReverseMatch at /users/register/
Reverse for 'activation' with keyword arguments '{'uidb64': 'MQ', 'token': '55y-763a8e312586de8d2119', 'email': 'achekeev88@gmail.com'}' not found. 1 pattern(s) tried: ['users/activate/(?P<uidb64>[^/]+)/<str:token/(?P<email>[^/]+)/$']