Python Forum
Django & Python app - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Django & Python app (/thread-23091.html)



Django & Python app - A1988 - Dec-10-2019

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


RE: Django & Python app - Malt - Dec-11-2019

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