Comments (4)
@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.
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.
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.
Added starter code to models and instructions on creating a migration.
from python-p4-validation-flask-sqlalchemy-validations-lab.
Related Issues (9)
- Why did we revert to plain Alembic? HOT 1
- Opening directions HOT 2
- Validation #4 not present in tests HOT 1
- Possible error in content/summary validation?
- Maximum length for summary incorrect
- Missing seed.py file
- TEST 2 FOR VALIDATIONS LAB ALWAYS FAILS BEFORE RUNNING THE TEST AND THERE IS NO SEED FILE
- The seed file needs to come out, it's interfering with the tests.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-p4-validation-flask-sqlalchemy-validations-lab.