Coder Social home page Coder Social logo

Comments (4)

pgill97 avatar pgill97 commented on June 29, 2024 2

@professor-ben Holding off on this issue because I will change the SQLAlchemy validation stuff to use Flask-sqlalchemy then I will update this lab.

from python-p4-validation-flask-sqlalchemy-validations-lab.

Matt-Eva avatar Matt-Eva commented on June 29, 2024

Also, we don't instruct students as to what columns they should be adding to their models, or what datatypes those columns should use. I imagine that this is due to the fact that we were planning on having the models built out for them, but if we want them to build out their own models, we'll probably want to give them those details.

from python-p4-validation-flask-sqlalchemy-validations-lab.

sheenasany avatar sheenasany commented on June 29, 2024

Opening this one back up again because the previous issue of the instructions stating that the lab has starter code for the Author and Post models is still not true. When opening the lab the models are empty. There is also no instruction as to what datatypes the columns should be as Matt stated previously.

Please either include the starter code or include instructions on what to add for the models before running flask db upgrade. Currently there are no migrations created, so they would need to run flask db revision --autogenerate -m "<your comment>" beforehand as well in order to run the migrations. Otherwise the tests will fail.

Order of operations:

  • Have starter code for the models already set up || include instructions on what to include for each column of the models to build out
  • Run flask db revision --autogenerate -m "<your comment>"
  • Then run flask db upgrade
  • Then run pytest and continue the lab as instructed.

from python-p4-validation-flask-sqlalchemy-validations-lab.

pgill97 avatar pgill97 commented on June 29, 2024

Added starter code to models and instructions on creating a migration.

from python-p4-validation-flask-sqlalchemy-validations-lab.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.