Skip to content

Commit

Permalink
Add .gitignore and update settings.py/manage.py to django 1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Dec 21, 2011
1 parent ad3acd9 commit 59284d6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
13 changes: 0 additions & 13 deletions example/manage.py

This file was deleted.

15 changes: 4 additions & 11 deletions example/settings.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Django settings for example2 project.
# Django settings for example project.

import os
PATH = os.path.dirname(os.path.abspath(__file__))

DEBUG = False
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
Expand All @@ -14,12 +14,8 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'landscape', # Or path to database file if using sqlite3.
'USER': 'postgres', # Not used with sqlite3.
'PASSWORD': 'postgres', # Not used with sqlite3.
'HOST': '127.0.0.1', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '5432', # Set to empty string for default. Not used with sqlite3.
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'landscape',
}
}

Expand Down Expand Up @@ -146,6 +142,3 @@
},
}
}

EMAIL_HOST='localhost'
EMAIL_PORT=1025
10 changes: 10 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import os, sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)

0 comments on commit 59284d6

Please sign in to comment.