Now you will see your Django project running on your web browser. Use python3 manage.py runserver if you’re on a Mac/Linux.Ī URL address will be generated on the command line, something like ‘ ’.Ĭopy that URL and paste it on a new tab in your browser. Now, let’s run the project using the following command. Now, go inside the todoproject folder by typing the following in your command line/prompt. In my case, I opened my project folder with the VSCode IDE. Inside the folder, we have the following files. Drag and drop that folder to your IDE (or you can open that folder in your IDE). Then you will see that a new folder called todoproject is created which contains some files. Start the project by typing in the following command. For example, cd Desktop will take you to the Desktop folder. If you want to create your project in a specific folder, go to that folder using the cd command. Open your command prompt or command line. Now, let’s move on and start our project. Django will get downloaded automatically and installed in your system. Make sure you have an Internet connection. If you’re on a Mac or Linux, use pip3 install django. If you don’t have it, open your command line (or cmd) and install Django using the following command. Before we proceed, make sure you have Django installed in your system. So, let’s invest some time to make a beautiful web application using Django. If you know the fundamentals of Python, Django, and a little bit of HTML, you’re good to go with this project. I’ll help you create an app where you can add new items to the list by clicking a button, and you can delete items from the list once the work gets completed. Today, we will be creating a basic To-Do application using the Django framework. It can be very useful for managing time, by planning your day ahead of time, and prioritizing activities. A To-Do list is a list that you can keep to put all of the tasks that you need to complete on a given day.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |