aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py (follow)
Commit message (Collapse)AuthorAgeLines
* Merge branch 'main' into bot-tagsGravatar Hassan Abouelela2022-10-27-28/+32
|\ | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # poetry.lock # pydis_site/settings.py # pyproject.toml
| * Fix Static BuildGravatar Hassan Abouelela2022-09-30-25/+30
| | | | | | | | | | | | | | Remove all unnecessary middleware and return a proper response for redirects to fix static builds. Signed-off-by: Hassan Abouelela <[email protected]>
| * Fix Django Deprecation WarningsGravatar Hassan Abouelela2022-09-04-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Removes a few features which were deprecated in django 4.0. Running with warnings enabled shows no other errors. USE_L10N was deprecated, and is now enabled by default. In future versions of django, it'll be impossible to turn localization off. Explicitly defining the custom_app_config for the API app is no longer necessary as django can pick it up on its own. Signed-off-by: Hassan Abouelela <[email protected]>
* | Move GitHub strptime Format To SettingsGravatar Hassan Abouelela2022-08-16-0/+2
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Setting For Static BuildsGravatar Hassan Abouelela2022-08-13-3/+5
|/ | | | | | | Adds an explicit setting for static builds instead of relying on the environment variable. Signed-off-by: Hassan Abouelela <[email protected]>
* Rename GitHub App Environment VariablesGravatar Hassan Abouelela2022-08-12-6/+6
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Add GitHub Artifact API ViewGravatar Hassan Abouelela2022-07-12-1/+9
| | | | | | Adds an API route to fetch GitHub build artifacts through a GitHub app. Signed-off-by: Hassan Abouelela <[email protected]>
* Bump Django To 3.2Gravatar Hassan Abouelela2022-07-11-0/+3
| | | | | | | | | | Bumps the current django version to 3.2 For the most part, there are no major changes here. The app configuration names were incorrect, and the new version no longer ignores that, so those were updated. The new version also requires explicitly defining the field type for primary keys if they are not defined on the model. Signed-off-by: Hassan Abouelela <[email protected]>
* Fix timezone awareness warningsGravatar Johannes Christ2022-03-02-0/+17
| | | | | Add a `warnings.warnings` clause to prevent these from being raised again in the future, and raise a full traceback if they don't.
* Remove and merge superfluous modulesGravatar Johannes Christ2022-02-26-1/+9
| | | | The constants module more or less did what belongs to the settings.
* Add a FontAwesome token that we actually control.Gravatar Leon Sandøy2022-01-27-1/+1
| | | | | | Previously we were using some sort of borrowed token, but it seems to not be working anymore for local sessions, so let's just get rid of it.
* Merge branch 'main' into swfarnsworth/smarter-resources/merge-with-mainGravatar Leon Sandøy2022-01-23-24/+21
|\
| * Adds Django Distill To ProjectGravatar Hassan Abouelela2021-10-10-5/+16
| | | | | | | | | | Adds django-distill to dependencies, and lays the basic groundwork to start building static routes. Adds a poetry task to help with testing.
| * Update ALLOWED_HOSTS to include internal addressGravatar Joe Banks2021-10-06-5/+1
| |
| * Merge branch 'master' into subdomains-to-query-pathsGravatar Johannes Christ2021-10-06-4/+25
| |\
| | * Merge branch 'main' into fix-http-linksGravatar ChrisJL2021-10-06-0/+1
| | |\
| | | * Add www.pythondiscord.com to ALLOWED_HOSTS (#601)Gravatar Joe Banks2021-10-05-0/+1
| | | |
| | * | Switches HTTP Links To HTTPSGravatar Hassan Abouelela2021-10-06-1/+1
| | |/ | | | | | | | | | | | | | | | | | | 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]>
| * | Move subdomains to query paths.Gravatar Johannes Christ2021-06-08-21/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In more detail: - Use Django URL namespaces (e.g. `api:bot:infractions`) instead of `django_hosts` host argument. - Update the hosts file setup documentation to remove subdomain entries. - Update the hosts file setup documentation to mention that the entry of `pythondiscord.local` is not required and mainly for convenience. - Rename the `APISubdomainTestCase` to the more fitting `AuthenticatedAPITestCase`, as authentication is all that is left that the class is doing. - Drop dependency to `django_hosts`.
* | | Merge with main, resolve conflicts.Gravatar swfarnsworth2021-09-05-2/+13
|\ \ \ | | |/ | |/|
| * | Correct import orderGravatar Joe Banks2021-09-04-1/+1
| | |
| * | Add pod IPs to allowed hostsGravatar Joe Banks2021-09-04-0/+3
| | |
| * | Revert change to Metricity DB URLGravatar Joe Banks2021-09-02-1/+1
| | | | | | | | | | | | Co-Authored-By: jchristgit <[email protected]>
| * | Add Django Prometheus to installed apps and middlewareGravatar Joe Banks2021-09-02-3/+11
| |/
* / Add bulma-modal, we'll need it later.Gravatar Leon Sandøy2021-05-18-0/+1
|/
* Use bulma extension in place of self-written code.Gravatar kosayoda2021-05-14-0/+1
|
* Merge branch main into dewikificationGravatar kosayoda2021-05-14-27/+12
|
* Migrate redirections from settings.py -> redirects.yamlGravatar ks1292021-05-03-34/+1
|
* Add code jam pages redirectsGravatar ks1292021-05-03-0/+21
|
* Add groups with comments to redirections definitionGravatar ks1292021-05-03-0/+3
|
* Migrate redirections definition to not include testing argsGravatar ks1292021-05-03-7/+6
|
* Add events index redirectionGravatar ks1292021-05-03-0/+3
|
* Add redirect app to settings and add resources redirections configGravatar ks1292021-05-03-0/+10
|
* Merge pull request #468 from python-discord/content-app-improvementsGravatar Kieran Siek2021-04-03-4/+5
|\ | | | | Dewikification: Content app improvements.
| * Fix overriden PAGES_PATH in settings.py.Gravatar kosayoda2021-04-01-4/+5
| | | | | | | | | | This was causing mysterious 404s because while migrating a feature to dewikification, the same variable would be placed in the settings file.
* | Merge branch 'dewikification' into resources-listsGravatar ks1292021-03-30-0/+13
|\|
| * Simplify content app.Gravatar kosayoda2021-03-23-1/+1
| | | | | | | | | | | | | | | | | | Rather than having two views for the base page and all other pages, all pages now use the same view. The view context handler is simplified to take advantage of pathlib features. The markdown folder is now /content/resources/* rather than /content/resources/content/*, as the latter is unnecessary nesting.
| * Rename `articles` to `pages`.Gravatar kosayoda2021-03-23-1/+1
| | | | | | | | | | | | Articles was a good name, but we want an `articles` category in the future. `/pages/guides/` and `/pages/articles/` are clearer in name than `/articles/guides/` and `/articles/articles/`.
| * Merge branch 'dewikification' into guides-appGravatar ks1292020-11-28-0/+4
| |\
| | * Apply changes of pages location to views and settingsGravatar ks1292020-10-29-4/+5
| | |
| | * Port View to TemplateView for events page viewGravatar ks1292020-10-28-1/+4
| | |
| | * Merge branch 'dewikification' into events-appGravatar ks1292020-10-28-0/+1
| | |\
| | * | Add events app to INSTALLED_APPSGravatar ks1292020-10-26-0/+1
| | | |
| * | | Add articles path to settingsGravatar ks1292020-11-22-0/+3
| | | |
| * | | Use just plain strings for site repo informationGravatar ks1292020-10-30-7/+4
| | | |
| * | | Merge remote-tracking branch 'up/dewikification' into guides-appGravatar ks1292020-10-30-40/+1
| |\ \ \ | | | |/ | | |/|
| * | | Move repository configuration to environment variablesGravatar ks1292020-10-06-4/+7
| | | |
| * | | Add repository configuration to settingsGravatar ks1292020-10-06-0/+5
| | | |
| * | | Merge branch 'dewikification' into guides-appGravatar Leon Sandøy2020-10-05-89/+2
| |\ \ \
| * | | | Change guides system to content systemGravatar ks1292020-10-04-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As this system will be used for more than just guides, I had to do some refactoring to match this system with plans. Basically now there isn't guides, but articles instead.