Posts

Website Coding by Setting Flask

Image
  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

Setting Up Pygame for in VS Code

Image
Pygame in VS Code         1. I made a new folder              I already had VS Studio and python set up in system. So, that is not included here.     C:\Users\DIVYA\Documents\MyGames\FirstGame      I opened terminal.           2.       Now Visual studio is opened                3.Made new file main.py and ran python code.                               W orking fine. 4. Downloaded pygame library               Since,  python -m pip install pygame" didn't worked Now downloaded pygame library. From website.  https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame Searched pygame on page and downloaded second package (my system is 64 bit and AMD Ryzen 5 )   5. Sav...

Configuring git.

Image
 Configuring git. Used this FreeCodeCamp resource  for reference. In command Prompt I saw that my Git was installed. The command I used was: C:\\ git --version.  Now I configured my email, and user name.  After I configuring my email, and user name, I started new branch.