Skip to content

Commit

Permalink
Merge 6f31053 into dba8d47
Browse files Browse the repository at this point in the history
  • Loading branch information
hectcastro committed Oct 9, 2019
2 parents dba8d47 + 6f31053 commit a532b03
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
8 changes: 0 additions & 8 deletions opentreemap/opentreemap/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()

# TODO: Enable when django-statsd is compatible with Django > 1.8
# if getattr(settings, 'STATSD_CELERY_SIGNALS', False):
# # Import here to prevent error on Celery launch
# # that settings module is not defined
# from django_statsd.celery import register_celery_events
# register_celery_events()


rollbar_setup = False


Expand Down
9 changes: 1 addition & 8 deletions opentreemap/opentreemap/settings/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
USER_ACTIVATION_FUNCTION = None
INSTANCE_PERMISSIONS_FUNCTION = 'treemap.instance.get_instance_permission_spec'

ECOSERVICE_NAME = 'ecoservice'
ECOSERVICE_NAME = 'otm-ecoservice'

UITEST_CREATE_INSTANCE_FUNCTION = 'treemap.tests.make_instance'
UITEST_SETUP_FUNCTION = None
Expand Down Expand Up @@ -246,13 +246,6 @@
MIDDLEWARE += (
'rollbar.contrib.django.middleware.RollbarNotifierMiddleware',)

# Settings for StatsD metrics aggregation
# TODO: Enable when django-statsd is compatible with Django > 1.8
# STATSD_CLIENT = 'django_statsd.clients.normal'
# STATSD_PREFIX = '{}.django'.format(STACK_TYPE.lower())
# STATSD_HOST = os.environ.get('OTM_STATSD_HOST', 'localhost')
# STATSD_CELERY_SIGNALS = True

STACK_COLOR = os.environ.get('OTM_STACK_COLOR', 'Black')

CELERY_TASK_DEFAULT_QUEUE = STACK_COLOR
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ django-queryset-csv==1.0.0 # https://github.com/azavea/django-quer
django-recaptcha==1.4.0
django-redis==4.8.0
django-registration-redux==1.7
# django-statsd-mozilla==0.3.16 # TODO: enable when compatible with Django > 1.8 https://github.com/django-statsd/django-statsd/issues/97
django-storages==1.6.5
django-threadedcomments==1.1
django-tinsel==1.0.0
Expand All @@ -36,7 +35,7 @@ modgrammar-py2==0.9.1 # rq.filter: !=0.9.2
olefile==0.44
pep8==1.4.6 # rq.filter: ==1.4.6
Pillow==4.2.1
psycopg2==2.7.3 # http://initd.org/psycopg/docs/news.html
psycopg2==2.7.3.2 # http://initd.org/psycopg/docs/news.html
pyflakes==1.6.0
python-dateutil==2.6.1 # https://github.com/dateutil/dateutil/blob/master/NEWS
python-omgeo==5.1.0
Expand All @@ -45,7 +44,6 @@ redis==2.10.5
requests==2.20.0
rollbar==0.13.12 # https://github.com/rollbar/pyrollbar/blob/master/CHANGELOG.md
six==1.10.0
statsd==3.2.1
unicodecsv==0.14.1
urllib3==1.23
wsgiref==0.1.2

0 comments on commit a532b03

Please sign in to comment.