Permalink
Browse files

[fix bug 1226514] Rebase on sugardough.

Rebase project on sugardough code base, delete git submodules and
12factorize all the things.

Add /robots.txt view.

Rename lumbergh app to careers.

Add base app.

Add django_jobvite.

Add university app

 - With django migrations.

Add django_workable

Add careers app.

No need for special mobile handling.

Use travis docker infra.

collect static.

Add class based views.

CSRF for anonymous to enable /admin

Add giorgos to irccontacts.

Delete mysql from keywords.

Delete optimizely
  • Loading branch information...
glogiotatidis committed Nov 16, 2015
1 parent 9d35821 commit ab400d3026ea65d85fca036e35e9909b685afc97
Showing with 2,997 additions and 13,603 deletions.
  1. +5 −0 .coveragerc
  2. +1 −0 .dockerignore
  3. +5 −14 .gitignore
  4. +0 −3 .gitmodules
  5. +13 −6 .travis.yml
  6. +27 −0 Dockerfile
  7. +373 −25 LICENSE
  8. +1 −0 Procfile
  9. +43 −68 README.md
  10. +0 −33 Vagrantfile
  11. +0 −1 bin/commands.procfile
  12. +0 −28 bin/compile-mo.sh
  13. +0 −69 bin/jenkins.sh
  14. +904 −0 bin/peep.py
  15. +3 −0 bin/run-common.sh
  16. +4 −0 bin/run-dev.sh
  17. +4 −0 bin/run-prod.sh
  18. +0 −17 bin/update/commander_settings.py-dist
  19. +0 −123 bin/update/deploy.py
  20. +1 −0 careers/base/__init__.py
  21. +18 −0 careers/base/app.py
  22. +18 −0 careers/base/context_processors.py
  23. +0 −10 careers/base/helpers.py
  24. 0 careers/base/models.py
  25. 0 careers/base/static/css/.gitignore
  26. +1 −0 careers/base/static/js/base.js
  27. +3 −1 careers/base/static/js/gtm.js
  28. 0 careers/base/templates/.gitignore
  29. +3 −3 careers/base/templates/{404.html → 404.jinja}
  30. +3 −4 careers/base/templates/{500.html → 500.jinja}
  31. +0 −77 careers/base/templates/base.html
  32. +90 −0 careers/base/templates/base.jinja
  33. 0 careers/base/templates/base/{footer.html → footer.jinja}
  34. 0 careers/base/templates/base/{header.html → header.jinja}
  35. 0 {bin/update → careers/base/templatetags}/__init__.py
  36. +35 −0 careers/base/templatetags/helpers.py
  37. +2 −2 careers/base/tests/__init__.py
  38. +0 −17 careers/base/tests/test_helpers.py
  39. +7 −0 careers/base/views.py
  40. +0 −3 careers/careers/forms.py
  41. 0 careers/careers/models.py
  42. +1 −10 careers/careers/static/js/careers.js
  43. +4 −4 careers/careers/templates/careers/{home.html → home.jinja}
  44. +5 −5 careers/careers/templates/careers/{listings.html → listings.jinja}
  45. 0 careers/careers/templates/careers/{macros.html → macros.jinja}
  46. +3 −3 careers/careers/templates/careers/{position.html → position.jinja}
  47. +1 −3 careers/careers/tests/test_forms.py
  48. +9 −12 careers/careers/tests/test_utils.py
  49. +7 −8 careers/careers/tests/test_views.py
  50. +5 −6 careers/careers/urls.py
  51. +1 −1 careers/careers/utils.py
  52. +19 −17 careers/careers/views.py
  53. +0 −1 careers/django_workable/management/commands/syncworkable.py
  54. +34 −58 careers/django_workable/migrations/0001_initial.py
  55. +0 −49 ..._workable/migrations/0002_auto__del_field_position_job_shortcode__add_field_position_shortcode.py
  56. +0 −51 careers/django_workable/migrations/0003_auto__add_field_category_name__add_field_category_slug.py
  57. +0 −2 careers/django_workable/tests/__init__.py
  58. +24 −25 careers/django_workable/tests/test_commands.py
  59. +192 −0 careers/settings.py
  60. +0 −11 careers/settings/__init__.py
  61. +0 −132 careers/settings/base.py
  62. +0 −98 careers/settings/local.py-dist
  63. +0 −36 careers/settings/travis.py
  64. +17 −32 careers/university/migrations/0001_initial.py
  65. +1 −12 careers/university/static/js/university.js
  66. +249 −0 careers/university/templates/university/index.jinja
  67. +6 −9 careers/university/tests/test_models.py
  68. +7 −8 careers/university/tests/test_views.py
  69. +3 −3 careers/university/urls.py
  70. +3 −1 careers/university/views.py
  71. +11 −47 careers/urls.py
  72. +32 −0 careers/wsgi.py
  73. +2 −3 contribute.json
  74. +18 −0 docker-compose.yml
  75. +54 −7 docs/Makefile
  76. 0 docs/_templates/.gitkeep
  77. +0 −40 docs/build-github.zsh
  78. +76 −31 docs/conf.py
  79. +11 −19 docs/index.rst
  80. +242 −0 docs/make.bat
  81. 0 lib/__init__.py
  82. +0 −29 lib/l10n_utils/__init__.py
  83. 0 lib/l10n_utils/management/__init__.py
  84. 0 lib/l10n_utils/management/commands/__init__.py
  85. +0 −252 lib/l10n_utils/management/commands/l10n_check.py
  86. 0 lib/l10n_utils/models.py
  87. +0 −54 lib/l10n_utils/template.py
  88. +0 −34 lib/l10n_utils/tests.py
  89. +0 −1 lib/product_details_json/.last_update
  90. +0 −1 lib/product_details_json/firefox_beta_builds.json
  91. +0 −1 lib/product_details_json/firefox_history_development_releases.json
  92. +0 −1 lib/product_details_json/firefox_history_major_releases.json
  93. +0 −1 lib/product_details_json/firefox_history_stability_releases.json
  94. +0 −1 lib/product_details_json/firefox_primary_builds.json
  95. +0 −1 lib/product_details_json/firefox_versions.json
  96. +0 −1 lib/product_details_json/languages.json
  97. +0 −1 lib/product_details_json/mobile_details.json
  98. +0 −1 lib/product_details_json/mobile_history_development_releases.json
  99. +0 −1 lib/product_details_json/mobile_history_major_releases.json
  100. +0 −1 lib/product_details_json/mobile_history_stability_releases.json
  101. +0 −1 lib/product_details_json/thunderbird_beta_builds.json
  102. +0 −1 lib/product_details_json/thunderbird_history_development_releases.json
  103. +0 −1 lib/product_details_json/thunderbird_history_major_releases.json
  104. +0 −1 lib/product_details_json/thunderbird_history_stability_releases.json
  105. +0 −1 lib/product_details_json/thunderbird_primary_builds.json
  106. +0 −1 lib/product_details_json/thunderbird_versions.json
  107. 0 locale/.gitkeep
  108. 0 locale/en_US/LC_MESSAGES/messages.po
  109. +4 −17 manage.py
  110. +210 −0 newrelic.ini
  111. +0 −30 puppet/files/etc/httpd/conf.d/playdoh.conf
  112. +0 −53 puppet/manifests/classes/apache.pp
  113. +0 −3 puppet/manifests/classes/custom.pp
  114. +0 −25 puppet/manifests/classes/init.pp
  115. +0 −14 puppet/manifests/classes/memcahed.pp
  116. +0 −26 puppet/manifests/classes/mysql.pp
  117. +0 −39 puppet/manifests/classes/playdoh.pp
  118. +0 −34 puppet/manifests/classes/python.pp
  119. +0 −29 puppet/manifests/vagrant.pp
  120. +136 −0 requirements.txt
  121. +0 −7 requirements/compiled.txt
  122. +0 −5 requirements/dev.txt
  123. +0 −7 requirements/prod.txt
  124. +3 −0 setup.cfg
  125. +12 −0 setup.py
  126. 0 {docs/_static → static}/.gitkeep
  127. +31 −0 tox.ini
  128. +0 −5 vagrantconfig.yaml
  129. +0 −5 vagrantconfig_local.yaml-dist
  130. +0 −1 vendor
  131. +0 −2 vendor-local/lib/python/jingo_minify/__init__.py
  132. BIN vendor-local/lib/python/jingo_minify/bin/yuicompressor-2.4.7.jar
  133. +0 −176 vendor-local/lib/python/jingo_minify/helpers.py
  134. 0 vendor-local/lib/python/jingo_minify/management/__init__.py
  135. 0 vendor-local/lib/python/jingo_minify/management/commands/__init__.py
  136. +0 −278 vendor-local/lib/python/jingo_minify/management/commands/compress_assets.py
  137. +0 −251 vendor-local/lib/python/jingo_minify/tests.py
  138. +0 −52 vendor-local/lib/python/jingo_minify/utils.py
  139. +0 −9 vendor-local/lib/python/south/__init__.py
  140. +0 −5 vendor-local/lib/python/south/creator/__init__.py
  141. +0 −540 vendor-local/lib/python/south/creator/actions.py
  142. +0 −489 vendor-local/lib/python/south/creator/changes.py
  143. +0 −190 vendor-local/lib/python/south/creator/freezer.py
  144. +0 −81 vendor-local/lib/python/south/db/__init__.py
  145. +0 −322 vendor-local/lib/python/south/db/firebird.py
  146. +0 −1,139 vendor-local/lib/python/south/db/generic.py
  147. +0 −280 vendor-local/lib/python/south/db/mysql.py
  148. +0 −299 vendor-local/lib/python/south/db/oracle.py
  149. +0 −89 vendor-local/lib/python/south/db/postgresql_psycopg2.py
  150. 0 vendor-local/lib/python/south/db/sql_server/__init__.py
  151. +0 −434 vendor-local/lib/python/south/db/sql_server/pyodbc.py
  152. +0 −252 vendor-local/lib/python/south/db/sqlite3.py
  153. +0 −151 vendor-local/lib/python/south/exceptions.py
  154. +0 −10 vendor-local/lib/python/south/hacks/__init__.py
  155. +0 −107 vendor-local/lib/python/south/hacks/django_1_0.py
  156. +0 −10 vendor-local/lib/python/south/introspection_plugins/__init__.py
  157. +0 −11 vendor-local/lib/python/south/introspection_plugins/annoying_autoonetoone.py
  158. +0 −30 vendor-local/lib/python/south/introspection_plugins/django_audit_log.py
  159. +0 −16 vendor-local/lib/python/south/introspection_plugins/django_objectpermissions.py
  160. +0 −24 vendor-local/lib/python/south/introspection_plugins/django_tagging.py
  161. +0 −14 vendor-local/lib/python/south/introspection_plugins/django_taggit.py
  162. +0 −21 vendor-local/lib/python/south/introspection_plugins/django_timezones.py
  163. +0 −45 vendor-local/lib/python/south/introspection_plugins/geodjango.py
  164. +0 −38 vendor-local/lib/python/south/logger.py
  165. 0 vendor-local/lib/python/south/management/__init__.py
  166. +0 −40 vendor-local/lib/python/south/management/commands/__init__.py
  167. +0 −93 vendor-local/lib/python/south/management/commands/convert_to_south.py
  168. +0 −124 vendor-local/lib/python/south/management/commands/datamigration.py
  169. +0 −61 vendor-local/lib/python/south/management/commands/graphmigrations.py
  170. +0 −260 vendor-local/lib/python/south/management/commands/migrate.py
  171. +0 −67 vendor-local/lib/python/south/management/commands/migrationcheck.py
  172. +0 −215 vendor-local/lib/python/south/management/commands/schemamigration.py
  173. +0 −31 vendor-local/lib/python/south/management/commands/startmigration.py
  174. +0 −111 vendor-local/lib/python/south/management/commands/syncdb.py
  175. +0 −8 vendor-local/lib/python/south/management/commands/test.py
  176. +0 −8 vendor-local/lib/python/south/management/commands/testserver.py
  177. +0 −228 vendor-local/lib/python/south/migration/__init__.py
  178. +0 −439 vendor-local/lib/python/south/migration/base.py
  179. +0 −360 vendor-local/lib/python/south/migration/migrators.py
  180. +0 −83 vendor-local/lib/python/south/migration/utils.py
  181. +0 −37 vendor-local/lib/python/south/models.py
  182. +0 −462 vendor-local/lib/python/south/modelsinspector.py
  183. +0 −400 vendor-local/lib/python/south/orm.py
  184. +0 −24 vendor-local/lib/python/south/signals.py
  185. +0 −89 vendor-local/lib/python/south/tests/__init__.py
  186. +0 −353 vendor-local/lib/python/south/tests/autodetection.py
  187. 0 vendor-local/lib/python/south/tests/brokenapp/__init__.py
  188. +0 −13 vendor-local/lib/python/south/tests/brokenapp/migrations/0001_depends_on_unmigrated.py
  189. +0 −13 vendor-local/lib/python/south/tests/brokenapp/migrations/0002_depends_on_unknown.py
  190. +0 −13 vendor-local/lib/python/south/tests/brokenapp/migrations/0003_depends_on_higher.py
  191. +0 −11 vendor-local/lib/python/south/tests/brokenapp/migrations/0004_higher.py
  192. 0 vendor-local/lib/python/south/tests/brokenapp/migrations/__init__.py
  193. +0 −55 vendor-local/lib/python/south/tests/brokenapp/models.py
  194. 0 vendor-local/lib/python/south/tests/circular_a/__init__.py
  195. +0 −13 vendor-local/lib/python/south/tests/circular_a/migrations/0001_first.py
  196. 0 vendor-local/lib/python/south/tests/circular_a/migrations/__init__.py
  197. 0 vendor-local/lib/python/south/tests/circular_a/models.py
  198. 0 vendor-local/lib/python/south/tests/circular_b/__init__.py
  199. +0 −13 vendor-local/lib/python/south/tests/circular_b/migrations/0001_first.py
  200. 0 vendor-local/lib/python/south/tests/circular_b/migrations/__init__.py
  201. 0 vendor-local/lib/python/south/tests/circular_b/models.py
  202. +0 −857 vendor-local/lib/python/south/tests/db.py
  203. +0 −165 vendor-local/lib/python/south/tests/db_mysql.py
  204. 0 vendor-local/lib/python/south/tests/deps_a/__init__.py
  205. +0 −11 vendor-local/lib/python/south/tests/deps_a/migrations/0001_a.py
  206. +0 −11 vendor-local/lib/python/south/tests/deps_a/migrations/0002_a.py
  207. +0 −11 vendor-local/lib/python/south/tests/deps_a/migrations/0003_a.py
  208. +0 −13 vendor-local/lib/python/south/tests/deps_a/migrations/0004_a.py
  209. +0 −11 vendor-local/lib/python/south/tests/deps_a/migrations/0005_a.py
  210. 0 vendor-local/lib/python/south/tests/deps_a/migrations/__init__.py
  211. 0 vendor-local/lib/python/south/tests/deps_a/models.py
  212. 0 vendor-local/lib/python/south/tests/deps_b/__init__.py
  213. +0 −11 vendor-local/lib/python/south/tests/deps_b/migrations/0001_b.py
  214. +0 −13 vendor-local/lib/python/south/tests/deps_b/migrations/0002_b.py
  215. +0 −13 vendor-local/lib/python/south/tests/deps_b/migrations/0003_b.py
  216. +0 −11 vendor-local/lib/python/south/tests/deps_b/migrations/0004_b.py
  217. +0 −11 vendor-local/lib/python/south/tests/deps_b/migrations/0005_b.py
  218. 0 vendor-local/lib/python/south/tests/deps_b/migrations/__init__.py
  219. 0 vendor-local/lib/python/south/tests/deps_b/models.py
  220. 0 vendor-local/lib/python/south/tests/deps_c/__init__.py
  221. +0 −11 vendor-local/lib/python/south/tests/deps_c/migrations/0001_c.py
  222. +0 −11 vendor-local/lib/python/south/tests/deps_c/migrations/0002_c.py
  223. +0 −11 vendor-local/lib/python/south/tests/deps_c/migrations/0003_c.py
  224. +0 −11 vendor-local/lib/python/south/tests/deps_c/migrations/0004_c.py
  225. +0 −13 vendor-local/lib/python/south/tests/deps_c/migrations/0005_c.py
  226. 0 vendor-local/lib/python/south/tests/deps_c/migrations/__init__.py
  227. 0 vendor-local/lib/python/south/tests/deps_c/models.py
  228. 0 vendor-local/lib/python/south/tests/emptyapp/__init__.py
  229. 0 vendor-local/lib/python/south/tests/emptyapp/migrations/__init__.py
  230. 0 vendor-local/lib/python/south/tests/emptyapp/models.py
  231. 0 vendor-local/lib/python/south/tests/fakeapp/__init__.py
  232. +0 −17 vendor-local/lib/python/south/tests/fakeapp/migrations/0001_spam.py
  233. +0 −20 vendor-local/lib/python/south/tests/fakeapp/migrations/0002_eggs.py
  234. +0 −18 vendor-local/lib/python/south/tests/fakeapp/migrations/0003_alter_spam.py
  235. 0 vendor-local/lib/python/south/tests/fakeapp/migrations/__init__.py
  236. +0 −111 vendor-local/lib/python/south/tests/fakeapp/models.py
  237. +0 −15 vendor-local/lib/python/south/tests/freezer.py
  238. +0 −109 vendor-local/lib/python/south/tests/inspector.py
  239. +0 −82 vendor-local/lib/python/south/tests/logger.py
  240. +0 −898 vendor-local/lib/python/south/tests/logic.py
  241. 0 vendor-local/lib/python/south/tests/non_managed/__init__.py
  242. 0 vendor-local/lib/python/south/tests/non_managed/migrations/__init__.py
  243. +0 −16 vendor-local/lib/python/south/tests/non_managed/models.py
  244. 0 vendor-local/lib/python/south/tests/otherfakeapp/__init__.py
  245. +0 −15 vendor-local/lib/python/south/tests/otherfakeapp/migrations/0001_first.py
  246. +0 −11 vendor-local/lib/python/south/tests/otherfakeapp/migrations/0002_second.py
  247. +0 −14 vendor-local/lib/python/south/tests/otherfakeapp/migrations/0003_third.py
  248. 0 vendor-local/lib/python/south/tests/otherfakeapp/migrations/__init__.py
  249. +0 −1 vendor-local/lib/python/south/tests/otherfakeapp/models.py
  250. +0 −73 vendor-local/lib/python/south/utils/__init__.py
  251. +0 −28 vendor-local/lib/python/south/utils/datetime_utils.py
  252. +0 −19 vendor-local/lib/python/south/v2.py
  253. +0 −1 vendor-local/src/django
  254. +0 −1 vendor-local/src/django-jobvite
  255. +0 −2 vendor-local/vendor.pth
  256. +0 −33 wsgi/playdoh.wsgi
