Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Drop fabfile.

  • Loading branch information...
commit 33283ff29e75f70d8053946843f5cd51057f2320 1 parent f6923b8
James Socol authored
Showing with 2 additions and 51 deletions.
  1. +2 −1  .gitignore
  2. +0 −50 fabfile.py
View
3  .gitignore
@@ -1,4 +1,5 @@
-*.pyc
+*.py[co]
*.egg-info
*.db
+*.sw[po]
dist
View
50 fabfile.py
@@ -1,50 +0,0 @@
-"""
-Creating standalone Django apps is a PITA because you're not in a project, so
-you don't have a settings.py file. I can never remember to define
-DJANGO_SETTINGS_MODULE, so I run these commands which get the right env
-automatically.
-"""
-import functools
-import os
-
-from fabric.api import local as _local
-
-
-NAME = os.path.basename(os.path.dirname(__file__))
-ROOT = os.path.abspath(os.path.dirname(__file__))
-
-os.environ['DJANGO_SETTINGS_MODULE'] = 'csp-project.settings'
-os.environ['PYTHONPATH'] = os.pathsep.join([ROOT,
- os.path.join(ROOT, 'examples')])
-
-_local = functools.partial(_local, capture=False)
-
-
-def shell():
- """Start a Django shell with the test settings."""
- _local('django-admin.py shell')
-
-
-def test():
- """Run the test suite."""
- _local('django-admin.py test')
-
-
-def serve():
- """Start the Django dev server."""
- _local('django-admin.py runserver 0:8000')
-
-
-def syncdb():
- """Create a database for testing in the shell or server."""
- _local('django-admin.py syncdb')
-
-
-def schema():
- """Create a schema migration for any changes."""
- _local('django-admin.py schemamigration csp --auto')
-
-
-def migrate():
- """Update a testing database with south."""
- _local('django-admin.py migrate')
Please sign in to comment.
Something went wrong with that request. Please try again.