Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #1701: Events page displays year for events scheduled to start or end at a future year #1714

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
1502c10
Add Methods To Check If Event Starts And Ends This Year
alvindera97 Dec 25, 2020
4198812
Set Up Templates For Querying Start And End Years
alvindera97 Dec 25, 2020
ff1ad8b
Insert New Test Data And Update test_views.py
alvindera97 Dec 25, 2020
e3125d9
Time Tag Now Shows Year For Events With Details Not Within The Curren…
alvindera97 Dec 25, 2020
178742b
Move All Test Data To Functional Test
alvindera97 Dec 25, 2020
e0fdf7c
Functional Test For Displaying Year Of Event For Future Events Now Im…
alvindera97 Dec 27, 2020
115af08
Remove Functional Test For Displaying Year Of Future Event
alvindera97 Dec 27, 2020
aa4d55b
Handle Case When Call To Next Event Returns None
alvindera97 Apr 9, 2022
0ed1e92
Update Package Versions For Dev Requirements Required For Testing
alvindera97 Apr 9, 2022
c58ea88
Merge branch 'main' into change-functional-test-to-unit-test
alvindera97 Dec 31, 2022
7208dd0
add snippet for google analytics 4
ewdurbin Jan 11, 2023
b41f5e4
Fixed Issue#2190 | Homepage code syntax error (#2191)
eshaanmandal Jan 17, 2023
afe3cdb
add a sponsorship export function via admin (#2231)
ewdurbin Jan 20, 2023
f01f67f
Add management command to create sponsor vouchers for PyCon 2023 (#2233)
renatooliveira Jan 26, 2023
53487cd
updates to sponsor contract template (#2237)
ewdurbin Jan 27, 2023
19703a6
update prefix for additional discounted registration vouchers
ewdurbin Feb 15, 2023
fad14cb
Add missing migrations (#2246)
di Feb 15, 2023
b12479f
Add support for Sigstore bundle files (#2247)
di Feb 15, 2023
240865e
Add a check in CI for missing migrations (#2248)
di Feb 15, 2023
2ce2442
sponsorship: allow admins to temporarily unlock finalized sponsorship…
ewdurbin Feb 16, 2023
49a1e2a
bump rate limit for api
ewdurbin Mar 6, 2023
88d42f7
sponsorship form: fix rendering of application form
ewdurbin Mar 18, 2023
74cb445
enable customizing admin (#2263)
ewdurbin Mar 21, 2023
55b298d
revert inadvertently committed.
ewdurbin Mar 21, 2023
0422be5
add notes regarding basic membership (#2271)
ewdurbin May 12, 2023
085736b
missed
ewdurbin May 12, 2023
386e672
fix test
ewdurbin May 12, 2023
155b2b0
handle malformed events from ics calendars (#2281)
ewdurbin Jun 12, 2023
02ef7a8
allow acceptance of nominations after deadline
ewdurbin Jun 16, 2023
66af2ac
Use "static" templatetag insteadof the deprecated "admin_static" (#2288)
luzfcb Jul 20, 2023
3508c99
Convert custom_storages.py to a python module (#2289)
luzfcb Jul 20, 2023
c6d72c0
no longer sponsored (#2296)
ewdurbin Jul 20, 2023
c4ee749
Update feature_request.md
ewdurbin Aug 3, 2023
ad5e23f
Update python.org socialize menu to include a link to the PSF Mastodo…
mlcohen Nov 14, 2023
f274b4f
upgrade elasticsearch client
ewdurbin Nov 15, 2023
ac85091
upgrade django-haystack
ewdurbin Nov 15, 2023
82682b0
use new backend
ewdurbin Nov 15, 2023
e4ee9ce
make index name configurable
ewdurbin Nov 15, 2023
6720796
this is just a 1/2/3 differentiator, disregard in search
ewdurbin Nov 15, 2023
c949855
Add config file for Read the Docs (#2328)
hugovk Nov 21, 2023
f04b96f
Remove broken Twitter widget (#2329)
hugovk Nov 21, 2023
0f88105
fix misleading link in site-tree fixture
ewdurbin Dec 9, 2023
e6118a4
Update sponsor_new_application.txt
ewdurbin Dec 14, 2023
91fc8cc
update sponsor contract with new info, fix sponsorship year
ewdurbin Dec 14, 2023
1296660
fix notice in post-roll on sponsor application
ewdurbin Dec 14, 2023
fad5f2b
filtering by current_year where necessary
ewdurbin Dec 14, 2023
7b14c6c
fix deletion of BenefitFeatures
ewdurbin Dec 14, 2023
82016f4
missing migration
ewdurbin Dec 14, 2023
7ba7d36
missing migration
ewdurbin Dec 14, 2023
4ef4388
Sponsorship - adding renewal option for contract generation (#2344)
jessiebelle Dec 19, 2023
c00f46e
formatting tweaks to the renewal contract
ewdurbin Dec 19, 2023
e8a5c82
actually add template change
ewdurbin Dec 19, 2023
cbc6c14
updated python issue tracker and pep links (#2318)
varunhc Dec 19, 2023
56d2c85
Fix for SVG upload in sponsorship application (#2352)
jessiebelle Jan 2, 2024
db9d241
update sponsor voucher fulfillment for 2024
ewdurbin Jan 5, 2024
9b4dedd
add new incorporation fields to form and sponsor model (#2351)
jessiebelle Jan 9, 2024
04751c8
2342 display only benefits associated with the year of the sponsorshi…
jessiebelle Jan 15, 2024
0d5432a
Add support for hosting SPDX-2 SBOMs alongside release artifacts (#2359)
sethmlarson Jan 17, 2024
cde08ed
Link to SBOM user documentation from release detail page (#2363)
sethmlarson Feb 7, 2024
096ac33
LinkedIn stuff (#2367)
ewdurbin Feb 9, 2024
8f37034
Update job_detail.html (#2298)
joncle Feb 14, 2024
bd3f080
Add DearPyGui to home page (#2362)
cfsok Feb 21, 2024
c1b800b
`download:download_release_detail` view: Display file sizes with huma…
noelleleigh Feb 21, 2024
a4990b7
Move to pandoc for rendering sponsorship contracts (#2343)
ewdurbin Feb 21, 2024
f3fa1fc
Prioritise 64-bit downloads over 32-bit (#2311)
hugovk Feb 21, 2024
f88599b
Redirect legacy community page (#2319)
dorian-adams Feb 21, 2024
94e53da
Bump beautifulsoup4 from 4.9.3 to 4.11.2 (#2239)
dependabot[bot] Feb 21, 2024
af64f12
Bump lxml from 4.6.3 to 4.9.2 (#2212)
dependabot[bot] Feb 21, 2024
8209dff
Revert "Move to pandoc for rendering sponsorship contracts (#2343)" (…
ambv Feb 21, 2024
a7f830a
Remove stranded </span> from templates/base.html (#2377)
ambv Feb 21, 2024
95304aa
Redirect cleanup (#2378)
ewdurbin Feb 21, 2024
32071fb
fix download redirects to match previous behavior (#2393)
ewdurbin Mar 5, 2024
b4d22a8
Move to pandoc for rendering sponsorship contracts (take 2) (#2375)
ambv Mar 5, 2024
5261d14
implement a static URL for editing sponsor details (#2394)
ewdurbin Mar 7, 2024
2a2ef06
add celery (#2395)
ewdurbin Mar 8, 2024
d94b133
Deploy to Cabotage (#2396)
ewdurbin Mar 8, 2024
55b9dbc
Redirect Code of Conduct documents to polices.python.org (#2399)
ewdurbin Mar 11, 2024
579f3ab
Update Django to 2.2.28 (#2398)
ambv Mar 11, 2024
861e536
followup on 2399 (#2400)
ewdurbin Mar 11, 2024
cf668c8
unidecode filenames for sponsorship contract export
ewdurbin Apr 12, 2024
2e95da1
Update python3statement URL (#2433)
hugovk Apr 18, 2024
8048163
Update ci.yml (#2424)
cclauss Apr 18, 2024
57d1722
Docs: Fix links (#2412)
hugovk Apr 18, 2024
7928f4f
Bump factory-boy from 2.9.2 to 3.2.0 (#1715)
dependabot-preview[bot] Apr 18, 2024
bc59460
Bump gunicorn from 19.9.0 to 21.2.0 (#2384)
dependabot[bot] Apr 18, 2024
69769b6
Keep GitHub Actions up to date with GitHub's Dependabot (#2401)
cclauss Apr 18, 2024
2894ad3
allow clearing textbenefits via admin
ewdurbin May 9, 2024
863600c
add plausible.io analytics
ewdurbin May 31, 2024
5491353
upgrade django-allauth to bypass setuptools 70.0.0 issue
ewdurbin May 31, 2024
a9b759e
Bump gunicorn from 19.9.0 to 22.0.0 (#2436)
dependabot[bot] Jun 20, 2024
afd9adf
Bump django-sitetree from 1.17.0 to 1.18.0 (#2406)
dependabot[bot] Jun 20, 2024
2a45f8c
Bump lxml from 4.9.2 to 5.2.2 (#2450)
dependabot[bot] Jun 21, 2024
91df58f
Add Methods To Check If Event Starts And Ends This Year
alvindera97 Dec 25, 2020
9c56587
Set Up Templates For Querying Start And End Years
alvindera97 Dec 25, 2020
83c5994
Insert New Test Data And Update test_views.py
alvindera97 Dec 25, 2020
4f581c3
Time Tag Now Shows Year For Events With Details Not Within The Curren…
alvindera97 Dec 25, 2020
4603a48
Move All Test Data To Functional Test
alvindera97 Dec 25, 2020
f14d9a3
Functional Test For Displaying Year Of Event For Future Events Now Im…
alvindera97 Dec 27, 2020
b58f4c5
Remove Functional Test For Displaying Year Of Future Event
alvindera97 Dec 27, 2020
45a598d
Handle Case When Call To Next Event Returns None
alvindera97 Apr 9, 2022
f255655
Merge remote-tracking branch 'origin/change-functional-test-to-unit-t…
alvindera97 Aug 8, 2024
cc48e58
Add Methods To Check If Event Starts And Ends This Year
alvindera97 Dec 25, 2020
843388d
Set Up Templates For Querying Start And End Years
alvindera97 Dec 25, 2020
b76b799
Insert New Test Data And Update test_views.py
alvindera97 Dec 25, 2020
5f5ad31
Time Tag Now Shows Year For Events With Details Not Within The Curren…
alvindera97 Dec 25, 2020
6ea4ebe
Move All Test Data To Functional Test
alvindera97 Dec 25, 2020
2296da1
Functional Test For Displaying Year Of Event For Future Events Now Im…
alvindera97 Dec 27, 2020
b18ab1b
Remove Functional Test For Displaying Year Of Future Event
alvindera97 Dec 27, 2020
c0ed36c
Handle Case When Call To Next Event Returns None
alvindera97 Apr 9, 2022
4210815
Time Tag Now Shows Year For Events With Details Not Within The Curren…
alvindera97 Dec 25, 2020
2b82eb4
Move All Test Data To Functional Test
alvindera97 Dec 25, 2020
2d74ab8
Functional Test For Displaying Year Of Event For Future Events Now Im…
alvindera97 Dec 27, 2020
5d6349b
Remove Functional Test For Displaying Year Of Future Event
alvindera97 Dec 27, 2020
f600621
Update Package Versions For Dev Requirements Required For Testing
alvindera97 Apr 9, 2022
3fc606c
Merge branch 'change-functional-test-to-unit-test' of github.com:alvi…
alvindera97 Aug 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ This is the repository and issue tracker for https://www.python.org
website.
If you're looking to file an issue with CPython itself, please go to
https://bugs.python.org
https://github.com/python/cpython/issues/new/choose
Issues related to Python's documentation (https://docs.python.org) can
also be filed in https://bugs.python.org, by selecting the
"Documentation" component.
also be filed at https://github.com/python/cpython/issues/new?assignees=&labels=docs&template=documentation.md.
-->

**Is your feature request related to a problem? Please describe.**
Expand Down
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ updates:
- dependency-name: lxml
versions:
- 4.6.2
- package-ecosystem: github-actions
directory: "/"
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: daily
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,24 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Check out repository
uses: actions/checkout@v2
- uses: actions/setup-python@v2
uses: actions/checkout@v4
- name: Install platform dependencies
run: |
sudo apt -y update
sudo apt -y install --no-install-recommends \
texlive-latex-base \
texlive-latex-recommended \
texlive-plain-generic \
lmodern
- name: Install pandoc
run: |
wget https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-amd64.deb
sudo dpkg -i pandoc-2.17.1.1-1-amd64.deb
- uses: actions/setup-python@v5
with:
python-version: 3.9.16
- name: Cache Python dependencies
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: pythondotorg-cache-pip
with:
Expand All @@ -35,6 +47,11 @@ jobs:
run: |
pip install -U pip setuptools wheel
pip install -r dev-requirements.txt
- name: Check for ungenerated database migrations
run: |
python manage.py makemigrations --check --dry-run
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg
- name: Run Tests
run: |
python -Wd -m coverage run manage.py test -v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# $ git config --global core.excludesfile ~/.gitignore_global

.sass-cache/
docs/build
media/*
static-root/
static/stylesheets/mq.css
Expand All @@ -25,3 +26,4 @@ __pycache__
.env
.DS_Store
.envrc
.state/
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Project page: https://readthedocs.org/projects/pythondotorg/

version: 2

build:
os: ubuntu-22.04
tools:
python: "3"

commands:
- python -m pip install -r docs-requirements.txt
- make -C docs html JOBS=$(nproc) BUILDDIR=_readthedocs
- mv docs/_readthedocs _readthedocs
Empty file added Aptfile
Empty file.
43 changes: 41 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,48 @@
FROM python:3.9-bullseye
FROM python:3.9-bookworm
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1

# By default, Docker has special steps to avoid keeping APT caches in the layers, which
# is good, but in our case, we're going to mount a special cache volume (kept between
# builds), so we WANT the cache to persist.
RUN set -eux; \
rm -f /etc/apt/apt.conf.d/docker-clean; \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache;

# Install System level build requirements, this is done before
# everything else because these are rarely ever going to change.
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
set -x \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-plain-generic \
lmodern

RUN case $(uname -m) in \
"x86_64") ARCH=amd64 ;; \
"aarch64") ARCH=arm64 ;; \
esac \
&& wget --quiet https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-${ARCH}.deb \
&& dpkg -i pandoc-2.17.1.1-1-${ARCH}.deb

RUN mkdir /code
WORKDIR /code

COPY dev-requirements.txt /code/
COPY base-requirements.txt /code/
RUN pip install -r dev-requirements.txt
COPY prod-requirements.txt /code/
COPY requirements.txt /code/

RUN pip --no-cache-dir --disable-pip-version-check install --upgrade pip setuptools wheel

RUN --mount=type=cache,target=/root/.cache/pip \
set -x \
&& pip --disable-pip-version-check \
install \
-r dev-requirements.txt

COPY . /code/
49 changes: 49 additions & 0 deletions Dockerfile.cabotage
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FROM python:3.9-bullseye
COPY --from=ewdurbin/nginx-static:1.25.x /usr/bin/nginx /usr/bin/nginx
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1

# By default, Docker has special steps to avoid keeping APT caches in the layers, which
# is good, but in our case, we're going to mount a special cache volume (kept between
# builds), so we WANT the cache to persist.
RUN set -eux; \
rm -f /etc/apt/apt.conf.d/docker-clean; \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache;

# Install System level build requirements, this is done before
# everything else because these are rarely ever going to change.
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
set -x \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-plain-generic \
lmodern

RUN case $(uname -m) in \
"x86_64") ARCH=amd64 ;; \
"aarch64") ARCH=arm64 ;; \
esac \
&& wget --quiet https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-${ARCH}.deb \
&& dpkg -i pandoc-2.17.1.1-1-${ARCH}.deb

RUN mkdir /code
WORKDIR /code

COPY dev-requirements.txt /code/
COPY base-requirements.txt /code/
COPY prod-requirements.txt /code/
COPY requirements.txt /code/

RUN pip --no-cache-dir --disable-pip-version-check install --upgrade pip setuptools wheel

RUN --mount=type=cache,target=/root/.cache/pip \
set -x \
&& pip --disable-pip-version-check \
install \
-r requirements.txt -r prod-requirements.txt
COPY . /code/
RUN DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@ shell: .state/db-initialized
clean:
docker-compose down -v
rm -f .state/docker-build-web .state/db-initialized .state/db-migrated

test: .state/db-initialized
docker-compose run --rm web ./manage.py test

docker_shell: .state/db-initialized
docker-compose run --rm web /bin/bash
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
release: python manage.py migrate --noinput
web: bin/start-nginx gunicorn -c gunicorn.conf pydotorg.wsgi
worker: celery -A pydotorg worker -l INFO
worker-beat: celery -A pydotorg beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# python.org

[![Build Status](https://travis-ci.org/python/pythondotorg.svg?branch=main)](https://travis-ci.org/python/pythondotorg)
[![CI](https://github.com/python/pythondotorg/actions/workflows/ci.yml/badge.svg)](https://github.com/python/pythondotorg/actions/workflows/ci.yml)
[![Documentation Status](https://readthedocs.org/projects/pythondotorg/badge/?version=latest)](https://pythondotorg.readthedocs.io/?badge=latest)

### General information
Expand Down
30 changes: 18 additions & 12 deletions base-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
dj-database-url==0.5.0
django-pipeline==2.0.6
django-sitetree==1.17.0
Django==2.2.24
django-sitetree==1.18.0
django-apptemplates==1.5
django-admin-interface==0.24.2
django-translation-aliases==0.1.0
Django==2.2.28
docutils==0.12
Markdown==3.3.4
cmarkgfm==0.6.0
Pillow==8.3.1
Pillow==9.4.0
psycopg2-binary==2.8.6
python3-openid==3.2.0
python-decouple==3.4
# lxml used by BeautifulSoup.
lxml==4.6.3
lxml==5.2.2
cssselect==1.1.0
feedparser==6.0.8
beautifulsoup4==4.9.3
beautifulsoup4==4.11.2
icalendar==4.0.7
chardet==4.0.0
celery[redis]==5.3.6
django-celery-beat==2.5.0
# TODO: We may drop 'django-imagekit' completely.
django-imagekit==4.0.2
django-haystack==3.0
elasticsearch>=5,<6
django-haystack==3.2.1
elasticsearch>=7,<8
# TODO: 0.14.0 only supports Django 1.8 and 1.11.
django-tastypie==0.14.3

Expand All @@ -32,7 +37,7 @@ django-honeypot==1.0.1
django-markupfield==2.0.0
django-markupfield-helpers==0.1.1

django-allauth==0.41.0
django-allauth==0.50.0

django-waffle==2.2.1

Expand All @@ -41,11 +46,12 @@ django-filter==2.4.0
django-ordered-model==3.4.3
django-widget-tweaks==1.4.8
django-countries==7.2.1
xhtml2pdf==0.2.5
django-easy-pdf3==0.1.2
num2words==0.5.10
django-polymorphic==3.0.0
sorl-thumbnail==12.7.0
docxtpl==0.12.0
reportlab==3.6.6
django-extensions==3.1.4
django-import-export==2.7.1

pypandoc==1.12
panflute==2.3.0
Unidecode==1.3.8
70 changes: 70 additions & 0 deletions bin/start-nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/usr/bin/env bash

psmgr=/tmp/nginx-buildpack-wait
rm -f $psmgr
mkfifo $psmgr

n=1
while getopts :f option ${@:1:2}
do
case "${option}"
in
f) FORCE=$OPTIND; n=$((n+1));;
esac
done

# Initialize log directory.
mkdir -p /tmp/logs/nginx
touch /tmp/logs/nginx/access.log /tmp/logs/nginx/error.log
echo 'buildpack=nginx at=logs-initialized'

# Start log redirection.
(
# Redirect nginx logs to stdout.
tail -qF -n 0 /tmp/logs/nginx/*.log
echo 'logs' >$psmgr
) &

# Start App Server
(
# Take the command passed to this bin and start it.
# E.g. bin/start-nginx bundle exec unicorn -c config/unicorn.rb
COMMAND=${@:$n}
echo "buildpack=nginx at=start-app cmd=$COMMAND"
$COMMAND
echo 'app' >$psmgr
) &

if [[ -z "$FORCE" ]]
then
FILE="/tmp/app-initialized"

# We block on app-initialized so that when nginx binds to $PORT
# are app is ready for traffic.
while [[ ! -f "$FILE" ]]
do
echo 'buildpack=nginx at=app-initialization'
sleep 1
done
echo 'buildpack=nginx at=app-initialized'
fi

# Start nginx
(
# We expect nginx to run in foreground.
# We also expect a socket to be at /tmp/nginx.socket.
echo 'buildpack=nginx at=nginx-start'
cd /tmp
/usr/bin/nginx -p . -c /code/config/nginx.conf
echo 'nginx' >$psmgr
) &

# This read will block the process waiting on a msg to be put into the fifo.
# If any of the processes defined above should exit,
# a msg will be put into the fifo causing the read operation
# to un-block. The process putting the msg into the fifo
# will use it's process name as a msg so that we can print the offending
# process to stdout.
read exit_process <$psmgr
echo "buildpack=nginx at=exit process=$exit_process"
exit 1
9 changes: 0 additions & 9 deletions blogs/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,3 @@ def test_blog_home(self):

latest = BlogEntry.objects.latest()
self.assertEqual(resp.context['latest_entry'], latest)

def test_blog_redirects(self):
"""
Test that when '/blog/' is hit, it redirects '/blogs/'
"""
response = self.client.get('/blog/')
self.assertRedirects(response,
'/blogs/',
status_code=301)
4 changes: 2 additions & 2 deletions codesamples/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def initial_data():
(
"""\
<pre><code><span class=\"comment\"># Simple output (with Unicode)</span>
>>> print(\"Hello, I'm Python!\")
>>> print("Hello, I'm Python!")
<span class=\"output\">Hello, I'm Python!</span>

<span class=\"comment\"># Input, assignment</span>
>>> name = input('What is your name?\\n')
>>> name = input('What is your name?\n')
<span class=\"output\">What is your name?
Python</span>
>>> print(f'Hi, {name}.')
Expand Down
Loading