django-heroku-postgresify

Programinė įranga Screenshot:
django-heroku-postgresify
Programinė detalės:
Versija: 0.2
Įkėlimo datą: 14 Apr 15
Kūrėjas: Randall Degges
Licencija: Nemokamai
Populiarumas: 20

Rating: 5.0/5 (Total Votes: 1)

django-heroku-postgresify yra Django programa, kuri suteikia automatinio Django duomenų bazės konfigūraciją Heroku.
& Nbsp; Įdiegti
Norėdami įdiegti `` Django-heroku-postgresify``, tiesiog paleisti `` PIP įdiegti Django-heroku-postgresify`` ir gausite naujausią versiją automatiškai įdiegta.
Naudojimas
Keisti savo Django `` settings.py`` failą, ir nustatyti:
`` `Python
nuo postgresify importo postgresify
DUOMENŲ BAZĖS = postgresify ()
`` `
Viskas.
Priklausomai nuo Heroku PostgreSQL duomenų bazių Jūs turite įdiegta, jūsų `` DATABASES`` konfigūracija bus automatiškai setup jas naudoti.
Pavyzdžiui, tarkime, jūs turite šiuos aplinkos kintamieji, nustatyti Heroku (galite peržiūrėti visų aplinkos kintamųjų sąrašą veikia `` heroku config``):
- `` HEROKU_POSTGRESQL_BLUE_URL``
- `` HEROKU_POSTGRESQL_RED_URL``
- `` SHARED_DATABASE_URL``
- `` DATABASE_URL``
Jūsų `` DATABASES`` nustatymas būtų:
`` `Python
DUOMENŲ BAZĖS = {
& Nbsp; & nbsp; & nbsp; "Numatytasis": {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # DATABASE_URL configs čia
& Nbsp; & nbsp; & nbsp; }
& Nbsp; & nbsp; & nbsp; "Bendras": {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # SHARED_DATABASE_URL configs čia
& Nbsp; & nbsp; & nbsp; }
& Nbsp; & nbsp; & nbsp; "BLUE": {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # HEROKU_POSTGRESQL_BLUE_URL configs čia
& Nbsp; & nbsp; & nbsp; }
& Nbsp; & nbsp; & nbsp; "RED": {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # HEROKU_POSTGRESQL_RED_URL configs čia
& Nbsp; & nbsp; & nbsp; }
}
`` `

Reikalavimai :

  • Python
  • Django

Kita programinė įranga kūrėjas Randall Degges

django-sslify
django-sslify

14 Apr 15

django-ganalytics
django-ganalytics

20 Feb 15

amazonify
amazonify

14 Apr 15

Komentarai django-heroku-postgresify

Komentarai nerastas
Pridėti komentarą
Pasukite ant paveikslėlio!