Anders (izzno / gooood) π³π΄
That should not be a problem
Anders (izzno / gooood) π³π΄
But you dont need an API to recieve a form
Trev
I could use Wagtail's built in forms feature, that's true....but I'm building quite the franken project
Trev
Wagtail cms, with vuejs powered components as wagtail streamfield blocks
Anders (izzno / gooood) π³π΄
No, i mean why not just craeate a custom endpoint for your ajax requests ?
Trev
I had wondered if I was overcomplicating things.
Trev
Just use a url route for a post request?
Anders (izzno / gooood) π³π΄
yes and create a FormData() in JS and handle it like a normal form in django
Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
Then return what you need...
Anders (izzno / gooood) π³π΄
(or add to your model)
Trev
I'll give that a whirl. Thanks for reducing my mental cruft
Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
GL
Anders (izzno / gooood) π³π΄
I use Flask for the sort of thing you are describing, but assuming you are using wagtail I assume you are dealing with some beast of a system/app.
Trev
So I am re-making my portfolio/website using Wagtail & VueJS powered custom Wagtail streamfield blocks
Trev
Added bonus: My current portfolio is 100% React based, so if I pull it off well, I'll get a _mostly_ static website that has a blog.
Trev
I wanted the endpoint for website inquiries, and will use Wagtail's implementation of rest_framework to create dynamic blog components (like a fancy blog article filter)
Trev
...or search
Trev
Maybe by the end of it I'll have something worth sharing with the community in the way of a app plugin. Especially where the streamfield custom blocks are concerned
Luke
Hello guys.
How do I get a date picker in my forms?
Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
amit
i am a research student and i wanted to crawl youtube links with only www.youtube.com/watch?vedio_id along with there video title of that youtube link in a csv specific format .
i managed to crawl www.youtube.com/watch?vedio_id but couldn't fetch video title.
also i couldnt manage to crawl medium.com with error (HTTP Error 403: Forbidden)
Much needed help .
amit
Anders (izzno / gooood) π³π΄
I am having trouble with docker compose, django crashes becouse the DB does not fire up in time for django to connect, even though i specify the db as a dependacy for the django app postgres is not ready to recieve when django starts. I can get around this by doing docker-compose up again, but this is anoying!
https://pastebin.com/mLyxP5z3
Mirco
Mayank
hi
Mayank
i need some help
Mayank
is there anyone
Mayank
?
Mayank
please help me
Mayank
its urgent
Anonymous
Tell
cj
🤷🏻ββοΈ our magic balls are broken, we can't guess what do you need help with, if you don't say it 🤷🏻ββοΈ
Mayank
i want to display table only in admin sections
Mayank
how to do that
Mirco
how to do that
you mean inside django admin or view with admin premissions ?
Eugene
how to do that
You try ask google "how to customize django admin panel"?
Alexander
do we have any roadmap for django async? (something new since summer article)
Mayank
Rohan
inchidi
Mayank
i want to display tables of all models
Mayank
like i have models for investors and investor plan
Mayank
so i want to display a table in admin area where both model fields will display
Tommaso
Hi, do anybody know how to solve the (2059,βAuthentication Plugin 'caching_sha2_password'β) problem in Django? It happened when trying to connect django with a mysql database and running the server. https://stackoverflow.com/questions/54633968/2059-authentication-plugin-caching-sha2-password-when-running-server-conne
EDIT: I solved it doing so https://stackoverflow.com/a/54649081/7658051
Trev
Trev
Correction: I do see a restart option.
Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
Anders (izzno / gooood) π³π΄
Am I way of track syncing the /migration files ?
Alexander
what do you think about https://www.starlette.io/ ? do you use it in production? Also look at https://github.com/erm/charlette
Trev
Dammit I suppose you need PG up to migrate anyway @izznogooood
Anders (izzno / gooood) π³π΄
yepp
Anders (izzno / gooood) π³π΄
but its working now (on the server) so 🧐
Anders (izzno / gooood) π³π΄
good we are early in development 🤪
Trev
Bahaha
Trev
Maybe this is actually helpful? https://docs.docker.com/compose/startup-order/ assuming you haven't seen it
Trev
@izznogooood ^^
Anders (izzno / gooood) π³π΄
Mirco
I had not! 👍👍👍
You have ignored mine βΉοΈ lol
I suggested you the same link this morning 😂😂😂😂
Trev
Trev
I guess I had @izznogooood at the right time
Mirco
🤣🤣
Trev
Side note: Docker's amazing, but it's also the most "Googly" deployment system. It rarely works for me without googling at least 40% of what I'm trying to do.
Anders (izzno / gooood) π³π΄
Mirco
Marko
hi, how it is possible to change column count from 3 to 2 not to 1 from 3 while resizing window i have used the code to create 3 columns https://pastebin.com/a3Uidyu4
Mirco
Mirco
What do you mean with between 1 and 3 ?
Anders (izzno / gooood) π³π΄
I think he want it to go: 3 2 1, not 3 then only one when he resizes
Anders (izzno / gooood) π³π΄
If you are using bootstrap you have to apply a number of classes to your rows to tell it how to behave (how many rows of 12) it should take up in different sizes.
Anders (izzno / gooood) π³π΄
So one row could have both col-lg-4 and col-md-2 class
Marko
Marko
but it loads from model