Skip to content

Instantly share code, notes, and snippets.

@cloverrose
Created December 12, 2012 16:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloverrose/4269345 to your computer and use it in GitHub Desktop.
Save cloverrose/4269345 to your computer and use it in GitHub Desktop.
DjangoプロジェクトをHerokuにデプロイする際の変更箇所
[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