django-heroku-postgresify

Software screenshot:
django-heroku-postgresify
Dettagli del software:
Versione: 0.2
Data di caricamento: 14 Apr 15
Sviluppatore: Randall Degges
Licenza: Libero
Popolarità: 20

Rating: 5.0/5 (Total Votes: 1)

django-heroku-postgresify è un app Django che fornisce la configurazione automatica del database Django su Heroku.
& Nbsp; Installa
Per installare `` django-heroku-postgresify`` semplicemente `` Pip installare django-heroku-postgresify`` e si otterrà l'ultima versione installata automaticamente.
Utilizzo
Modifica il tuo `` file settings.py`` Django, e impostare:
`` `Python
da postgresify postgresify import
DATABASE = postgresify ()
`` `
Questo è tutto.
A seconda dei database PostgreSQL Heroku hai ottenuto installata, `` DATABASES`` configurazione sarà automaticamente impostato per usarli.
Ad esempio, supponiamo che hai le seguenti variabili di ambiente impostate su Heroku (è possibile visualizzare l'elenco di tutte le variabili d'ambiente eseguendo `` heroku config``):
- `` HEROKU_POSTGRESQL_BLUE_URL``
- `` HEROKU_POSTGRESQL_RED_URL``
- `` SHARED_DATABASE_URL``
- `` DATABASE_URL``
L'impostazione `` DATABASES`` sarebbe:
`` `Python
DATABASE = {
& Nbsp; & nbsp; & nbsp; 'Default': {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # DATABASE_URL configurazioni qui
& Nbsp; & nbsp; & nbsp; },
& Nbsp; & nbsp; & nbsp; 'CONDIVISO': {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # SHARED_DATABASE_URL configurazioni qui
& Nbsp; & nbsp; & nbsp; },
& Nbsp; & nbsp; & nbsp; 'BLU': {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # HEROKU_POSTGRESQL_BLUE_URL configurazioni qui
& Nbsp; & nbsp; & nbsp; },
& Nbsp; & nbsp; & nbsp; 'RED': {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # HEROKU_POSTGRESQL_RED_URL configurazioni qui
& Nbsp; & nbsp; & nbsp; },
}
`` `

Requisiti :

  • Python
  • Django

Altri software di sviluppo Randall Degges

amazonify
amazonify

14 Apr 15

django-clear-cache
django-clear-cache

14 Apr 15

django-sslify
django-sslify

14 Apr 15

django-ganalytics
django-ganalytics

20 Feb 15

Commenti a django-heroku-postgresify

I commenti non trovato
Aggiungi commento
Accendere le immagini!