| Commit message (Collapse) | Author | Age | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# poetry.lock
# pydis_site/settings.py
# pyproject.toml
|
| |
| |
| |
| |
| |
| |
| | |
Remove all unnecessary middleware and return a proper response for
redirects to fix static builds.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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]>
|
| |
| |
| |
| | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|/
|
|
|
|
|
| |
Adds an explicit setting for static builds instead of relying on the
environment variable.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
| |
Adds an API route to fetch GitHub build artifacts through a GitHub app.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
| |
Add a `warnings.warnings` clause to prevent these from being raised
again in the future, and raise a full traceback if they don't.
|
|
|
|
| |
The constants module more or less did what belongs to the settings.
|
|
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| | |
Adds django-distill to dependencies, and lays the basic groundwork to
start building static routes. Adds a poetry task to help with testing.
|
| | |
|
| |\ |
|
| | |\ |
|
| | | | |
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | | |
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]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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`.
|
|\ \ \
| | |/
| |/| |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Co-Authored-By: jchristgit <[email protected]>
|
| |/ |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Dewikification: Content app improvements.
|
| |
| |
| |
| |
| | |
This was causing mysterious 404s because while migrating a feature to
dewikification, the same variable would be placed in the settings file.
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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/`.
|
| |\ |
|
| | | |
|
| | | |
|
| | |\ |
|
| | | | |
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |/
| | |/| |
|
| | | | |
|
| | | | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|