mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
* Initial etesync support * Optimized get() * Bugfixes * bugfixes * Add writing operations * collection creation WIP * Fix collection creation * tests wip * wip * Final touch for test setup * actually skip tests * Disable metadata tests * Avoid polluting working tree * Avoid importing wsgi-intercept if not installed * Fix collection tests * Proper teardown * Skip bad test * Remove vtodo * wip * wip * wip * wip * wip * wip * wip * wip * wip * Add docs * Remove useless pkg * Don't crash if etesync isn't imported * Stylefix * Fix more import errors * More import errors * Only run etesync on latest python * Fix etesync check * journal-manager migration
22 lines
820 B
Python
Executable file
22 lines
820 B
Python
Executable file
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
|
|
if __name__ == "__main__":
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "etesync_server.settings")
|
|
try:
|
|
from django.core.management import execute_from_command_line
|
|
except ImportError:
|
|
# The above import may fail for some other reason. Ensure that the
|
|
# issue is really that Django is missing to avoid masking other
|
|
# exceptions on Python 2.
|
|
try:
|
|
import django # noqa
|
|
except ImportError:
|
|
raise ImportError(
|
|
"Couldn't import Django. Are you sure it's installed and "
|
|
"available on your PYTHONPATH environment variable? Did you "
|
|
"forget to activate a virtual environment?"
|
|
)
|
|
raise
|
|
execute_from_command_line(sys.argv)
|