udata
udata copied to clipboard
Add infos about the udata.cfg file in docs/development
Some bit of information is missing from the current documentation to allow uploads locally in a development environment
Detailed Description
If you are just following the docs from this page your instance of udata does not allow you to upload files/resources locally on a dataset and returns you a 500 error.
Possible Implementation
We could :
- provide an example of a
udata.cfg
file content in the documentation something like :
from udata.settings import Defaults
DEBUG = True
SEND_MAIL = False
SERVER_NAME = 'dev.local:7000'
#THEME = 'default'
#CACHE_TYPE = 'null'
URLS_ALLOW_PRIVATE = True
URLS_ALLOW_LOCAL = True
URLS_ALLOWED_TLDS = Defaults.URLS_ALLOWED_TLDS | set(['local'])
RESOURCES_FILE_ALLOWED_DOMAINS = ['*']
- explain how to set up your machine to associate
dev.local
to your127.0.0.1
# edit your hosts file
nano ~/etc/hosts
# add the "dev.local" line and save
# 127.0.0.1 localhost
127.0.0.1 dev.local
... and explain where this file should go