Django Themes help

2023-05-02 Thread William Nash (Bill)
I'm working on a small program that will help me in my dive shop. Since I'm trying to learn to program in Python using Django, I wanted to create something to help me. My issue is I cannot figure out how to center items on my page. For example (see screen shot) My code is located on Github:

Re: How to show image(static) files.

2023-05-02 Thread William Nash (Bill)
Try this. I'm still learning myself In your HTML file, you can use the img tag to display the image. To check if the QR code is true or false, you can use Django's views.py file. In your views.py file, write a function that will check the validity of the QR code. The function should redirec

Re: Django Themes help

2023-05-02 Thread William Nash (Bill)
Thanks for your help. On Tuesday, May 2, 2023 at 10:24:28 AM UTC-5 ALBERT ASHABA AHEEBWA wrote: > I have centered the items and made a pull request. > > You can merge and see how it looks. > > > > Best Regards, > > Albert > > On Tue, 2 May 2023, 17:20 Will

Unable to write to database

2023-05-21 Thread William Nash (Bill)
I'm new to django and I'm trying to learn as I program a small website for my scuba diving business. I'm running into a error that when I try to add a diver the database does not update. When I goto http://localhost:8000/add_diver/add_diver/ I'm able to add a diver. My code is located at:

Re: Unable to write to database

2023-05-21 Thread William Nash (Bill)
I do not see any error messages. On Sunday, May 21, 2023 at 12:56:45 PM UTC-5 Abdulrahman Abbas wrote: > Send your error message > > On Sun, May 21, 2023, 18:54 William Nash (Bill) wrote: > >> I'm new to django and I'm trying to learn as I program a small web

Re: Unable to write to database

2023-05-23 Thread William Nash (Bill)
The system permission solved the issues. Thank you. On Monday, May 22, 2023 at 10:51:13 AM UTC-5 Dev Femi Badmus wrote: > I have similar error is due to system permission are you running on Linux? > > chown www-data:www-data /home/username/project-folder > > chown www-data:www-data /home/userna