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 🤯
Bhupesh
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...