Lingo Application (Vocabulary Management)
- a. if working locally, run
pip install .
inside arches application to copy files into ENV orpip install -e .
to create an egg link to a local arches application. b. if not working locally runpip install arches-rdm
- Create a project if not installing into already-existing project.
arches-project create $PROJECT_NAME
- Add package to INSTALLED_APPS and ARCHES_APPLICATIONS
INSTALLED_APPS = (
...,
"arches_rdm"
)
ARCHES_APPLICATIONS = (
...,
'arches_rdm',
)
- Add arches_applications to dependencies in package.json
"dependencies": {
"arches": "archesproject/arches#dev/7.6.x",
"arches_rdm": "archesproject/arches-rdm"
}
- Install arches_application dependencies
yarn install
- Add the application urls to the project's
urls.py
urlpatterns = [
path('', include('arches.urls')),
path('', include("arches_rdm.urls")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
- This project currently uses a frontend outside of Arches. To allow it to communicate with Django, add this to your project
settings.py
:
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = ["http://localhost:8080"] # vue frontend
NOTE: This rough draft currently assumes the Django backend is served at https://127.0.0.1:8029/
.
Run the frontend with:
npm run serve