Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gestioCOF
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Klub Dev ENSKlub Dev ENS
  • gestioCOF
  • Merge requests
  • !222

New organisation of settings files

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Martin Pepin requested to merge Kerl/settings into master Apr 11, 2017
  • Overview 7
  • Commits 3
  • Pipelines 0
  • Changes 8

We reproduce what has been done here: https://github.com/dissemin/dissemin

The following files can be found under cof/settings/

  • common.py: the settings that are shared by all the environments we have + the secrets (see below).
  • dev.py: the settings used by the vagrant VM for local development.
  • prod.py: the production settings (for both www.cof.ens.fr and dev.cof.ens.fr)

There is also a notion of "secrets". Some settings like the SECRET_KEY or the database's credentials are loaded from an untracked file called secret.py in the same directory. This secrets are loaded by the common settings file.


Note: to apply this patch on your Vagrant VM, you have to change the environment variable DJANGO_SETTINGS_MODULE to cof.settings.dev. By default in the current installation, it is loaded from ~/.bashrc, you should edit this file and reload it (source ~/.bashrc)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: Kerl/settings