Removed ALTER SYSTEM set, users will just have to set those options manually. This is done automatically in Docker.

pull/66/head
Piero Toffanin 2016-12-14 09:24:49 -05:00
rodzic d6ef80986f
commit 3a6e270d27
2 zmienionych plików z 10 dodań i 12 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ If you know Python, web technologies (JS, HTML, CSS, etc.) or both, make a fork,
- [Python](https://www.python.org/downloads/)
- [Git](https://git-scm.com/downloads)
* From the Docker Quickstart Terminal (Windows) or from the command line (OSX / Linux) type:
* From the Docker Quickstart Terminal (Windows) or from the command line (Mac / Linux) type:
```
git clone https://github.com/OpenDroneMap/WebODM
cd WebODM
@ -31,7 +31,7 @@ pip install docker-compose
docker-machine ip
```
Linux / OSX, users can connect to 127.0.0.1.
Linux / Mac, users can connect to 127.0.0.1.
* Open a Web Browser to `http://<yourDockerMachineIp>:8000`
* Log in with the default credentials: "admin:admin"
@ -82,7 +82,7 @@ Then these steps should be sufficient to get you up and running:
git clone https://github.com/OpenDroneMap/WebODM
```
Create a `WebODM\webodm\local_settings.py` file containing:
Create a `WebODM\webodm\local_settings.py` file containing your database settings:
```
DATABASES = {
@ -97,6 +97,13 @@ DATABASES = {
}
```
From psql or [pgadmin](https://www.pgadmin.org), connect to the database and set the [postgis.enable_outdb_rasters](http://postgis.net/docs/manual-2.2/postgis_enable_outdb_rasters.html) and [postgis.gdal_enabled_drivers](http://postgis.net/docs/postgis_gdal_enabled_drivers.html) settings:
```sql
ALTER SYSTEM SET postgis.enable_outdb_rasters TO True;
ALTER SYSTEM SET postgis.gdal_enabled_drivers TO 'GTiff';
```
Then:
```

Wyświetl plik

@ -1,9 +0,0 @@
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("app", "0001_initial")]
operations = [
migrations.RunSQL("ALTER SYSTEM SET postgis.enable_outdb_rasters TO True;"),
migrations.RunSQL("ALTER SYSTEM SET postgis.gdal_enabled_drivers TO 'GTiff';")
]