If you are going out of town for longer than that amount of time, you either need to find somewhere you can pay to park your car, or you need to get a neighbor or friend to check in on it periodically and move it if there's a sign.
This responsibility is the only cost of using public space to store your car, aside from a nominal annual vehicle registration fee. Seems fair to me.
Is it enforced? No. But technically, it's there.
Very much enforced in NYC - where they do around $600 million a year in parking tickets.
The vast majority of them are likely the ones that can be verified on the spot -- things like being parked in a no parking zone (whether street cleaning or regular), expired or hasn't paid parking, etc.
NYC has alternate side of the street parking on most streets which means that for a two hour period, typically midday, on Mon/Thu or Tue/Fri. This has the effect of making you move your car every 72 hours, and it is trivially enforceable. Additionally there are 1 & 2 hour spots which are typically metered.
In California we have the same law, and it is certainly enforced, usually at the behest of nosy neighbors who have nothing else to do.
To verify, they usually have to mark your tires to check you haven't moved the car in the 72 hours (you could've just parked in the same place), so it usually requires two outcalls to even issue a ticket. That's a lot of work when you're anywhere outside of the downtown core where that initial call could be done as part of other work.
Even in the event of a street closure, I expect that a car parked on my own driveway is fine. And since I'm not using public space to store it, your "public space to store your car" comment is not applicable.
I understand how that happened, but wow. I hope that the filming crew was forced to pay for this.
A lot of cities require that the city tows the car, rather than the filming crew. Exactly to avoid this kind of problem.
Film crew moved all of their cars off of their own property down to the school.
Once school opened up, they were now “improperly parked” (by the film crew) and fines were issued and one of the cars was impounded.