diff --git a/geotrek/api/tests/test_mobile/test_views.py b/geotrek/api/tests/test_mobile/test_views.py index d9adc13267..c911f39797 100644 --- a/geotrek/api/tests/test_mobile/test_views.py +++ b/geotrek/api/tests/test_mobile/test_views.py @@ -103,7 +103,7 @@ def test_launch_sync_mobile_fail(self, mocked_stdout, command): @patch('geotrek.api.management.commands.sync_mobile.Command.handle', return_value=None, side_effect=Exception('This is a test')) @patch('sys.stdout', new_callable=StringIO) - def test_launch_sync_rando_no_rando_root(self, mocked_stdout, command): + def test_launch_sync_mobile_no_root(self, mocked_stdout, command): task = launch_sync_mobile.apply() log = mocked_stdout.getvalue() self.assertNotIn("Done", log) diff --git a/geotrek/common/templates/common/sync_rando.html b/geotrek/common/templates/common/sync_rando.html deleted file mode 100644 index f417e3b726..0000000000 --- a/geotrek/common/templates/common/sync_rando.html +++ /dev/null @@ -1,137 +0,0 @@ -{% extends "mapentity/base_site.html" %} - -{% load static crispy_forms_tags %} -{% load i18n %} - -{% block extrahead %} - - -{% endblock extrahead %} - -{% block toolbar %} -{% endblock toolbar %} - -{% block mainpanel %} - -
-

{% trans "Public web site sync" %}

-
-
- -
- {% block mainform %} - {% crispy form form.helper %} - {% endblock mainform %} -
- - - - -{% endblock mainpanel %} diff --git a/geotrek/settings/base.py b/geotrek/settings/base.py index 851f9ae738..e5c477f530 100644 --- a/geotrek/settings/base.py +++ b/geotrek/settings/base.py @@ -679,9 +679,7 @@ def api_bbox(bbox, buffer): "paste_as_text": True } -SYNC_RANDO_ROOT = os.path.join(VAR_DIR, 'data') SYNC_MOBILE_ROOT = os.path.join(VAR_DIR, 'mobile') -SYNC_RANDO_OPTIONS = {} SYNC_MOBILE_OPTIONS = {'skip_tiles': False} ''' diff --git a/geotrek/settings/env_dev.py b/geotrek/settings/env_dev.py index d7b3e2a5d0..3f230a5466 100644 --- a/geotrek/settings/env_dev.py +++ b/geotrek/settings/env_dev.py @@ -36,11 +36,6 @@ 'debug_toolbar.middleware.DebugToolbarMiddleware', ) - -SYNC_RANDO_OPTIONS = { - 'url': 'http://geotrek.local:8000' # Mandatory for dev mode. Must point to the same domain than SERVER_NAME in .env -} - LOGGING['loggers']['']['level'] = 'DEBUG' CACHES['default']['BACKEND'] = 'django.core.cache.backends.locmem.LocMemCache'