Ghorz
Built 21st century software please
Brandon
Ghorz
Ghorz
The earlier you start using it the better
.
Brandon
Oh ok, I'm installing it
.
smoozy progammer
Ghorz
Your django maybe dockerised
Katia
Built 21st century software please
Thanks for your help. The use case is more complicated than what I briefly described and the use of one login page doesn't suit my need.
Gustavo
install wsl
At sometimes, database fails on WSL.
Ghorz
.
Ghorz
Oh ok, I'm installing it
Your django maybe hosted on aws, digital ocean or others, no matter the orchestration method. You'll mostly find Linux.
Except its a small django app you can host it on shared hosting.
Brandon
Ghorz
Gustavo
I use Herokup to deploy my Django site.
Ghorz
But for huge app I don't use django because of time constraints
Ghorz
For Entreprise Level app, Django is not very productive
Ghorz
But it's awesome
Ghorz
Ghorz
Ghorz
Ghorz
Don't load it manually using traditional page load
Ghorz
Instead, allow the page to load with no data.
The use Ajax to fetch and load the data to a datatable also paginated the data
Gustavo
Ghorz
Gustavo
If I don't use jQuery?
Ghorz
You can use vanilla js or react, vue, angular or python
Ghorz
Python in the browser
Ghorz
Like Transcrypt that transpile python to js 6
Gustavo
I prefer not using jQuery.
Ghorz
Ghorz
I prefer not using jQuery.
I was there before, swore never to use JS.
Instead converted python code to js
But on my first real job.
I had no choice but to use JS. 😁
You love to hate it and hate to love it
Gustavo
Too bad, it will be very painful because I don't know very well JavaScript. I'll sabotage my site for learning JavaScript, and Angular, Reactjs and Vuejs.
Ghorz
Ghorz
What you should do it ensure your Django Project is API based by default
Ghorz
You can use django rest framework
Or better still if scared of DRF, write vanilla api using default view the return json response
Gustavo
Yes, my https://raw.githubusercontent.com/gusbemacbe/gusbemacbe.co.nz/main/financial_planning/views.py is too much thing. I'll sabotage it.
But a guy told me to use threading to speed up the tables page.
Ghorz
Ghorz
Ghorz
There's a better way. I don't see why you should load entire data at once. If you js and socketio it will be better off
Gustavo
Ghorz
Gustavo
Anyone
I have been searching for "web share", but I will give a screenshot.
Gustavo
Ah, the screenshots are not allowed here.
Ghorz
Gustavo
Use link
https://gusbemacbe.herokuapp.com/financial-planning/
Gustavo
Did it take long time to load it on your computer, Ghorz Ace?
Ghorz
Then query it on page load
Gustavo
in Python or JavaScript?
Ghorz
Rather than loading it all the time
Ghorz
Ghorz
There is something called child table
Gustavo
I never tried to develop model for CSV, converting to currencies and rendering the table in HTML.
Ghorz
I may not be able to explain it but Google dynamic model
Ghorz
Ghorz
It will aid easy manipulation and update
Gustavo
And converting to currencies, using Forex and ExchangeRates API (JSON)?
Ghorz
Ghorz
It's better off
Ghorz
It makes it easy if in the future you intend to connect a mobile app to it
Ghorz
Api helps
Gustavo
I feel I am too nobble to that part of dynamic model. It is too new for me.
Gustavo
I have to study. It will be very painful.
Gustavo
And about django-tables2? Does it use a dynamic model to create tables?
Ghorz
Ghorz
Dynamic model is abstract in nature
Gustavo
Did you see django_table2?
Gustavo
The guy said me that if CSV is always the same, I should load it in the module outside the function.