惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
B
Blog
腾讯CDC
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
L
LangChain Blog
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Getting Started with Django: From Zero to 70% in Record T...
Rouwel Ngach · 2026-05-24 · via DEV Community

Rouwel Ngacha

Quick disclaimer (the post below is meant to mirror the previous post but for the Linux operating system. Please try to implement these methods and if they do not work on your machine leave a comment and allow me to find a solution.)

For this post, I would like to help anyone who is not familiar with Django to get somewhat of an understanding on how to use it to get from 0 to maybe 70% completion of a project in record time.
The objective today is to learn how to start, after 2 posts you should be able to speedrun projects.

First things first, you have to understand that there are multiple Python frameworks out there(Flask, FastAPI). The choice of which one to use is always up to you and the constraints on the project your working on.

With that being said let's dive in.

Step 1: Ensure that you download Python
For my device I am using Windows Subsystem For Linux (for more information : https://learn.microsoft.com/en-us/windows/wsl/install) this allows me to run an Linux Ubuntu terminal on my machine.
For the installation we will use apt (Advanced Package Tool) to install python3.
1.sudo apt update
2.sudo apt install python3

Step 2: Ensure you have to have Django installed
To install Django we will be using pip(a python package installer) which means you should have Python downloaded and configured in your path.

Something else I would like to encourage is the use of a Python virtual environment. You may not be familiar with this concept but trust me - there is not better time to learn how to use it.
The idea behind it is that, you install all your python packages while inside your project environment and as long as you initialize your environment all your project dependencies will work (eg Django, pillow). Sounds good?

Considering that we are on Linux we will need to download the specific packages that we want to use ( eg venv) in order to get our virtual environments active.
This is because unlike windows, downloading python3 does not come with the venv package already installed.
This means that if you try to run python3 -m venv MyProject
you will be met by an error.

Creating a python environment

So for every individual package we want to use we will have to install it as we go along.
1.sudo apt install python3-venv

From here we create and activate the project environment using
python3 -m venv Project and source Project/bin/activate

Creating the virtual environment

Now that you are in your environment, use pip to install Django.

Installing Django

Step 3: Creating a project
So to start a project the command is django-admin startproject ProjectName

Once you ran this command, it will create a folder where there are a few preconfigured python code files inside.


(Pre-configured project files)

Now that we have created a project, we will need to initialize a Django app while inside that folder. The command is
python3 manage.py startapp <name_of_your_app>

Now once you open your IDE, you will realized that you have a few code files inside your NewProject folder.

Step 4: Running the server
The final part of this post focuses on how to run the server. In later entries we will dive deeper and create a small-scale working example using all of Django's extensive features, but that is for later.

To run the server use python3 manage.py runserver.

So when you go to localhost at port 8000 you will find

And there you have it! You have successfully installed Django, created a project, initialized an app, and got your development server running (on linux).
While this may seem like a small set of steps, this is the foundation that every Django project is built on.