Closed JimLakis closed 1 year ago
@JimLakis how are you running uvicorn? For me it works (and no, did not change anything, if I would I would do it on a different branch to not interfere with anything you're doing)
uvicorn app:app
I see you commented the animal_genus_name
line, but even uncommenting it the server still starts fine for me and I can hit the swagger docs.
@bbelderbos Ok. I'll try running the app again w/ and w/o those fields (example: animal.animal_genus_name) included. I was running it in uvicorn with file and module listed as app:app. Other files and packages that ran before also ran fine as a test of my uvicorn installation, etc.
Thanks for the response.
@bbelderbos Seems fine now... not sure what the issue was previously.
OK good, happy it works.
@bbelderbos
Issue: When including optional fields in the data table model Animals found in models.py when running the PDM app in the uvicorn server the server throws exceptions that animal.animal_genus_name is not recognized?
When running a similar app when following the tutorials where the data table model is included in the same app.py file uvicorn has no issues.
Thanks!