Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Initial stub of proxito #6226
This is an initial attempt at adding a method of doc serving that goes through Django, instead of being done by an Nginx server with symlinks managed by Django. It depends on the Read the Docs codebase, and is mostly just a simplification of the existing serving code. It's done in parallel so that we can deploy it alongside the current running application with just settings changes.
There will be a corresponding ops update needed, but the gist of it is:
humitos left a comment
The code looks that it's going in a good direction. I didn't test it locally, though. I left only nit comments about style or naming.
I think that most of this code comes from what we already have in other places, but it's easier to follow here since it's alone and split in different functions.
Nothing really. We can fallback to the Django app for all the 404's, so we can continue using all the existing app logic for redirects, 404's, and robots.txt handling. The goal will be to port all of that to proxito, but baby steps :)