Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • Learning
  • About
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • Learning
  • About
Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • Learning
  • About
  • Development
  • Programming

How To: Django Web App Setup (CLI Only)

  • May 8, 2019
  • admin

Overview

  • This guide shows how to create a Django project using only a Command Line Interface. No IDE is used.
  • Django is Python Web Framework. Though it can also be used to build an API

 

Prerequisites

  • Operating System: Ubuntu 18
  • Command Line Interface or Terminal
  • Python 3.6 (or above) is installed
    • For Ubuntu users refer to this guide.
  • Pip and Virtual Env has been installed
    • For Ubuntu users refer to this guide.

 


Partner with liwaiwai.com
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

Steps

01. Navigate or create the project directory


$ cd ~

$ mkdir geek-django-app

$ cd geek-django-app

 

02. Create and activate a virtual environment


$ python3 -m venv venv

$ source venv/bin/activate

 

03. Install Django via Pip


(venv) $ pip install django

 

It will install Django and other required modules. You can view the other Pip modules it installed, using the `pip freeze` command, while the Virtual Environment is activated.


(venv) $ pip freeze

 

04. Create the project using Django. Note that the project name cannot contain dash. Underscore is valid.


(venv) $ django-admin startproject geek_django_main

 

05. The file structure will look like


geek_django_main/

├── geek_django_main

│   ├── __init__.py

│   ├── settings.py

│   ├── urls.py

│   └── wsgi.py

└── manage.py

 

06. Running the application. Note that the virtual environment should still be activated.


(venv) $ python geek_django_main/manage.py runserver

It will show the following that says that development server is running.

 

07. On your browser or use curl from a new command line interface session. Visit the following site.


http://127.0.0.1:8000/

Or via CURL on a new session


$ curl http://127.0.0.1:8000

 

08. On the command line session where Django is running, the access log is visible.

Read More  How To Build An AI-generated Procedural Application


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

admin

Related Topics
  • devops
  • Django
  • How To
  • Python
  • Web app
You May Also Like
View Post
  • Artificial Intelligence
  • Programming

How To Build An AI-generated Procedural Application

  • May 22, 2023
View Post
  • Data
  • Programming
  • Software

The Top 10 Data Interchange Or Data Exchange Format Used Today

  • May 17, 2023
View Post
  • Artificial Intelligence
  • Machine Learning
  • Programming

Running ML Models Now Easier With New Dataflow ML Innovations On Apache Beam

  • May 4, 2023
View Post
  • Programming
  • Technology

From The Field: A Programming Requirement for Structural Analysis Computations. To Java or To Javascript.

  • May 3, 2023
View Post
  • Artificial Intelligence
  • Automation
  • Programming
  • Programming Languages

Speak The Language Of The Future! Here Are The Top 10 Programming Languages For AI

  • May 2, 2023
View Post
  • Artificial Intelligence
  • Programming

PromptOps In application Delivery: Empowering Your Workflow with ChatGPT

  • April 30, 2023
View Post
  • Artificial Intelligence
  • Programming
  • Software

Bard Now Helps You Code

  • April 24, 2023
View Post
  • Machine Learning
  • Programming
  • Software Engineering

10 Best Python Machine Learning Tutorials

  • February 14, 2023
A Field Guide To A.I.
Navigate the complexities of Artificial Intelligence and unlock new perspectives in this must-have guide.
Now available in print and ebook.

charity-water



Stay Connected!
LATEST
  • 1
    AI-Driven Tool Makes It Easy To Personalize 3D-Printable Models
    • September 22, 2023
  • 2
    Applying Generative AI To Product Design With BigQuery DataFrames
    • September 21, 2023
  • 3
    Combining AI With A Trusted Data Approach On IBM Power To Fuel Business Outcomes
    • September 21, 2023
  • Microsoft and Adobe 4
    Microsoft And Adobe Partner To Deliver Cost Savings And Business Benefits
    • September 21, 2023
  • 5
    Huawei Connect 2023: Accelerating Intelligence For Shared Success
    • September 20, 2023
  • 6
    Document AI Workbench Is Now Powered By Generative AI To Structure Document Data Faster
    • September 15, 2023
  • Data 7
    UK Space Sector Has Sights Set On Artificial Intelligence And Machine Learning Professionals
    • September 15, 2023
  • Intel Innovation 8
    Intel Innovation 2023
    • September 15, 2023
  • 9
    Introducing OpenAI Dublin
    • September 14, 2023
  • 10
    Microsoft And Oracle Expand Partnership To Deliver Oracle Database Services On Oracle Cloud Infrastructure In Microsoft Azure
    • September 14, 2023

about
About
Hello World!

We are liwaiwai.com. Created by programmers for programmers.

Our site aims to provide materials, guides, programming how-tos, and resources relating to artificial intelligence, machine learning and the likes.

We would like to hear from you.

If you have any questions, enquiries or would like to sponsor content, kindly reach out to us at:

[email protected]

Live long & prosper!
Most Popular
  • 1
    Real-Time Ubuntu Is Now Available In AWS Marketplace
    • September 12, 2023
  • 2
    IBM Brings Watsonx To ESPN Fantasy Football With New Waiver Grades And Trade Grades
    • September 13, 2023
  • 3
    IBM Announced As A Sponsor Of 2023 U.N. Climate Change Conference (COP28)
    • September 13, 2023
  • 4
    NASA Shares Unidentified Anomalous Phenomena Independent Study Report
    • September 14, 2023
  • 5
    Bristol Set To Host UK’s Most Powerful Supercomputer To Turbocharge AI Innovation
    • September 13, 2023
  • /
  • Artificial Intelligence
  • Explore
  • About
  • Contact Us

Input your search keywords and press Enter.