Hi Vencislav. Here are some settings.py examples from Arches apps that
folks have on github:

afrh <https://github.com/mradamcox/afrh/blob/master/afrh/settings.py>
crip <https://github.com/mradamcox/crip/blob/master/crip/settings.py>
zbiva <https://github.com/bojankastelic/zbiva/blob/master/zbiva/settings.py>

I have the afrh app cloned to my laptop (windows 10) and also to the
production server (ubuntu 14.04), so in each location I have a different
settings_local.py file that is not tracked by the repo. I will attach those
two (renamed) settings_local.py files, so you can see what that looks like
as well.

Hope that helps!

On Sat, Oct 22, 2016 at 8:40 AM, Vencislav Pirinski <[email protected]>
wrote:

> Hi,
> I am having trouble configuring the settings.py file. Can anyone give me a
> sample one? From the demo arches site maybe? Things as API codes, could be
> removed.
>
>
> --
> -- To post, send email to [email protected]. To unsubscribe,
> send email to [email protected]. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
import os
from arches_hip.settings import DATABASES
from settings import PACKAGE_ROOT

DEBUG = True

## CONFIGS NECESSARY FOR DEVELOPMENT ONLY
GDAL_LIBRARY_PATH = "C:/OSGeo4W64/bin/gdal111.dll"
DATABASES['default']['POSTGIS_TEMPLATE'] = 'postgis_22_sample'

ELASTICSEARCH_HTTP_PORT = 9600
ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': ELASTICSEARCH_HTTP_PORT}]

LOCAL_DOMAIN = "localhost:8000"

## abbreviated paths
BUSISNESS_DATA_FILES = (
    r'..\buildings_actors.arches',
    r'..\areas.arches',
    r'..\activities.arches',
    r'..\savannah1.arches',
    r'..\circulation.arches',
    r'..\landscape_resources.arches',
    r'..\arch_zone7.arches',
)

from settings import INSTALLED_APPS, PACKAGE_NAME
import os

DEBUG = True

DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_STORAGE_BUCKET_NAME = 'afrh-media'
## not the actual access key ID!!
AWS_ACCESS_KEY_ID = 'XXXXXXXXXXXX'
## not the actual secret access key!!
AWS_SECRET_ACCESS_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
AWS_S3_FILE_OVERWRITE = False
AWS_QUERYSTRING_EXPIRE = 63115200
S3_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME
MEDIA_URL = S3_URL
INSTALLED_APPS = INSTALLED_APPS + (PACKAGE_NAME,'storages',)

STATIC_ROOT = '/srv/afrh/afrh/static'
STATIC_URL = '/static/'

## abbreviated paths
BUSISNESS_DATA_FILES = (
    '../buildings_actors.arches',
    '../areas.arches',
    '../activities.arches',
    '../arch_zone7.arches'
    '../savannah1.arches',
    '../circulation.arches',
    '../landscape_resources.arches',
)

## not the actual tracking ID!!
GOOGLE_ANALYTICS_TRACKING_ID = "UA-XXXXXXXXX-2"

Reply via email to