aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py (follow)
Commit message (Collapse)AuthorAgeLines
* Update manage.py to handle solely running in debug modeGravatar Joe Banks2024-06-07-44/+21
|
* Fix warning ignoreGravatar Johannes Christ2023-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 commandsGravatar wookie1842022-11-19-1/+1
|
* Ignore Whitenoise's Static Directory WarningGravatar Hassan Abouelela2022-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 TestsGravatar Hassan Abouelela2022-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 VariableGravatar Hassan Abouelela2021-10-10-1/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Django Distill To ProjectGravatar Hassan Abouelela2021-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 fileGravatar Chris Lovering2021-09-17-52/+0
|
* Init metricity using docker-compose init volumeGravatar Chris Lovering2021-09-17-37/+0
|
* Remove explicit check for db port, as it's optionalGravatar Chris Lovering2021-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 initialisedGravatar Chris Lovering2021-09-07-0/+2
|
* Raise a ValueError with a useful message for invalid db urlsGravatar Chris Lovering2021-09-07-1/+3
|
* Remove unnecessary variableGravatar Chris Lovering2021-09-07-3/+2
| | | | Co-authored-by: Vivaan Verma <[email protected]>
* Fix spelling of `initialising` in manage.pyGravatar ChrisJL2021-09-07-2/+2
| | | Co-authored-by: Vivaan Verma <[email protected]>
* Create and populate metricity in a single connectionGravatar Chris Lovering2021-09-07-25/+10
|
* Close db conns when finishedGravatar Chris Lovering2021-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 methodGravatar Chris Lovering2021-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 openGravatar Chris Lovering2021-09-06-3/+2
| | | | Also remove a useless print statement to reduce noise
* Initialise metricity at runtimeGravatar Chris Lovering2021-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 argumentGravatar Joe Banks2021-09-04-0/+1
|
* Update gunicorn options for deploymentGravatar Joe Banks2021-08-31-3/+0
| | | Remove threads & max requests configuration
* Linting complianceGravatar Joe Banks2021-08-27-1/+6
|
* Decrease verbosity in debug mode collectstaticGravatar Joe Banks2021-08-27-1/+1
| | | Co-authored-by: Matteo Bertucci <[email protected]>
* Run collectstatic in the image build process, disable in prod startupGravatar Joe Banks2021-08-25-2/+4
|
* Load env vars using python-dotenvGravatar Chris2021-05-17-0/+5
|
* Removes Gunicorn Import In Debug modeGravatar Hassan Abouelela2021-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 2Gravatar Joe Banks2021-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.pyGravatar Joe Banks2020-12-06-1/+2
| | | Co-authored-by: Sebastiaan Zeeff <[email protected]>
* Switch underscores for dashes in gunicorn CLI optionsGravatar Joe Banks2020-12-05-2/+2
|
* Update gunicorn configuration optionsGravatar Joe Banks2020-12-05-1/+4
|
* Don't call gunicorn using os.system, patch sys.argv and call the moduleGravatar Joe Banks2020-11-14-2/+13
|
* Banish UWSGI from my life, replace with gunicorn.Gravatar Leon Sandøy2020-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-improvementsGravatar scragly2020-09-18-1/+1
|\ | | | | | | | | # Conflicts: # pydis_site/apps/api/admin.py
| * Support IPv4 addresses for DATABASE_URLGravatar MarkKoz2019-12-20-1/+1
| |
* | Set default example.com dev site to pythondiscord.local:8000Gravatar scragly2019-10-20-0/+14
|/
* disable usage of pyuwsgi on windows due to incompatibility, library is only ↵Gravatar Joseph Banks2019-10-06-1/+2
| | | | used in production anyway
* Create superuser after doing migrations.Gravatar Leon Sandøy2019-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.Gravatar scragly2019-09-29-1/+7
|
* Remove useless verbosity check.Gravatar scragly2019-09-29-1/+1
|
* Fix comments after previous changes.Gravatar scragly2019-09-28-2/+2
|
* Automatically create a default bot api token for dev.Gravatar scragly2019-09-28-6/+22
|
* Create custom manage.py entry point, remove scripts and merge Dockerfile.Gravatar scragly2019-09-28-12/+128
|
* Teach new lint rules to old codeGravatar Jeremiah Boby2019-07-10-1/+0
|
* Finish linting non-API modulesGravatar Gareth Coles2019-04-21-0/+2
|
* pysite -> pydis_siteGravatar Gareth Coles2019-04-05-1/+1
|
* Add `psmgr` command.Gravatar Johannes Christ2018-09-18-1/+7
|
* Rename `pydis_django` to `pysite`.Gravatar Johannes Christ2018-08-11-1/+1
|
* Initial project layout for djangoGravatar Gareth Coles2018-08-07-0/+15