Translator App Project using Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
Refer to the following articles to check how to create a project and an app in Django.
In this article we will make a translator app using Django.
pip install django
Text translation from one language to another is increasingly becoming common for various websites as they cater to an international audience. The python package which helps us do this is called translate.
pip install translate
Then create new project
django-admin startproject translator
Then create new app inside the project
python manage.py startapp main
Then add the app name inside the settings.py
Then create directory templates inside the app.
Inside that create new directory main
Create new file index.html
Then create new file urls.py inside the app
Then add then main.urls inside url translator/urls.py
To run this app open cmd or terminal
python manage.py runserver