Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
John James
whats-open
Commits
b6e769a5
Verified
Commit
b6e769a5
authored
Jun 25, 2017
by
David Haynes
🙆
Browse files
Add in GeoDjango support
- modify the db engine - new package req's - Modify the Docker build process
parent
eb81dac2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
b6e769a5
...
...
@@ -8,7 +8,7 @@ ENV PYTHONUNBUFFERED 1
# Update the sources list
RUN
apt-get update
RUN
apt-get
install
netcat
-y
RUN
apt-get
install
netcat
libgdal1h libproj-dev proj-data proj-bin
-y
RUN
mkdir
/whats_open
WORKDIR
/whats_open
...
...
requirements/base.txt
View file @
b6e769a5
...
...
@@ -7,4 +7,5 @@ mysqlclient==1.3.10
setuptools==36.0.1
django-taggit==0.22.1
django-taggit-serializer==0.1.5
six==1.10.0
\ No newline at end of file
six==1.10.0
djangorestframework-gis==0.11.2
\ No newline at end of file
whats-open/settings/base.py
View file @
b6e769a5
...
...
@@ -126,7 +126,7 @@ FIXTURE_DIRS = (
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.mysql'
,
'ENGINE'
:
'django.
contrib.gis.
db.backends.mysql'
,
'NAME'
:
os
.
environ
[
'WOPEN_DB_NAME'
],
'USER'
:
os
.
environ
[
'WOPEN_DB_USER'
],
'PASSWORD'
:
os
.
environ
[
'WOPEN_DB_PASSWORD'
],
...
...
@@ -221,6 +221,7 @@ INSTALLED_APPS = (
# Admin panel and documentation:
'django.contrib.admin'
,
'django.contrib.admindocs'
,
'django.contrib.gis'
,
# Apps specific for this project go here.
'api'
,
...
...
@@ -229,6 +230,7 @@ INSTALLED_APPS = (
'taggit'
,
'taggit_serializer'
,
'rest_framework'
,
'rest_framework_gis'
,
)
########## END APP CONFIGURATION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment