Part One!
QUICK TIP
MOVING TO PRODUCTION
QUICK TIP
WHAT’S THE ORM IN IT?!
DJANGO
Don’t miss next issue, subscribe on page 16!
Further information about queries can be found here: https://docs.djangoproject.com/en/4.1/topics/db/queries/
Like most things in the programming world, Django isn’t the only Python web framework. Other examples include flask, web2py, turbogears and Masonite, while fastAPI gets an honourable mention as a library that can be used to create APIs. Django makes testing our projects incredibly simple because it contains a built-in web server that can be used for this purpose. It should never be used in production, however. When moving to production, there are lots of security considerations that need to be made, which are outside the scope of this article. Moving from SQLite to MySQL, MariaDB or PostSQL would be a very wise move, and would give a much higher throughput and better concurrency, should the program be accessed by multiple users. Apache is a good choice of web server for running a Django app and it uses the mod_wsgi plugin. Finally, depending on the size of the application and its user base, it may be wise to consider the usage of a content delivery network (CDN) or a web server that is best at dealing with static content, such as Nginx, for hosting any CSS, JavaScript and static images.