Skip to content

Tag: import

Flask static file importing issues

I’m trying to write my first webapp with Flask. I learned that to use css in my site, I have to use a static folder, because my css is never gonna change while the site is running (when it is online). So i created it, wrote a bit of css, imported it in my html via this portion of code

Trying to import a script from other code

I need help to import a script, i did 2 codes, the first is a test with some prints and in the second i try to import them: Code 1 Code 2 But in code 2, when i did os.system(r”python C:UsersGabriPycharmProjectspythonProjectImagens.py”) nothing happen. Someone can help me to import this code? ;-; 1…

Python Read Website Table Data into Dataframe

I came to know this source to import data. I tried but not successful in importing the data https://public.opendatasoft.com/explore/embed/dataset/us-zip-code-latitude-and-longitude/table/ my code: Presently I see no data but a string text. Table on the data: Answer JS is creating the table and rendering of ja…

Import django models to custom python script

I am trying to create a custom python script within my Django application. This script requires the use of my app models. I am unable to figure out how to import the models appropriately to be used within this script. So if I wanted to access the pages.models from the custom_script.py how might I do this? I h…