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
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.
Haha, you assume _wrong_ - I'm only dealing with my *brain*. I'm experimenting with my favourite techs and learning wagtail at the same time for future client work. I want to provide Django/Wagtail over WordPress as _often as possible_
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) πŸ‡³πŸ‡΄
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 . 
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
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)
Rohan
yes
Yes for which one?
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
inchidi
so i want to display a table in admin area where both model fields will display
register it https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#modeladmin-objects
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
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
I don't see a restart option in the app portion of the compose, which may be helpful. Also noticed that your migrations aren't part of your image build. It may be worth putting those processes into the Dockerfile for your django image
Trev
Correction: I do see a restart option.
Alexander
you are loking for something like this ?
thank you for link, looks interesting...
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 ^^
Mirco
I had not! 👍👍👍
You have ignored mine ☹️ lol I suggested you the same link this morning 😂😂😂😂
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.
Mirco
omg... stress :D
🤣🤣🤣
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
Marko
Do you wanna a more responsive col ?
https://imgur.com/a/Zsc1NfQ https://imgur.com/a/gwoGAdr would like to get 2 columns view between 1 and 3 is there any solution?
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
but it loads from model