Anders (izzno / gooood) 🇳🇴
I'll save that for later, i think its a good idea for onepage apps but atm I need to manipulate some content not build a frontend hehe.
Mirco
I'll save that for later, i think its a good idea for onepage apps but atm I need to manipulate some content not build a frontend hehe.
Anyway for dynamic form fields u need a bit of js For model, already spoken about JSONField 👌
Anders (izzno / gooood) 🇳🇴
Jepp ;) Im on it...
Anders (izzno / gooood) 🇳🇴
learning more basic JS that is hehe...
Mirco
Good luck 😂
Anders (izzno / gooood) 🇳🇴
https://www.youtube.com/watch?v=Efr7SUrBUQw
Anders (izzno / gooood) 🇳🇴
Its a bit off topic, but OMG!
Mirco
Its a bit off topic, but OMG!
Powerful, isn't it ? With DRF or graphene ( if using GraphQL ) , you can build beautiful stuff
Anders (izzno / gooood) 🇳🇴
Stupid easy...
Anders (izzno / gooood) 🇳🇴
Just the way I like it...
Mirco
Me too 😂
Anders (izzno / gooood) 🇳🇴
In combination with a django api I can see why this is so populare....
Mirco
Yup!
inchidi
How to use BootStrap4. I don't have any idea about
in simple words, bootstrap is collections of css and javascript codes, so you just need to import (in html way) it and then you can call the codes for your html element styling and behavior
Bhupesh
Is there any way to convert bootstrap themes to django themes using ninja 🤨
Rohan
*jinja Sorry
Django template* 🌚
cj
Is there any way to convert bootstrap themes to django themes using ninja 🤨
just add {{ variable_name }} where you need, if you want you can separate repeating blocks of code to a partial template file and include it where you need
Rohan
https://github.com/dyve/django-bootstrap3
Rohan
Never used it tho
cj
there's bootstrap 4 now, I should say that package is outdated 🤷🏻‍♂️
Bhupesh
just add {{ variable_name }} where you need, if you want you can separate repeating blocks of code to a partial template file and include it where you need
🤨🤨 I guess i m confused Btw Bootstrap its just for front While jinja gives us facility to insert content in HTML dynamically So how its related to bootstrap 🤯
cj
Lol i known basics But i m just paranoid I guess
then how can't you realize how you can use {{ variable_name }} inside a django template?
Bhupesh
then how can't you realize how you can use {{ variable_name }} inside a django template?
But that is related : When we want some data from (models.py) file to appear on HTML No relationship with bootstrap themes i guess?
Rohan
Just use the .js and .css files from bootstrap and put em in static files
Rohan
Now use them in your django templates however you like
Rohan
Or I am just not able to understand your question
cj
But that is related : When we want some data from (models.py) file to appear on HTML No relationship with bootstrap themes i guess?
it could be Bootstrap, Foundation, Ink, PureCSS, Boilerplate, Skeleton, Mueller, Bass, etc.... it doesn't matter... I guess you have to review your concepts about how Django works
Bhupesh
Ok My bad 😔
Rohan
Ok My bad 😔
https://stackoverflow.com/questions/10157059/how-can-i-use-bootstrap-with-django
Rohan
🤷‍♂
Bhupesh
https://stackoverflow.com/questions/10157059/how-can-i-use-bootstrap-with-django
https://stackoverflow.com/questions/27615506/how-to-use-bootstrap-theme-in-django
Bhupesh
https://stackoverflow.com/questions/10157059/how-can-i-use-bootstrap-with-django
Guess i figured it out Thanks @PulsatingQuasar and @c0x6A
cj
👍
George
hey buds, When it is worth switching to jinja2 from django templating engine?
cj
hey buds, When it is worth switching to jinja2 from django templating engine?
🤔🤷🏻‍♂️ considering Jinja2 was made inspired in Django templates... (it's its son) 🤔 🤷🏻‍♂️ idk
George
:(
Lucian
Jinja2 is much faster and easier to use.
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
It's practically the same.
George
Why would you do that ?
people say it's faster :O
George
is it faster for repetitive tasks? Cos i think that would be useful
Anders (izzno / gooood) 🇳🇴
well, wouldnt vue / react be even faster ?
George
well, wouldnt vue / react be even faster ?
are those templating engines?
Anders (izzno / gooood) 🇳🇴
I mean how much faster can it be? would you really notice? (Have you tried comparing with a tool like django_toolbar
Anders (izzno / gooood) 🇳🇴
are those templating engines?
No, JS frameworks that supports templating
Anders (izzno / gooood) 🇳🇴
im asking first
ah, its the first I hierd / read about it.
George
ah, its the first I hierd / read about it.
they are not comparable as they have different uses :)
Anders (izzno / gooood) 🇳🇴
Not really, you can display content asyncrnous (spelled wrong...) so your page does not wait for it all to load.
Anders (izzno / gooood) 🇳🇴
Then set up a mock DB with 1000 entries and display it in boostrap cards on one page. Use django Templates on one and jinja2 on the other and se / measure :)
Anders (izzno / gooood) 🇳🇴
I am planing to have a glass or two today, so when i get to drunk to continue my project I'll do that hehe. I would like to know myself ;)
Anders (izzno / gooood) 🇳🇴
first i will look if there are existing tests
That would be the sane thing to do...
George
That would be the sane thing to do...
you put on me too much work
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Not much work at all.
George
Get pycharm ;)
i am nicely sitting in my emacs with all the stuff thank you
Anders (izzno / gooood) 🇳🇴
oh, i would not have a chance...
Anders (izzno / gooood) 🇳🇴
I am completely and utterly dependant on pycharms autocomplete and discovery ...
Anders (izzno / gooood) 🇳🇴
Good for you.
George
i am god
George
*no*
Anders (izzno / gooood) 🇳🇴
at least for django projects, it recognizes your paths, templates, models, and autocomplete works on practically anything that makes sense saving me the memmory to remember it all.
Anders (izzno / gooood) 🇳🇴
in a CLI project it would not matter but I am still new to Django.
Anonymous
what does cleaned_data mean
cj
what does cleaned_data mean
validated data from form
Anonymous
ohk thanx
George
Is this thing nice? django-js-reverse
Anders (izzno / gooood) 🇳🇴
Does someone know hwo to make a footer stick to the bottom IF the page is not long enough to cover the screen?
George
search sticky footer in google
Anders (izzno / gooood) 🇳🇴
I did, but it does not stick it stays in the same place...