Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError at / #161

Open
anoited007 opened this issue Mar 31, 2020 · 0 comments
Open

IndexError at / #161

anoited007 opened this issue Mar 31, 2020 · 0 comments

Comments

@anoited007
Copy link

I keep getting IndexError when I run the server. Am I missing something?
Below is my settings.py

from wazimap.settings import *  # noqa

# install this app before Wazimap
INSTALLED_APPS = ['wazimap_ex'] + INSTALLED_APPS

# Localise this instance of Wazimap
WAZIMAP['name'] = 'Country Dashboard'
# NB: this must be https if your site supports HTTPS.
WAZIMAP['url'] = 'http://wazimap.example.com'
WAZIMAP['country_code'] = 'AF'

WAZIMAP['versions'] = ['2018-03', '2019-03']

WAZIMAP['comparative_levels'] = ['country']

WAZIMAP['geometry_data'] = {
    '2018-03': {
        'continent': 'geo/continent.topojson',
        'country': 'geo/country.topojson'
    }
}

WAZIMAP['default_geo_version'] = None
WAZIMAP['profile_builder'] = 'wazimap_ww.profiles.get_profile'
WAZIMAP['geodata']: 'wazimap.geo.GeoData'
WAZIMAP['map_centre']: None
WAZIMAP['map_zoom']: None

STRIP_WWW = True
USE_THOUSAND_SEPARATOR = True

if DEBUG:
    CSRF_COOKIE_SECURE = False


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'wazimap',
        'USER': 'db_user',
        'PASSWORD': 'db_password',
        'HOST': '127.0.0.1',
        'PORT': '5432',
    }
}

```
I have added a screenshot below:
![image](https://user-images.githubusercontent.com/27229090/78070521-76436c80-738b-11ea-8638-6b42f021d966.png)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant