Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Update manage.py to handle solely running in debug mode | 2024-06-07 | -44/+21 | |
| | ||||
* | Fix warning ignore | 2023-07-11 | -6/+7 | |
| | | | | | | | Additionally, use stdlib API instead of undocumented Django test API Co-authored-by: Chris Lovering <[email protected]> | |||
* | Fix error when invoking manage.py with no commands | 2022-11-19 | -1/+1 | |
| | ||||
* | Ignore Whitenoise's Static Directory Warning | 2022-09-17 | -1/+11 | |
| | | | | | | | | | Whitenoise raises a warning when the static content folder does not exist, which is the case during tests in CI. This is not an issue though, and static content does get used properly in tests. Thus, the warning is silenced. Signed-off-by: Hassan Abouelela <[email protected]> | |||
* | Run Migrations For Tests | 2022-07-12 | -4/+16 | |
| | | | | | | | Call the migration handler in manage.py when running tests, before handing control back to django. Signed-off-by: Hassan Abouelela <[email protected]> | |||
* | Move Static Build Into Separate Variable | 2021-10-10 | -1/+3 | |
| | | | | Signed-off-by: Hassan Abouelela <[email protected]> | |||
* | Adds Django Distill To Project | 2021-10-10 | -0/+31 | |
| | | | | | Adds django-distill to dependencies, and lays the basic groundwork to start building static routes. Adds a poetry task to help with testing. | |||
* | Move psql health check to docker compose file | 2021-09-17 | -52/+0 | |
| | ||||
* | Init metricity using docker-compose init volume | 2021-09-17 | -37/+0 | |
| | ||||
* | Remove explicit check for db port, as it's optional | 2021-09-07 | -2/+2 | |
| | | | | We also do not specifiy it in prod, so this crash looped when trying to deploy | |||
* | Add print statement to log when metricity is being initialised | 2021-09-07 | -0/+2 | |
| | ||||
* | Raise a ValueError with a useful message for invalid db urls | 2021-09-07 | -1/+3 | |
| | ||||
* | Remove unnecessary variable | 2021-09-07 | -3/+2 | |
| | | | | Co-authored-by: Vivaan Verma <[email protected]> | |||
* | Fix spelling of `initialising` in manage.py | 2021-09-07 | -2/+2 | |
| | | | Co-authored-by: Vivaan Verma <[email protected]> | |||
* | Create and populate metricity in a single connection | 2021-09-07 | -25/+10 | |
| | ||||
* | Close db conns when finished | 2021-09-07 | -0/+2 | |
| | | | | psycopg2's context managers don't do this for us, so we need to close conns manually. | |||
* | Move db url validation to cls method | 2021-09-07 | -12/+21 | |
| | | | | This standardises the way we validate db urls, and ensures each place that uses a db url manually properly validates it first. | |||
* | Use context manager for file open | 2021-09-06 | -3/+2 | |
| | | | | Also remove a useless print statement to reduce noise | |||
* | Initialise metricity at runtime | 2021-09-06 | -3/+55 | |
| | | | | | | 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. | |||
* | Explicitly set gunicorn config argument | 2021-09-04 | -0/+1 | |
| | ||||
* | Update gunicorn options for deployment | 2021-08-31 | -3/+0 | |
| | | | Remove threads & max requests configuration | |||
* | Linting compliance | 2021-08-27 | -1/+6 | |
| | ||||
* | Decrease verbosity in debug mode collectstatic | 2021-08-27 | -1/+1 | |
| | | | Co-authored-by: Matteo Bertucci <[email protected]> | |||
* | Run collectstatic in the image build process, disable in prod startup | 2021-08-25 | -2/+4 | |
| | ||||
* | Load env vars using python-dotenv | 2021-05-17 | -0/+5 | |
| | ||||
* | Removes Gunicorn Import In Debug mode | 2021-03-23 | -1/+3 | |
| | | | | | | Moves the gunicorn import below the start server command for debug mode to ensure it isn't imported if it isn't used. This solves issues with manage.py being unable to start on windows. | |||
* | Reduce worker count from 4 to 2 | 2021-02-25 | -1/+1 | |
| | | | We'll be creating a second site instance to allow for rolling restarts, so it makes sense to half this so when we double the requests we'll effectively have 4 workers again. | |||
* | Update manage.py | 2020-12-06 | -1/+2 | |
| | | | Co-authored-by: Sebastiaan Zeeff <[email protected]> | |||
* | Switch underscores for dashes in gunicorn CLI options | 2020-12-05 | -2/+2 | |
| | ||||
* | Update gunicorn configuration options | 2020-12-05 | -1/+4 | |
| | ||||
* | Don't call gunicorn using os.system, patch sys.argv and call the module | 2020-11-14 | -2/+13 | |
| | ||||
* | Banish UWSGI from my life, replace with gunicorn. | 2020-11-14 | -5/+2 | |
| | | | | | This gets rid of various uwsgi stuff that we will no longer be needing. Enter; gunicorn. | |||
* | Merge branch 'master' into admin-api-pages-improvements | 2020-09-18 | -1/+1 | |
|\ | | | | | | | | | # Conflicts: # pydis_site/apps/api/admin.py | |||
| * | Support IPv4 addresses for DATABASE_URL | 2019-12-20 | -1/+1 | |
| | | ||||
* | | Set default example.com dev site to pythondiscord.local:8000 | 2019-10-20 | -0/+14 | |
|/ | ||||
* | disable usage of pyuwsgi on windows due to incompatibility, library is only ↵ | 2019-10-06 | -1/+2 | |
| | | | | used in production anyway | |||
* | Create superuser after doing migrations. | 2019-09-30 | -1/+3 | |
| | | | | | | Previously, the create_superuser() command was called before migrations had been completed on local setups, and this would cause the command to crash, saying that the table did not exist. | |||
* | Poll the database a maximum of 10 attempts before exit code 1. | 2019-09-29 | -1/+7 | |
| | ||||
* | Remove useless verbosity check. | 2019-09-29 | -1/+1 | |
| | ||||
* | Fix comments after previous changes. | 2019-09-28 | -2/+2 | |
| | ||||
* | Automatically create a default bot api token for dev. | 2019-09-28 | -6/+22 | |
| | ||||
* | Create custom manage.py entry point, remove scripts and merge Dockerfile. | 2019-09-28 | -12/+128 | |
| | ||||
* | Teach new lint rules to old code | 2019-07-10 | -1/+0 | |
| | ||||
* | Finish linting non-API modules | 2019-04-21 | -0/+2 | |
| | ||||
* | pysite -> pydis_site | 2019-04-05 | -1/+1 | |
| | ||||
* | Add `psmgr` command. | 2018-09-18 | -1/+7 | |
| | ||||
* | Rename `pydis_django` to `pysite`. | 2018-08-11 | -1/+1 | |
| | ||||
* | Initial project layout for django | 2018-08-07 | -0/+15 | |