Website Coding by Setting Flask

 

Making a website 

  • a Created a folder:    
            C:\Users\Divya\Documents\MyWebsites\CollegeApp\website
  • Made following project folder.
  • the packages were installed using pip install 
pip install flask
pip install flask-login
pip install flask-sqlalchemy
    



  • Created following in __init__.py and main.py .



  • I ran the main function


Got the following error

  • Found the error caused due to following reason. I had to run init.py before than main.py but I had ran main.py directly. So, I ran init.py and then main.py again. now I got no error.
  •    Now making BluePrint from flask
            Went to views.py and added following codes. 

            Same thing in auth.py















Comments

Popular posts from this blog

Setting Up Pygame for in VS Code

Configuring git.