From fd2e2e1c842d26d64a77d27900abdd871e6f99f4 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Fri, 15 Jun 2018 17:07:35 +0200 Subject: [PATCH] test file --- src/project/management/__init__.py | 1 + src/project/management/commands/__init__.py | 1 + src/project/management/commands/test_file.py | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 src/project/management/__init__.py create mode 100644 src/project/management/commands/__init__.py create mode 100644 src/project/management/commands/test_file.py 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()