fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Experiments page.
[wolnelektury.git]
/
src
/
manage.py
diff --git
a/src/manage.py
b/src/manage.py
index
c1c055b
..
fd2fbfb
100755
(executable)
--- a/
src/manage.py
+++ b/
src/manage.py
@@
-1,14
+1,17
@@
#!/usr/bin/env python
#!/usr/bin/env python
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
import os
import sys
import os
import sys
-ROOT = os.path.dirname(os.path.abspath(__file__))
-sys.path = [
- os.path.join(ROOT, '../lib/librarian'),
-] + sys.path
if __name__ == "__main__":
if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wolnelektury.settings")
+ os.environ.setdefault(
+ "DJANGO_SETTINGS_MODULE",
+ "wolnelektury.settings.test"
+ if 'test' in sys.argv
+ else "wolnelektury.settings")
from django.core.management import execute_from_command_line
from django.core.management import execute_from_command_line