Skip to content

Django project layout #7

@acbalingit

Description

@acbalingit

I'm proposing that the directories be restructured so that the apps would be consistent and portable. Instead of the top-directory containing the project files and the sample data, the top level should already already contain the apps:

* README.md
* manage.py
* BigVASP/              ## from myproject
  -- settings.py
  -- urls.py
  -- wsgi.py
  -- templates/
       -- base.html
       -- index.htm
  -- static/                 ## static assets for the frontend (css/js/img)
* vasp_handler/       ## the parser as a separate app, containing pages that uploads data
  -- urls.py
  -- forms.py
  -- models.py
  -- views.py
  -- extract_vasp.py
  -- templates/
* userauth               ## login pages
  -- models.py
  -- views.py
  -- urls.py
  -- templates/
      -- login.html
      -- user.html
      -- admin.html
* tests/
  -- sample_data/

I'll make a pull request that incorporates this and see if all agrees with how the files would be arranged.


Jeff Knupp, Starting a Django 1.6 Project the Right Way

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions