PHP website | a way to refresh the page without reloading

30 views
Skip to first unread message

Dias André

unread,
May 18, 2022, 6:24:07 PM5/18/22
to Django users
Good afternoon! I'm new to programming and I'm making a website in php, I would like to know if there is a way for my website to update without reloading the page and always going to the top of it.
sry for the english

Dias André,
greetings.

Mike Dewhirst

unread,
May 18, 2022, 7:28:22 PM5/18/22
to django...@googlegroups.com, Dias André
On 19/05/2022 4:23 am, Dias André wrote:
Good afternoon! I'm new to programming and I'm making a website in php, I would like to know if there is a way for my website to update without reloading the page and always going to the top of it.
sry for the english

When I was new to web programming I didn't know which way to to turn.

I had come from Delphi and really wanted an object oriented approach. I tried Perl with its blessed hashes and then saw PHP was object oriented so I looked at that. Unfortunately php was only partly object oriented and I was not mentally sufficiently rigorous to use it properly. My mistakes lay hidden waiting to bite me. In my opinion you have to be a really brilliant programmer to use php. I'm not and never will be that brilliant so I cannot use php.

Then I found Python and it was perfect. It was originally designed as a teaching language for schoolkids. Just my cup of tea. Easy to learn and built-in guardrails.

Python didn't let me make the sort of mistakes php almost forced on me. It is completely object oriented.

Then I looked for a web framework and back then there were many. I even went out on the Python lists and asked what people thought. There were too many opinions. It would take me forever to learn how to use all these different frameworks just so I could pick one.

I decided to write my own just to teach myself Python.

But I needed a DBMS. MySQL was big at the time and I was actually using it in one application. A friend told it was not the best and I should use PostgreSQL. But because I was starting from scratch I figured I would write a simple text-file backend database until I was ready to decide which way to to turn.

Then the Python community declared Django was going to be its favourite web framework. So I decided on Django. The Django docs seemed to favour PostgreSQL so apart from using Apache because I was already familiar with it, that was all my decisions made.

It took a long time for me to settle and you have apparently come to Django by pure luck :-)

BTW, you probably need to look at javascript or HTMX for updating parts of a page without reloading.

Cheers and welcome!

Mike


Dias André,
greetings.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eef9e2f0-ebce-403e-82e3-334d7575e78fn%40googlegroups.com.


-- 
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.
OpenPGP_signature

Gabriel Araya Garcia

unread,
May 20, 2022, 11:46:04 AM5/20/22
to django...@googlegroups.com
Mike:
You should see a REACT tutorial for beginners. React doesn't reload the page.

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




Gabriel Araya Garcia

unread,
May 20, 2022, 11:51:44 AM5/20/22
to django...@googlegroups.com
Mike:
I have forgotten. REACT can be used with DJANGO (in back) and REACT (in front)
Have a good day,

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos



Reply all
Reply to author
Forward
0 new messages