Setting up django and running the server.
- Get link
- X
- Other Apps
#1 Setting up
django and running the server.
Django is a python project that enables you to write and make web apps in python. Python is probably the easiest programming language for writing web application. If you haven’t still learned python you can first search for a tutorial for python before you proceed to learn django because django is written in python.
First we will start by installing
django. Make sure you have installed the latest python from python.org and pip.
Run the pip install command. If you
haven’t installed pip you can go to python’s official website and read on how
to install pip in your machine. After the install is finished you can confirm that
by using the version command.
The version will be displayed if it
is properly installed.
Next we will create our django
project. We will use the start project command to create our django project.
In the *projectName* tag you will
write your project name.
So we will create a project called DjangoTutorial. After
creating the project a folder with project name will show up in your directory.
The folder will contain another folder of your project name
and a manage.py python file.
When you open the DjangoTutorial
folder *or as you named* you should see the files below.
These files are pretty important but
i will first show you how to run your server where your project’s output will
be displayed.
So get into the folder we created and
run the runserver command.
So
this results show that our server is running. You will go to a browser and
insert the url 127.0.0.1:8000/. This will open the server and a django success
page will be displayed.
When you see this page it means your
server is up and running and that’s it. You have finished the first step of
creating a web application.
- Get link
- X
- Other Apps
Popular posts from this blog
stunishing nokia 9.2 set to be released
nokia phone So, Nokia 9.1 pureview may not be launched at MWC 2020 at all and HMD may be focussing on Nokia 9.2 powered by snapdragon 856 instead. While this doesnt sound good, we have always believed that HMD should launch its flagship with the latest processors at the right time and not 4-5 months late. The tip also claims that this will enable HMD to launch Nokia 9.2 in the first half of 2020 like other manufacturers. This will be great if the tip holds true. But we suggest you take this with a pinch of salt as the launch dates are highly unpredictable with HMD when it comes to flagships. The tip further claims that the Nokia 9.2 won’t feature “Light camera technology” with their track-record of not getting post-launch support for Nokia 9 PureView. It still will come with a “great camera” with a big sensor from an old Nokia camera partner like “Toshiba”. HMD may rather adopt a “Nokia 8” like feature/pricing balance to usher ...
Apple and Samsung are still on the top lead of most selling phones in the world.
Apple and Samsung are still on the top lead of most selling phones in the world. Apple iPhone 8. As we all know apple produced the most selling smart phones last year, the iPhone XR and the iPhone 11.The iPhone 11’s second place holding was particularly impressive since it had been in market for only just over three months. Though in some regions it has been different, like in Europe a Samsung phone dominating and in China Oppo holding the top. Those are just but examples. Samsung still has the game and is playing its card just right. Samsung Galaxy phone. In North America Apple totally dominated. It took the top 5 spot for best selling smartphones. Ranging from the budget iPhone 8 to the flagship iPhone 11 Pro max. That’s not quite a surprise , it’s somehow expected with Apple owning roughly 50 percent of the US market share. In Europe an A-series Samsung phone took the lead, the Samsung Galaxy A50, quite astonishing. And not only this, phones from this serie...
Comments
Post a Comment