Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

automate Django setup #79

Description

@daviddahl

We should write a script that completely automates the Django setup by:

  • checking for virtualenv and installing if need be
  • create a virtualenv in ~/.env-pagelab || <path>
  • install requirements.txt
  • prompt user for DJANGO_DB_NAME, DJANGO_DB_PASSWORD, etc
  • write config in settings_local.py
  • provide a start script that does source ~/.env-pagelab/bin/activate first
  • figure out how best to talk to postgresql
  • runs ./manage.py migrate
  • runs ./manage.py loaddata reports/fixtures/$NEW_FIXTURE_WITH_24_URLS_OR_SOMETHING.json
  • runs ./manage.py collectstatic
  • generate gunicorn start script for supervisorctl
  • generate 'httpd' config
  • create a docker image that knows how to consume all of these artifacts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions