A Django application for editing metadata of public datasets.
python manage.py load_sources
python manage.py create_roots
python manage.py setup_ambry_search
If automatic ambry search system (previous step) failed, try install it manually:
$ ambry config install
$ ambry info # Verify version >= 0.3.705.
$ ambry sync # Verify that you are geting the civicknowledge.com-terms-0.0.3 bundle
$ ambry list terms # Should return civicknowledge.com-terms
$ ambry search terms # Should return civicknowledge.com-terms
$ ambry search -R # Rebuilds place identifiers; datasets built during sync
$ ambry search -i California # Should return California state and a lot of counties.
Given you are running metaeditor app on metaeditor.org
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = "..." # Client Id
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = "..." # Client secret
SOCIAL_AUTH_FACEBOOK_KEY = "..." # App ID
SOCIAL_AUTH_FACEBOOK_SECRET = "..." # App secret
Sources will be imported from editor/data/sources.csv.
To import sources use load_sources management command:
python manage.py load_sources
If you already have sources call load_sources with --delete option. (this will delete all dataset too):
python manage.py load_sources --delete
Install dependencies from requirements_dev.txt. Run
python manage.py test
Install dependencies from requirements_dev.txt.
Add lettuce
to INSTALLED_APPS.
Run
python manage.py harvest --no-server editor/features