Created
December 12, 2012 16:39
-
-
Save cloverrose/4269345 to your computer and use it in GitHub Desktop.
DjangoプロジェクトをHerokuにデプロイする際の変更箇所
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Procfile] | |
+web: python twhyou/manage.py runserver 0.0.0.0:$PORT --noreload | |
[requirements.txt] | |
+Django==1.4.2 | |
+psycopg2==2.4.5 | |
+tweepy==1.12 | |
+wsgiref==0.1.2 | |
[myproj/myproj/settings.py] | |
DATABASES = { | |
- 'default': { | |
- 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | |
- 'NAME': 'mydb.sqlite', # Or path to database file if using sqlite3. | |
- 'USER': '', # Not used with sqlite3. | |
- 'PASSWORD': '', # Not used with sqlite3. | |
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. | |
- 'PORT': '', # Set to empty string for default. Not used with sqlite3. | |
- } | |
+ 'default': { | |
+ 'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
+ 'NAME': '貼り付け', | |
+ 'HOST': '貼り付け', | |
+ 'PORT': 5432, | |
+ 'USER': '貼り付け', | |
+ 'PASSWORD': '貼り付け' | |
+ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment