Skip to content

Developer Install

Nickolaus D. Saint edited this page Mar 15, 2019 · 3 revisions

Developer Install

Clone and run the App locally:

    $ git clone https://github.com/globusonline/django-globus-portal-framework
    $ cd django-globus-portal-framework
    $ virtualenv venv
    $ source venv/bin/activate
    $ pip install -r requirements.txt

Remember to add your Globus credentials. You can put them in django-globus-portal-framework/local_settings.py and they will override the settings.py file. local_settings.py is ignored by git to avoid accidentally committing sensitive data. Make sure your local_settings.py file is in the same directory as the settings.py file.

    # local_settings.py
    SOCIAL_AUTH_GLOBUS_KEY = '<YOUR APP CLIENT ID>'
    SOCIAL_AUTH_GLOBUS_SECRET = '<YOUR APP SECRET>'
    DEBUG = True

Migrate and run with:

$ python manage.py migrate
$ python manage.py runserver

The app will be running locally at http://localhost:8000

Deployment

It's a good idea to run through the Django Deployment Checklist when deploying.