Skip to content

Django App

Siqi Tian edited this page Feb 5, 2017 · 6 revisions
Apache <->  wsgi.py
MySQL  <->  models.py

App initiation                 HTTP Request
                   api.py                      helper_form.py
                  user.py          v           helper_html.py
            ...  admin.py   <-  urls.py           helper.py
                     v             ^v                ^
settings.py <-> console.py  <-  views.py   ->   wrapper_1d.py
     v               v                          wrapper_2d.py
  env.py         gdrive     <- gdrive.py job    wrapper_3d.py
                cron job 
Path Description
backup/ Backup *.tgz files.
cache/ System log files and cached system status JSON files.
config/ Configuration *.conf server secrets, and flow chart.
data/ Job results *.html for display, *.zip for download, and *.json for plate rendering. Subcategorized into 1d/``, 2d/, and 3d/`. This folder is accessible through url /site_data/.
dist/ Distribution of primerize package releases and master branch, and a LICENSE.md for license display.
media/ Static assets for front-end. This folder is accessible through url /site_media/.
admin/ Admin related HTML and others.
css/ CSS styling files.
fonts/ Glyphicon and Helvetica font resource.
html/ Public and admin HTML templates.
images/ Public image files, contains sprites.
js/ Javascript files. Subcategorized into admin/, public/ and suit/.
src/ python back-end scripts.
management/commands/ Django management command scripts.
*.sh bash commands for multiple server tasks (supplementing Django management commands).

Clone this wiki locally