Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__pycache__
csv_db
docs
migrations
pet_web
sqlalchemy
static
templates
tests
tracks
.DS_Store
.env
.gitignore
README.md
config.py
ex46_setup.py
manage.py
models.py
pet_back_end.py
requirements.txt

README.md

Website for my band, Pet Friendly

This is a basic website that hosts some of our songs, and provides a form for fans to join our mailing list.

This project was setup using Flask, jinja2, HTML5, CSS, and Postgres.

pet_back_end.py: This file in the main directory is how you start up the web-page.

i.e. $ python3 pet_back_end.py on the command line. This file is the Controller in the Model-View-Controller model. It also provides the connection to the Postgres database. To view the website, go to http://127.0.0.1:5000/ in your local browser after entering in the previously mentioned command.

To understand the .env and config.py files, please see this tutorial:

https://realpython.com/flask-by-example-part-1-project-setup/

The requirements.txt shows all of the dependencies for the project.

Within the templates directory are the HTML files I have for the web pages structure/layout.

Within the static directory are the actual songs from my band, along with the CSS file for the styling of the webpages.

Another tutorial that was very useful for updating the Postgres database: https://www.codementor.io/garethdwyer/building-a-crud-application-with-flask-and-sqlalchemy-dm3wv7yu2

The docs, migrations, pet_web, sqlalchemy, csv_db, bin, and tracks directories can be ignored.

You can’t perform that action at this time.