# Django settings for nearby_people project.
import os, sys
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

# FOAF/DOAP settings:
PEOPLE_FOAF_NAMESPACE = "urn:org:apache:"
PEOPLE_FOAF_ALT_NAMESPACE = "http://people.apache.org/" # Remove in a bit

# These should point to where you checked out bits of the commiters repo to
COMDEV_DOAP = os.path.join(BASE_DIR, "data/local-outreach/CommunityDevelopment.rdf")
SPEAKERS_DOAP = os.path.join(BASE_DIR, "data/local-outreach/ApacheSpeakers.rdf")
PEOPLE_FOAF_PATH = os.path.join(BASE_DIR, "data/info/")

# This should point to where the LDAP Search result of uids+createTimestamps is
UID_CREATED_LDIF = os.path.join(BASE_DIR, "data/uid-created.ldif")

# How often to reload all the DOAP/FOAF files, in hours
FOAF_REFRESH_HOURS = 2

# What host(s) we are running as
ALLOWED_HOSTS = [
     "community-vm.apache.org",
     "community.zones.apache.org",
     "127.0.0.1",
     "localhost"
]

# Google Maps settings
# Official key managed by ASF Infra
GMAPS_KEY = ""

# GeoNames settings
# Note - you need your own username, register at http://www.geonames.org/login
#GEONAMES_USERNAME = "ExampleUsername"

# Are we in testing or production?
DEBUG = True
TEMPLATE_DEBUG = DEBUG

# Do we want to know about 404s?
SEND_BROKEN_LINK_EMAILS = False

# Who should we bug about errors?
ADMINS = [
    # ('Your Name', 'your_email@domain.com'),
]
MANAGERS = ADMINS

#SERVER_EMAIL = "root@community.zones.apache.org"
#EMAIL_HOST = "localhost"

# Database settings
# (This can be left largely blank for now - we're not database backed)
DATABASES = {
    'default': { 'ENGINE': '' }
}
