Changeset View
Changeset View
Standalone View
Standalone View
docs/development.md
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | 11. In the admin panel (http://studio.local:8001/admin), edit the `Site` object's domain. | ||||
| it possible to immediately view objects created/edited via admin on site. | it possible to immediately view objects created/edited via admin on site. | ||||
| 12. Set up the [Blender ID server](#blender-id-authentication) for authentication | 12. Set up the [Blender ID server](#blender-id-authentication) for authentication | ||||
| and [MeiliSerach server](#search) for the search functionality. | and [MeiliSerach server](#search) for the search functionality. | ||||
| 13. Setup for video processing jobs. Download ngrok (https://ngrok.com/). | 13. Setup for video processing jobs. Download ngrok (https://ngrok.com/). | ||||
| - Run `./ngrok http 8010` | - Run `./ngrok http 8010` | ||||
| - Update `settings.py`: | - Update `settings.py`: | ||||
| - Set `COCONUT_API_KEY` to a valid value (see `settings.example.py`) | - Set `COCONUT_API_KEY` to a valid value (see `settings.example.py`) | ||||
| - Set `COCONUT_DECLARED_HOSTNAME` to `https://<random-value>.ngrok.io` | - Set `COCONUT_DECLARED_HOSTNAME` to `https://<random-value>.ngrok.io` | ||||
| 14. In order to be able to work on subscriptions and payments, you have to access the devservier over HTTPS: | |||||
| - make sure your `settings.py` has the following lines: | |||||
| ```python | |||||
| INSTALLED_APPS += [ | |||||
| 'sslserver', | |||||
| ] | |||||
| ``` | |||||
| - create a `SUBSCRIPTIONS_ENABLED` flag in the `Flags` admin: | |||||
| * check `Testing`; | |||||
| * visit https://studio.local:8001/join/?dwft_SUBSCRIPTIONS_ENABLED=1 to enable it in the current user session; | |||||
| * or set `Everyone: Yes` option to enable it unconditionally to be able to test the full flow. | |||||
| - make sure to set `GOOGLE_RECAPTCHA_SECRET_KEY` and `GOOGLE_RECAPTCHA_SITE_KEY` in you `settings.py`; | |||||
| - start the devserver with `./manage.py runsslserver 8001`; | |||||
| - access it at https://studio.local:8001/; | |||||
| - add an HTTPS version of the redirect URL (`https://studio.local:8001/oauth/authorized`) for Studio's OAuth application in your Blender ID admin. | |||||
| ## Data import | ## Data import | ||||
| You can add objects to the database manually via the Django's Admin panel. | You can add objects to the database manually via the Django's Admin panel. | ||||
| There are also commands that import data from the Cloud, but running them requires some additional | There are also commands that import data from the Cloud, but running them requires some additional | ||||
| arrangements - ask Francesco about it. | arrangements - ask Francesco about it. | ||||
| Another way is to upload data fixtures created from the staging database. | Another way is to upload data fixtures created from the staging database. | ||||
| ### Fixtures | ### Fixtures | ||||
| ▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines | |||||