Hello Vencislav. Over the last month or so, some extensive work has happened on the system settings to further integrate them with the UI; many of them, including the mapbox key, are now stored as a single Resource in the database. Therefore, easiest way to enter the mapbox key is to go to the System Settings menu, once logged into your Arches installation and enter the key there.
Once you have entered that setting through the UI, you should note that if you re-run setup_db, this api key will be erased (and any other settings you have entered in the UI). To make these settings persist after you have entered them in the UI, you should export them as business data and set this exported file as a local system settings file. To do so: 1) activate the virtual environment and enter your app directory 2) run this command python manage.py packages -o export_business_data -d /path/to/output/directory -f json -g ff623370-fa12-11e6-b98b-6c4008b05c4c This will create a single .json file that holds all the system settings that are stored in the database. 3) move the resulting exported file into arches/arches/db/system_settings (which holds Arches_System_Settings.json and rename it Arches_System_Settings_Local.json 4) now when you run setup_db Arches will pull from your new "local" file to populate the database. Note that this is relevant for a "developer installation" of Arches, where you have cloned the repo. Support for persistent settings on a "project-by-project" basis is being tracked in this ticket <https://github.com/archesproject/arches/issues/2106>. I'll be adding all of this to the wiki documentation asap! Let me know if you have any questions or issues with the steps laid out above. Adam On Mon, Jun 19, 2017 at 7:46 AM, Vencislav Pirinski <[email protected]> wrote: > Hello, > > I have installed Arches again, without any visible errors. The problem is > the map is not showing. > I have an API from Mapbox, even made a new one, tested and its 100% > working, on my previous installation its still working too. > > I checked the source of the html page and found that there is no API key > there: > > mapboxApiKey: 'None', > > On my previous installation there is the API key here. > My settings_local.py has my API key, i even tried to paste my API key also > in settings.py, but same results. > > Can someone please advice me what to do. > > Best regards, > Vencislav Pirinski > > > -- > -- 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.
