George
I did, but it does not stick it stays in the same place...
footer { background-color: #efefef; text-align: center; margin-top: 6em; background: black; color:white; bottom:-6em; height:6em; width:100%; position:absolute; } footer p{ margin:0em; margin-top:1em; } .container{ min-height:100%; position:relative; } .body { padding:0em;//A bit can be good for eyes maybe but 0 for now /* equal to footer height */ padding-bottom: 12em; }
Anders (izzno / gooood) πŸ‡³πŸ‡΄
I dont want it to be visible if there's content
Anders (izzno / gooood) πŸ‡³πŸ‡΄
whats footer p
George
whats footer p
text inside footer
Anders (izzno / gooood) πŸ‡³πŸ‡΄
ah
George
ah
also i wrapped body inside a div
Anders (izzno / gooood) πŸ‡³πŸ‡΄
The problem with this solution is that the fotter stays there when scrollling.
George
The problem with this solution is that the fotter stays there when scrollling.
i know, https://css-tricks.com/couple-takes-sticky-footer/
Anders (izzno / gooood) πŸ‡³πŸ‡΄
bingo
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Thanks ;)
George
i dealt with this problem long ago
Anders (izzno / gooood) πŸ‡³πŸ‡΄
I can see, the blog is spot on
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Or "tricks page"
Ghorz
Get pycharm ;)
Atom.io very powerful
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Atom.io very powerful
I dont think it compares to pycharm (professional). But its's heavy.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
pycharm that is.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
I use VS code for smaller projects.
Lucian
I mean how much faster can it be? would you really notice? (Have you tried comparing with a tool like django_toolbar
Here are some benchmarks: http://blog.sendwithus.com/python-templating-performance-showdown-django-vs-jinja/
Mirco
Rohan
Well, that's literally true though
Lucian
Compared the features, django templates is papa to jinja
For all the sites I build I'm using Jinja2 and Django instead of Flask. Features are speed.
George
Compared the features, django templates is papa to jinja
People in comments saying that the code for the test is no available to review
George
So i have the doubdt still
Rohan
For all the sites I build I'm using Jinja2 and Django instead of Flask. Features are speed.
Yes, you'll get a lower electricity bill with a manual lawn mower for a small lawn
Rohan
I hope you understood my analogy
Ghorz
https://www.codingforentrepreneurs.com/courses/django-angular-ionic
Mirco
Django + React/Vue Better combo imho
Lucian
Let's not compare client side rendering with server side.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
vue is ❀️
I was baptised this week and I am now i see....
Anders (izzno / gooood) πŸ‡³πŸ‡΄
+1
cj
Let's not compare client side rendering with server side.
you can use Django templates as usual and use Vue.js as a library (like any other JS lib) on it if you want 🤷🏻‍♂️
George
Django + React/Vue Better combo imho
Why using a framework uwu
George
Im ok rn with vanilla js
Mirco
Why using a framework uwu
I like keeping FE completely separated from BE It's easier to test it and keep code cleaned
Mirco
And if u think about big teams, FE team doesn't have to see BE code They can just work on FE code according to specs for BE
Mirco
So it's easier to maintain, fix bugs etc.
George
Ok then
George
How fast could i switch to one
George
*depends on your app*
Mirco
Yeah and depends on how fast you can learn js, webpack, state management How to make good APIs with DRF, make good docs etc.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Based on my experiance this week, if you trully know python (or any language), picking up js is a walk in the park.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
And with the help of something like VUE...
Anders (izzno / gooood) πŸ‡³πŸ‡΄
How do you solve global context like dynamic navmenus based on context ? Do you send it in every view ? ( i'm doing that now, but you know... if your repeating code ....)
Anders (izzno / gooood) πŸ‡³πŸ‡΄
then look at VUE ;)
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Cant hurt hehe
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Anders (izzno / gooood) πŸ‡³πŸ‡΄
You mean I can define a sort of global item that's available?
Erick
https://docs.djangoproject.com/en/2.1/ref/templates/api/#writing-your-own-context-processors
Erick
yes, actually that's how you can use a request object in templates, Django has some context processors activated by default
amit
While building chat via channels in django . I m facing this issue . Data persistence across redis middleware backend Messages are being stored temporarily while communicating through layers across django channels
Maz
To get to a decent employable level with a frontend framework.
Anonymous
https://youtu.be/K_lBsXZoOII
Mirco
Sounds like a ton of work for 4 solid months.
If u wanna write good and clean code, understand what you're gonna do a bit of time is required imho But it depends on who's learning
Maz
If u wanna write good and clean code, understand what you're gonna do a bit of time is required imho But it depends on who's learning
Personally I don't mind the work that goes into learning something new. I like challenging my mind 🤗
Maz
Aside from Django...anyone used DeepLearning Pro?
Maz
DeepLPro
Prinart
Plz I need a tutorial on how to integrate django to vue. Thanks
Mirco
Plz I need a tutorial on how to integrate django to vue. Thanks
Just make APIs with DRF and fetch them with Vue
Mirco
Ok, Thanks
β€œCRUD App using Vue.js and Django” by Shubham Bansal https://link.medium.com/06t8nSsgeT
Mirco
Ok, Thanks
This read could better help ya
Anders (izzno / gooood) πŸ‡³πŸ‡΄
I am consuming Vue like its nutrision these days.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
With the dre you could do anything.
Mirco
Chiji
Hello everyone
Chiji
Is it possible to alter the Django inbuilt password reset feature?
Chiji
I don't want users to receive a link in their email to reset their password. I rather want them to receive a code, which when entered and the code is correct, they'll see a page to enter their new password. Any help please?