Forums

having trouble saving views.py

Folks,

Saving views.py was smooth until I hit 7000 lines of code. Post that every time I try to save changes on views.py, it throws me an errors saying "There was an error saving". I have to repeatedly keep trying until it gets saved.

I will have to press the save button more than 7 to 8 time before my changes get saved on to the disk.

Can you guys please check and let me know, If I'm missing something.

Thanks Pawan

It's probably just that your browser is timing out trying to send so much data in the save. We'll have a look at the issue, but a 7000 line views file sounds like a bad idea to me. Try factoring it out into smaller files - your future self will thank you.