diff --git a/src/project/management/__init__.py b/src/project/management/__init__.py new file mode 100644 index 0000000..1f90693 --- /dev/null +++ b/src/project/management/__init__.py @@ -0,0 +1 @@ +__author__ = 'Ralf Braendli' diff --git a/src/project/management/commands/__init__.py b/src/project/management/commands/__init__.py new file mode 100644 index 0000000..1f90693 --- /dev/null +++ b/src/project/management/commands/__init__.py @@ -0,0 +1 @@ +__author__ = 'Ralf Braendli' diff --git a/src/project/management/commands/test_file.py b/src/project/management/commands/test_file.py new file mode 100644 index 0000000..49f1c65 --- /dev/null +++ b/src/project/management/commands/test_file.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +from django.core.management.base import BaseCommand + + +class Command(BaseCommand): + + def handle(self, *args, **options): + f = open('some_file.txt', 'w+') + f.write('test') + f.close() + + f = open('/whoosh/some_file.txt', 'w+') + f.write('test') + f.close()