Python Forum

Full Version: Django & Python app
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm working on a project Django + python.
Set-up:
- Front-end: web templates (html/bootstrap)
- Web-framework: Django
- Back-end: calculations + tcp connection

I'm wondering how to 'organize' the back-end side. I would like write the back-end entirely in python.
How should the code be added into Django: should all code be added to the file "views.py" or are there other solutions?

Thanks a lot,

Kind regards
If the back-end needs to be executed whenever you navigate in the front-end then yes, you have to add your code to views.py