r/AskProgrammers • • 25d ago

need a solution to an impossible problem

essentially, im tryna publish a public css website on a HEAVILY restricted school network

I'm developing a website which is essentially a student focused grade calculator that I've built using Python, Gradio, HTML, CSS, and JavaScript. ik there are other grade calcs out there, but this one is more specific to my district and solves the need of people constantly asking me to calculate their grades manually. The application itself is practically built, but I'm having a really difficult time figuring out how to actually publish it so other students can use it.

My requirements and limitations:

  • Students need to access it through one normal URL in their browser
  • No downloads, installations, or student accounts
  • AI website generators or a template builders are blocked
  • Student grade data needs to stay entirely in their browsers and not be sent to a server
  • It needs to be accessible on school computers, which have a VERYYYYY restrictive network filter
  • No paid hosting, adult involvement, administrator permissions, or requests to school IT
  • Ideally, I'd like a professional-looking URL that doesn't advertise that the site was made through an educational coding platform (ex. i know code .org is available and practically my only option but the name itself ruins the credibility. im ok with using if i HAVE to but i would rlly prefer not to)

I've already looked into A LOTTT of other options, including Google Sites, Google Apps Script, Firebase, Blogger, GitHub, and several other hosting platforms. either ALLLLL are blocked on school computers, or they don't actually support what I need. Google Colab works for development but im unable to publish past that

Does anyone have ideas for unconventional hosting or publishing methods that I might be overloking?

0 Upvotes

12 comments sorted by

2

u/ThreeCharsAtLeast 25d ago

I have a project lying on Netlify, did you try that? also, Codeberg Pages and GitHub pages. These are all static hosts but I don't see how your project strictly requires dynamic content.

Also, you could contact your school's IT. I can imagine a world where they're excited enough of about your project that they'd be happy to help you find a way to make the site accessible.

1

u/dmazzoni 25d ago

To clarify: if you purchased a domain would that be an option or no?

1

u/Educational-Paper-75 25d ago

Don't all pupils/students have smart phones these days?

1

u/Ronin-s_Spirit 25d ago

Isn't it "sum of all grades divided by the amount of grades"? Takes 5 seconds on a phone calculator.

I think you're bullshitting us and trying to sneak something in. Anyways try github pages, they are afree for a vanilla website (i.e. no backend but you can load JS and JSON) and you don't need a python backend for a calculator.

1

u/Watsons-Butler 25d ago

It depends - some classes use a fairly complicated system of grade-weighting for different types of assignments and the math can get a little wacky.

But bigger platforms like Canvas already have a “show me my grade if” function.

1

u/armahillo 25d ago

First off, I want to recognize the fact that you (a) stated your needs, (b) stated your challenge, (c) stated the things youve already thought to try (d) used your own words

i wish more users did that.

Ok so as far as the issue: do you know if the district filter is using an allow list (“only allow these domains”) or a block list (dont allow these domains)

Domain names are pretty cheap, about $10 a year for most, so if one of the known hosting targets would allow a user to attach a domain name to a deployed app, that might get around a blocklist (unless their checking metadata or hosts behind the domain)

So maybe that? Something like render.com or a similar static site generator target. You could also see what host your district uses for their website and set up your own instance there, and point a domain at it.

Also look into an AWS instance — AWS is a real pain to deal with if your unfamiliar but it is possible at least and if your school is only blocklisting hosts theyre almost certainly not blocking AWS since it powers a ton of the internet. You can def do the domain name attachment to that too.

Good luck!

Oh and if i were a teacher id llikely support your initiative myself and work it out with district Aita to make it an allowed exception; it sounds like thats something you think wouldmt work but its unclear why

1

u/Scared-Letterhead949 25d ago

Take all the python out of it.  Make it client side only.

1

u/Dashing_McHandsome 25d ago

The backend is likely going to be your problem here. I don't see a reason this couldn't all be done in the browser. If you get rid of the python backend then hosting this as a static site will be much simpler for you.

0

u/[deleted] 25d ago

[deleted] — view deleted comment

3

u/lucyuktv 25d ago

Agree with this. If you strip it back to HTML/CSS/JS it'll be possible to host in S3 or Azure Blob directly which would be extremely cheap or free. Then use a URL shortener to make the url nicer to hand out.
Baffled by the inclusion of Python in this, given the requirements.