Skip to content

Template Structure

Anupam Dagar edited this page Jun 28, 2017 · 2 revisions

Template structure is as follows:

  1. All the css, js and images are stored in portfolio/static directory.
  2. templates directory has 2 sub-directories,
  • ----portfolio: Contains the main pages for the app.
  • ----registration: Contains the pages required for registration.

File Structure:

  1. portfolio:
  • ----base.html: Contains the doctype, head, body and is extended to every other template in the start. All other templates are a block content which is present in base.html
  • ----home.html: This is the homepage for the app.
  • ----details.html: This is the form which ask for the details of the user and portfolio is generated on the basis of data provided here.
  • ----display.html: This is the final result of app, portfolio generated is diplayed through this file.
  • ----displayall.htmlThis page display all the portfolio's generated by the user.
  1. registration:
    The filename describes the work of template but 2 templates are of utmost importance:
Clone this wiki locally