Skip to content

Commit

Permalink
helper file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalogh committed Feb 19, 2010
1 parent f37595c commit e8a1205
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Empty file removed example-project/settings.py
Empty file.
File renamed without changes.
12 changes: 12 additions & 0 deletions examples/test-utils/settings.py
@@ -0,0 +1,12 @@
TEST_RUNNER = 'django_nose.runner.NoseTestSuiteRunner'

DATABASES = {
'default': {
'NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3',
}
}

INSTALLED_APPS = (
'django_nose',
)
8 changes: 5 additions & 3 deletions fabfile.py
Expand Up @@ -11,9 +11,11 @@
from fabric.contrib.project import rsync_project

NAME = os.path.basename(os.path.dirname(__file__))
ROOT = os.path.abspath(os.path.dirname(__file__))

os.environ['DJANGO_SETTINGS_MODULE'] = 'example-project.settings'
os.environ['PYTHONPATH'] = os.path.abspath(os.path.dirname(__file__))
os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % NAME
os.environ['PYTHONPATH'] = os.pathsep.join([ROOT,
os.path.join(ROOT, 'examples')])

env.hosts = ['jbalogh.me']

Expand All @@ -26,7 +28,7 @@ def doc(kind='html'):


def test():
local('django-admin.py test')
local('django-admin.py test -s')


def updoc():
Expand Down

0 comments on commit e8a1205

Please sign in to comment.