aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py (unfollow)
Commit message (Collapse)AuthorLines
2021-10-05Add www.pythondiscord.com to ALLOWED_HOSTS (#601)Gravatar Joe Banks-0/+1
2021-10-05Merge Gitpod Docs (#594)Gravatar Kronifer-0/+9
docs: Added site documentation for editing on Gitpod
2021-10-06Adds Netlify To SponsorsGravatar Hassan Abouelela-0/+4
Signed-off-by: Hassan Abouelela <[email protected]>
2021-10-06Properly Resize Sponsor LogosGravatar Hassan Abouelela-2/+10
Ensure sponsor logos don't go past the edge of the screen, and maintain aspect ratio when sized down. Signed-off-by: Hassan Abouelela <[email protected]>
2021-10-06Switches HTTP Links To HTTPSGravatar Hassan Abouelela-13/+13
Switches the protocol for external sites where possible. Some sites don't have secure versions, and were skipped. Signed-off-by: Hassan Abouelela <[email protected]>
2021-09-27Add LT and GT to supported otn charsGravatar Chris Lovering-1/+20
2021-09-22Rename an error to have a correct error suffixGravatar Chris Lovering-13/+13
2021-09-22Pin psycopg version and re-lockGravatar Chris Lovering-101/+139
For some reason the lock file was out of date, which caused issues when trying to poetry install on Windows without build tools. psycopg had to be pinned to ~=2.8.0 as 2.9 introduces an issue with us not setting the db connection to UTC
2021-09-19Correct typos and spacingGravatar Janine vN-16/+20
You would think I would be able to spell GitHub correctly at this point. I've fixed the typos on this page and altered some of the spacing to provide something nicer to glance over.
2021-09-19Change external links to "_blank" and "noopener"Gravatar Janine vN-17/+17
This changes external links to open in a new tab. It also adds `rel="noopener"` for some bonus security and performance gains. This commit only effects files that are within the scope of this PR. It does not do this against other pages.
2021-09-18Use the correct theme and update image linkGravatar Janine vN-3/+3
I now mention the correct theme which is "Think Inside the Box" Additionally, this corrects the link to the icon for Advent of Code. It was using an old link which is no longer correct.
2021-09-18Remove ongoing-codejam from cj pageGravatar Janine vN-1/+0
Removes the sidebar block for ongoing code jams from the main code jam events page.
2021-09-18Update Code Jam 8 as a finished eventGravatar Janine vN-6/+47
This commit adds in the information about the winners of the code jam. Additionally, it adds in Code Jam 8 as a prior event in the sidebar.
2021-09-18Update events featuredGravatar Janine vN-48/+26
Re-ordered and updated the events listed on the main events page. We're no longer participating in Hacktoberfest, so that was removed. Game jams was moved to the bottom as we have not hosted one and will not for the forseeable future. PyWeek was moved above Advent of Code because AoC is one of the last events we do in the year so it didn't make sense to have PyWeek below it. This also updated the Events Calendar on the sidebar to be accurate for 2021.
2021-09-18Update wording on main Events pageGravatar Janine vN-6/+2
2021-09-18Remove code jam notice from front pageGravatar Janine vN-16/+2
2021-09-17Move psql health check to docker compose fileGravatar Chris Lovering-53/+7
2021-09-17Init metricity using docker-compose init volumeGravatar Chris Lovering-84/+28
2021-09-10Update mock GitHub API responseGravatar Joe Banks-1/+1
Fixes breaking tests
2021-09-10Update repository selection on home pageGravatar Joe Banks-1/+1
In accordance with a poll in #dev-contrib, King Arthur becomes the 6th repository featured on the Python Discord homepage.
2021-09-07Update embed description length to 4096Gravatar mbaruh-2/+2
2021-09-07Remove explicit check for db port, as it's optionalGravatar Chris Lovering-2/+2
We also do not specifiy it in prod, so this crash looped when trying to deploy
2021-09-07Add print statement to log when metricity is being initialisedGravatar Chris Lovering-0/+2
2021-09-07Correctly attribute SO author for SQL functionGravatar Chris Lovering-0/+4
2021-09-07Raise a ValueError with a useful message for invalid db urlsGravatar Chris Lovering-1/+3
2021-09-07Remove unnecessary variableGravatar Chris Lovering-3/+2
Co-authored-by: Vivaan Verma <[email protected]>
2021-09-07Fix spelling of `initialising` in manage.pyGravatar ChrisJL-2/+2
Co-authored-by: Vivaan Verma <[email protected]>
2021-09-07Create and populate metricity in a single connectionGravatar Chris Lovering-25/+31
2021-09-07Close db conns when finishedGravatar Chris Lovering-0/+2
psycopg2's context managers don't do this for us, so we need to close conns manually.
2021-09-07Move db url validation to cls methodGravatar Chris Lovering-12/+21
This standardises the way we validate db urls, and ensures each place that uses a db url manually properly validates it first.
2021-09-06Use context manager for file openGravatar Chris Lovering-3/+2
Also remove a useless print statement to reduce noise
2021-09-06Initialise metricity at runtimeGravatar Chris Lovering-31/+77
Currently the bot cannot start in dev as the site errors, saying that metricity doesn't exist. Previously this note existing was fine, unless you needed to use metricity data. With the recent addition of django-prometheus, metricity is now required on boot. This PR moves the init of metricity from a docker-compose volume, into running of the site. This means that external projects using site, that don't have access to the init.sql file to mount a volume, now also init metricity.
2021-09-04Pin platform in DockerfileGravatar Chris Lovering-1/+1
Some of our deps don't have wheels for atm processors. With Mac's M1 chips becomming more common, we should make it easier for those users to build our environments.
2021-09-04Correct import orderGravatar Joe Banks-1/+1
2021-09-04Add pod IPs to allowed hostsGravatar Joe Banks-0/+3
2021-09-04Update in accordance with python-discord/kubernetes#95Gravatar Joe Banks-1/+1
2021-09-04Explicitly set gunicorn config argumentGravatar Joe Banks-0/+1
2021-09-03Ignore gunicorn configuration from flake8Gravatar Joe Banks-3/+8