Skip to content

Directory Structure

Anupam Dagar edited this page Jun 8, 2017 · 1 revision

The directory structure is as follows:

  1. myproject: This directory contains main files for the project. Read home page of documentation to add required files in it.
  2. portfolio: This directory is the app of the project. Mainly all the changes are done within this directory. It consists of following files:
  • ---- models.py: Create model for the app. Creates table in the database for the specified fields.
  • ---- admin.py: Register your model in here.
  • ---- forms.py: Create a Form for the created model and specify which fields to use.
  • ---- views.py: Create views for your models. Views are used to specify how content should be provided for display in templates.
  • ---- urls.py: Specify what url to use for created views.
  1. portfolio/migrations: Migration files for the table created in database with the fields used in models.
  2. portfolio/static: Contains all the static files(css,js,images) used in templates.
  3. portfolio/templates: Contains frontend or html webpages for the app.
Clone this wiki locally