Git Product home page Git Product logo

Comments (3)

bbengfort avatar bbengfort commented on June 11, 2024

See the environment variables set in the .travis.yml file

On Thursday, June 2, 2016, Allen Leis [email protected] wrote:

The various environment settings files lack the proper database settings.
Perhaps we should define it in the base.py file to use ENV variables
(pulled from the .env file).

This might be accomplished by copying the version from test.py and then
modifying it to use the env variables.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#61, or mute the
thread
https://github.com/notifications/unsubscribe/AAth7v6ojsteCU9rz5dyahh1BxOcQVHHks5qHzfdgaJpZM4Is7iZ
.

Sent from Gmail Mobile

from cultivar.

bahadasx avatar bahadasx commented on June 11, 2024

@looselycoupled I checked the travis yaml file and there is only one database setting: DATABASE_URL.

The dev README shows adding a line to the .ENV file for this setting:

DATABASE_URL=postgres://<insertDBUSERNAME>:<insertDBUSERPASSWORD>@127.0.0.1:5432/<insertDBNAME>

Otherwise, I checked the testing.py settings file, and I see the following settings are being pulled from ENV variables:

DATABASES = {
    'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': environ_setting('DB_NAME', 'trinket'),
          'USER': environ_setting('DB_USER', 'postgres'),
          'PASSWORD': environ_setting('DB_PASS', ''),
          'HOST': environ_setting('DB_HOST', 'localhost'),
          'PORT': environ_setting('DB_PORT', '5432'),
      },
  }

Could you clarify what the intent of this ticket is (e.g., to add something additional to documentation regarding that DATABASE_URL string or to add the database settings to the base.py file from testing.py)?

from cultivar.

lauralorenz avatar lauralorenz commented on June 11, 2024

Closed via #93.

from cultivar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.