View
@@ -0,0 +1,5 @@
[run]
source = careers
[report]
omit = */migrations/*
View
@@ -0,0 +1 @@
.git
View
@@ -1,18 +1,9 @@
local.py
careers/settings/local.py
*.py[co]
*.sw[po]
.coverage
pip-log.txt
docs/_gh-pages
build.py
.env
*.pyc
.DS_Store
*-min.css
*-all.css
*-min.js
*-all.js
.noseids
tmp/*
*~
*.mo
.vagrant
docs/_build
.tox/
MANIFEST
View
@@ -1,9 +1,6 @@
[submodule "vendor-local/src/django-jobvite"]
path = vendor-local/src/django-jobvite
url = https://github.com/mozilla/django-jobvite.git
[submodule "vendor"]
path = vendor
url = git://github.com/mozilla/playdoh-lib.git
[submodule "vendor-local/src/django"]
path = vendor-local/src/django
url = https://github.com/django/django.git
View
@@ -1,11 +1,18 @@
sudo: false
language: python
python:
- "2.6"
before_install:
- mysql -e 'create database lumbergh_app character set utf8;'
- git submodule update --init --recursive
- "2.7"
addons:
postgresql: "9.4"
before_script:
- createdb lumbergh_db
install:
- pip install -r requirements/dev.txt
- pip install tox coveralls
env:
- TOX_ENV=flake8
- TOX_ENV=docs
- TOX_ENV=tests
script:
- python manage.py test
- tox -e $TOX_ENV
after_success:
- coveralls
View
@@ -0,0 +1,27 @@
FROM debian:jessie
EXPOSE 8000
CMD ["./bin/run-prod.sh"]
RUN adduser --uid 1000 --disabled-password --gecos '' --no-create-home webdev
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential python python-dev python-pip \
libpq-dev postgresql-client gettext && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Pin a known to work with peep pip version.
RUN pip install pip==6.0.0
# First copy requirements.txt and peep so we can take advantage of
# docker caching.
COPY ./bin/peep.py /app/bin/peep.py
COPY requirements.txt /app/requirements.txt
RUN ./bin/peep.py install -r requirements.txt
COPY . /app
RUN DEBUG=False SECRET_KEY=foo ALLOWED_HOSTS=localhost, DATABASE_URL= ./manage.py collectstatic --noinput -c
RUN chown webdev.webdev -R .
USER webdev
Oops, something went wrong.

0 comments on commit ab400d3

Please sign in to comment.