What actually happened was that I added include to the from the django.urls import path. Next we need to open up our urls.py and add the following to your code: from django.urls import path, include First of all, open up your settings.py file in the myapp folder and add 'todo' to the installed apps like this: Now let's make it possible for the app to be served by the Django project. We will take a further look at the files when we begin working with them. Then inside the todo folder we should see something like this: This creates a To-do app in our myapp project like this: To create a Django app, make sure you are still in the directory, then type python manage.py startapp todo. In Django, the project folder serves as the root while the app serves as the application itself.
The next thing we need to do is create our Django app. Next, to test it in the browser visit 127.0.0.1:8000.Īnd boom! You should see that Django has been setup successfully. This creates a Django application called myapp in your root folder.Ĭhange directory to it by typing cd myapp and type in python manage.py runserver. Open up your terminal and type in the following command: So let's get started with building our project. This means that it's actually installed already. In the terminal type django-admin and hit enter. It has installed successfully, but let's confirm that. I am getting a "requirements satisfied" message because I already have it installed.
BUILD SIMPLE ANDROID APP INSTALL
Once that is done all you need to do is type the following command: pip install djangoĪnd you should get the below. To install Django we need to open up the side navigation in our pydroid3 and select Terminal: If you're not familiar with Django, please check out the Django docs here. The next thing we need to do is install Django. Now the next thing we need to do is install a mobile application on our phone called pydroid3.Īs you can see, pydroid3 is a mobile application that lets you write Python on your mobile phone, so go ahead and install it. But what if I told you that's all we need? Seems too good to be true. The first thing we need here is an Android phone, at least version 6.0 and upward.
BUILD SIMPLE ANDROID APP HOW TO
And in this article, I'm going to be writing about how to build a web app on your phone using Python 😁. Hey there, how are you? I'm an 18 year old a backend developer and an aspiring Machine Learning Engineer.