Courses‎ > ‎Software Development‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

Work 3: Occupational Jinja Training

posted Sep 22, 2016, 6:21 AM by Topher Mykolyk   [ updated Sep 23, 2016, 6:00 AM by JonAlf Dyrland-Weaver ]
For this you will refer to your prior occupation assignment. You are encourage to re-use and refactor code as necessary.

Write a flask app with an "/occupations" route, which will generate an HTML page with an appropriate title, a descriptive heading, and a tablified version of the occupations data. Followed by a randomly selected occupation.

If you're feeling flasky, and you've completed the requirements above, try this on for size:
  • For each occupation, find a link that would be helpful to get started in that filed.
  • Add that link to the occupations.csv file.
  • Include the link in the python dictionary you create (Note: you'll have to store the percentage and the link as values attached to each name)
  • When Your flask app renders the page, include the link to help your users on their way to their new job.


Submit this as occu-table in the workshop.
Comments