Mirco
Perumal
How to embedded the machine learning in python Django??
Perumal
Any link
cj
Any link
https://google.com or
https://duckduckgo.com
choose the one you prefer
Perumal
Which one is better to embedded flask or Django
Shaun
depends but flask is lighter. try that for now
rahidul
how to deploy django website in any hosting server?
Anonymous
heroku is the best server for deploying django apps
Anonymous
https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html
Anonymous
rahidul
Anonymous
if you get ssh access these steps are same
007
Premraj
What exactly does it mean when it is said that "mod_wsgi" embeds wsgi into the server or in general when it is said "mod_python"/"mod_php" embeds python/php into the server ?
Anonymous
Neo
does "required_css_class" work for formset_factory/inlineformset_factory
Neo
my form is showing 'required' attribute in labels but not in input fields.
I have used "required_css_class = 'required'" in my ModelForm based form and used it in formfactory
Vaibhav
You want to deploy using some cloud service like aws then use nginx, supervisor and gunicorn
Mirco
Again ?
Vaibhav
It got reposted by mistake
Mirco
👍👍👍
Vaibhav
Instead I have answered the question😅
Alibek
Hello, I have 2 dev servers - django w/ DRF and vue (axios). I use DRF's session auth: on login it returns session key. How do I use that key in axios. Also DRF doc says that I should use valid CSRF token w/ session auth, how do I set it in axios?
Mirco
Alibek
Mirco
yep
you could save the token into localStorage and get it from there ( for instance )
Alibek
Well ok, I'll try it
Alibek
Thanks
Mirco
Thanks
https://docs.djangoproject.com/en/2.1/ref/csrf/#ajax
this one is a must read if u are using SessionAuth
Alibek
Neo
Hello, can somebody tell me if there is a way to maintain css class while redering form manually.
default error class is text-danger when i render using form.as_table but when i make form using form.field classes get lost
Petr
Hi!
does everyone has experience with FilteredRelation & prefetch_related compatibility?
Petr
Hi!
does everyone has experience with FilteredRelation & prefetch_related compatibility?
i.e. when prefetch query uses incorrect alias:
SELECT DISTINCT ON ("courses_course"."id")
("billing_promoactioncourseparams"."promoaction_id") AS "_prefetch_related_val_promoaction_id",
...
LEFT OUTER JOIN "billing_promoactioncourseparams" promoparams ON ("courses_course"."id" = promoparams."course_id" AND (promoparams."promoaction_id" IN (1, 2, 4)))
...
so ("billing_promoactioncourseparams"."promoaction_id") AS "_prefetch_related_val_promoaction_id", should be (promoparams."promoaction_id") AS "_prefetch_related_val_promoaction_id",
Anonymous
Anonymous
Hey guys, I want to store key value pairs(dict) in my model using sqlite3 database internally. Is there any easy way like we perform models.Charfield to get a string in a similar way.
Thanks in advance.
Petr
Anonymous
Anonymous
How can I switch to postges without loss of data?
Petr
Petr
you can always specify more than one database connection in DATABASES
Anonymous
Could you share a link that would be a great help coz I am a beginner here.
Mirco
Anonymous
Oh okay I'll look it up
Anonymous
Thanks for the help🙌
Anonymous
Does anybody know a great video tutorial for Django? Free or not, doesnβt matter.
Anonymous
Yup plural slight
Anonymous
LinkedIn learning
Anders (izzno / gooood) π³π΄
How do i remove an item from admin? I need to register it so I can add things in a popup in another model but this model as a single CRUD model is not needed
Anders (izzno / gooood) π³π΄
Its a model named "KitItems" in which I store items and quantity for "kits" which is the model i use.
Gio
Hello there
I'm creating this app for voting and I need some help on permissions
When the user submits an answer, the answer is transferred to a table called polls_answers with USERNAME,NAME,SURNAME,CHOICE1,CHOICE2
What's the best way to restrict users to see other users' votes and overwrite them. I don't quite get how to write custom permissions
I need the user to access only his vote and nothing else
Mirco
Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
Just follow it.
Mirco
Gio
Ah OK, that tutorial
Mirco
Yup 😁
Anders (izzno / gooood) π³π΄
Have a look here
Thanks, I can override the list with this ;)'
Mirco
Anders (izzno / gooood) π³π΄
The way i wrote "whis this" reminded me of an old German joke. A german officer guards the SOS radio at a lighthouse when he recieves a MayDay. β"Maday Maday Mayday, we are sinking. The officer thinks a bit before he picks up the radio and aswers: β"What are you sinking about..."
Mirco
😂😂
Disekurity
😂😂
Disekurity
Hello peeps
Disekurity
I'm actually having problems with usage of ForeignKey...
Mirco
Disekurity
I've tried to send the images to explain better but it doesn't send
Rohan
Disekurity
Like?
Is it possible to send images in this group???
{Β°_Β°}
Hihi funny one😂
Guillermo
Disekurity
Mirco
Use pastebin pls
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
Done!
Title: django code
Lang: python3
-> https://ghostbin.com/paste/kxf2g