kopia lustrzana https://github.com/jedie/PyInventory
write start information to stderr
for e.g.: `./manage.sh dumpdata>dumpdata.json` ;)pull/10/head
rodzic
c8124e9fc2
commit
c7ae715b96
|
@ -11,4 +11,4 @@ from inventory import __version__
|
|||
|
||||
if __name__ == 'inventory_project':
|
||||
if '--version' not in sys.argv:
|
||||
print(f'PyInventory v{__version__} (Django v{django_version})')
|
||||
print(f'PyInventory v{__version__} (Django v{django_version})', file=sys.stderr)
|
||||
|
|
|
@ -4,12 +4,13 @@
|
|||
|
||||
import logging
|
||||
import os as __os
|
||||
import sys as __sys
|
||||
from pathlib import Path as __Path
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
print('Use settings:', __file__)
|
||||
print(f'Use settings: {__file__!r}', file=__sys.stderr)
|
||||
|
||||
|
||||
# Build paths inside the project:
|
||||
|
@ -117,7 +118,7 @@ else:
|
|||
'timeout': 30,
|
||||
}
|
||||
}
|
||||
print(f'Use Database: {DATABASES["default"]["NAME"]!r}')
|
||||
print(f'Use Database: {DATABASES["default"]["NAME"]!r}', file=__sys.stderr)
|
||||
|
||||
# _____________________________________________________________________________
|
||||
# Internationalization
|
||||
|
|
Ładowanie…
Reference in New Issue