-
Notifications
You must be signed in to change notification settings - Fork 82
Directory Structure
Anupam Dagar edited this page Jun 8, 2017
·
1 revision
- myproject: This directory contains main files for the project. Read home page of documentation to add required files in it.
- 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.
- portfolio/migrations: Migration files for the table created in database with the fields used in models.
- portfolio/static: Contains all the static files(css,js,images) used in templates.
- portfolio/templates: Contains frontend or html webpages for the app.