Re: Unable to write to database

2023-05-22 Thread William Nash
I can get the website to come up, but I can't save anything to the database. Django is installed in a .venv folder and activated with source .venv/bin/activate. William Nash Padi Instructor#367103 (972) 372-4557 | wrna...@gmail.com Website: http://ascubadiving.com/ Texas Mason A.F.& A.M.: https:

Re: dynamic django tables

2023-05-22 Thread Helly Modi
I have to create api where user can select the column and type and other argument and it will create table in database in django.now here we can't use models .so we have to create tables dynamically at run time.so first i use django dynamic model in order to create table .it created table in da

Re: Unable to write to database

2023-05-22 Thread Dev Femi Badmus
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/username/project-folder/db.sqlite3 -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Unable to write to database

2023-05-22 Thread Larry Martell
On Sun, May 21, 2023 at 10:54 AM William Nash (Bill) wrote: > > 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/a

Re: 'WSGIRequest' object has no attribute 'Files'

2023-05-22 Thread Sanket Chudasama
p_form = ProfileUpdateForm(data= request.POST, files= request.Files, instance = request.user) On Tuesday, 16 April 2019 at 12:35:15 UTC+5:30 Soumen Khatua wrote: > Hi Folks, > I'm getting this error 'WSGIRequest' object has no attribute 'Files' and > i didn't get proper solution in google also

Dynamic models

2023-05-22 Thread ruth salvatore
Here I am creating django dynamic models but for getting data i am using get method but i am not getting data it just says that table does not exist even if it is present. from django.http import JsonResponse from.serializers import CreateTableSerializer from django.db import connection, models

Re: dynamic django tables

2023-05-22 Thread ruth salvatore
it worked for me thanks.but if someone wants to add constraints like primary key,Foreign key and many more then how to do it. On Monday, May 22, 2023 at 10:59:08 AM UTC+5:30 Brian Gitau wrote: Try this i am not so sure though but trying isn't bad...kindly give me the feedback after trying fr

Re: Unable to write to database

2023-05-22 Thread aung naing12
Hello sir can I talk to you about our community On Mon, 22 May 2023, 11:00 pm Larry Martell, wrote: > On Sun, May 21, 2023 at 10:54 AM William Nash (Bill) > wrote: > > > > 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

How many related columns should you use on a model. Does it matter?

2023-05-22 Thread Ry
How many related columns should you use on a model. Does it matter? For example, say in a payroll application I have a model Company. Each Company has multiple model Employee. Each Employee has a Job. Does it matter if the final model, Job has a fk to both the Employee and Company model or s

Run Python Code on Front-End

2023-05-22 Thread Lightning Bit
Hello all, I've created an accessibility app where the *speech_recognition* package is utilized and triggered upon running a Python function. I can successfully run the Python code in Jupyter Lab - no problems. However, it seems impossible to activate the *speech_recognition* package on the fr

Re: Run Python Code on Front-End

2023-05-22 Thread Muhammad Juwaini Abdul Rahman
You might want to try pyscript for this. Natively, there's no way you can run python on browser. On Tue, 23 May 2023 at 07:52, Lightning Bit < thelegendofearthretu...@gmail.com> wrote: > Hello all, > > I've created an accessibility app where the *speech_recognition* package > is utilized and tri

Re: Run Python Code on Front-End

2023-05-22 Thread Mike Dewhirst
On 23/05/2023 10:22 am, Muhammad Juwaini Abdul Rahman wrote: How can one run Python code from the backend that triggers on the front-end upon clicking a button on a certain page? Have a close look at htmx. It doesn't run Python but will replace any targeted HTML element with output from Pyt

Ideas for Apps and Softwares.

2023-05-22 Thread ALBERT ASHABA AHEEBWA
Hi there, I have been learning to program for almost a year now. I have created a few apps some of which I abandoned at the start, others half way through. None have been original ideas and maybe that's why I lose interest. So I am here looking for that one app idea that will keep me up at nig