Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into visual-update
- Loading branch information
Showing
25 changed files
with
305 additions
and
1,474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"directory": "static/vendor" | ||
"directory": "static/vendor", | ||
"registry": "https://registry.bower.io" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
static/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Public | ||
AWS_STORAGE_BUCKET_NAME="<change me>" | ||
CONTACT_EMAIL_SENDER="<change me>" | ||
DJANGO_ADMINS="name1 <email1>, name2 <email2>" | ||
DJANGO_ALLOWED_HOSTS="okfn.org,www.okfn.org" | ||
DJANGO_AWS_S3_CUSTOM_DOMAIN="<change me>" | ||
DJANGO_COMPRESS_OFFLINE="true" | ||
DJANGO_CUSTOM_ASSETS_DOMAIN="<change me>" | ||
DJANGO_DEBUG="false" | ||
DJANGO_EMAIL_DEBUG="false" | ||
DJANGO_EMAIL_HOST="<change me>" | ||
DJANGO_EMAIL_PORT="<change me>" | ||
DJANGO_EMAIL_USE_TLS="true" | ||
DJANGO_GOOGLE_ANALYTICS_DOMAIN="<change me>" | ||
DJANGO_GOOGLE_ANALYTICS_TRACKING_ID="<change me>" | ||
DJANGO_MANAGERS="name1 <email1>, name2 <email2>" | ||
DJANGO_SECURE="true" | ||
DJANGO_USE_AWS_STORAGE="true" | ||
GENERAL_EMAIL_RECEPIENTS="name1 <email1>, name2 <email2>" | ||
PRESS_EMAIL_RECEPIENTS="name1 <email1>, name2 <email2>" | ||
SERVICE_EMAIL_RECEPIENTS="name1 <email1>, name2 <email2>" | ||
|
||
# Private | ||
AWS_ACCESS_KEY_ID="<change me>" | ||
AWS_SECRET_ACCESS_KEY="<change me>" | ||
CACHE_URL="redis://localhost:6379/0" | ||
DATABASE_URL="postgres://user:pass@localhost:5432/okfn" | ||
DJANGO_CSP_REPORT_URI="<change me>" | ||
DJANGO_EMAIL_HOST_USER="<change me>" | ||
DJANGO_EMAIL_HOST_PASSWORD="<change me>" | ||
DJANGO_MAILCHIMP_TOKEN="<change me>" | ||
DJANGO_MAILCHIMP_URL="<change me>" | ||
DJANGO_SECRET_KEY="<change me>" | ||
HUBOT_API_KEY="<change me>" | ||
SEARCH_URL="http://localhost:9200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM python:2.7 | ||
MAINTAINER Open Knowledge International | ||
|
||
WORKDIR /app | ||
RUN apt-get update | ||
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | ||
|
||
COPY article_list_item ./article_list_item | ||
COPY contrib ./contrib | ||
COPY docs ./docs | ||
COPY foundation ./foundation | ||
COPY lib ./lib | ||
COPY sendemail ./sendemail | ||
COPY static ./static | ||
COPY templates ./templates | ||
COPY tools ./tools | ||
COPY .bowerrc . | ||
COPY bower.json . | ||
COPY manage.py . | ||
COPY package-lock.json . | ||
COPY package.json . | ||
COPY requirements.txt . | ||
|
||
RUN pip install -r requirements.txt | ||
RUN . /root/.nvm/nvm.sh && nvm install 10 | ||
RUN . /root/.nvm/nvm.sh && nvm use 10 | ||
RUN . /root/.nvm/nvm.sh && npm install -g bower | ||
RUN . /root/.nvm/nvm.sh && bower install --allow-root | ||
|
||
ENV PORT 80 | ||
EXPOSE $PORT | ||
|
||
CMD python manage.py migrate && \ | ||
python manage.py update_index && \ | ||
gunicorn foundation.wsgi:application \ | ||
--access-logfile '-' \ | ||
--error-logfile '-' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
foundation/organisation/migrations/0011_auto_20180719_1144.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('organisation', '0010_networkgroup_forum_group_url'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='boardmembership', | ||
options={'ordering': ['-order', 'person__name']}, | ||
), | ||
migrations.AddField( | ||
model_name='boardmembership', | ||
name='order', | ||
field=models.IntegerField(help_text=b'Higher numbers mean higher up in the list', null=True, blank=True), | ||
), | ||
] |
Oops, something went wrong.