Zum Hauptinhalt springen
ProdukteDesktop-WerkzeugeTASTECADZeichnungsprüfungTASTEFILESDateiverwaltungTASTEFTPDateiübertragungTASTESSHRemote-ArbeitsbereichTASTEZIPKomprimieren und EntpackenTASTEWINMDateiverwaltungEntwicklerwerkzeugeTASTECODEIntegrierte Entwicklungsumgebung für RustTASTESTUDIOIntegrierte Entwicklungs- und TestumgebungTASTEETLDatenintegration (ETL)ServerTASTEREMOTERemote-Desktop-ServerTASTEGEOGeodatenserverTASTEMAILE-Mail-ArbeitsbereichInvestierenTASTESTOCKDesktop-App für automatischen AktienhandelErste SchritteDownloadsDokumentationKaufenAlle Produkte
Marktplatz
Neuigkeiten
TechnikNeuigkeitenEntwickler-News von heuteEntwicklerdokuProgrammiersprachenRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb-Frontend-FrameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer-FrameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp- & Desktop-FrameworksTauriFlutterReact NativeElectronAlgorithmenAlgorithmus-GrundlagenKernalgorithmenFortgeschrittene AlgorithmenAlgorithmen für die Praxis
CommunityProjekteEntwicklungslogsPromptsProbleme mit KI-ToolsShowcaseCommunity-Leitfaden
ZusammenarbeitWissenstransferWebsite-AufbauDesktop-App-AufbauRelease- und ZahlungspipelineVertriebspartnerKontakt
DiensteRemote-DesktopIndividuelle Installationspakete
TASTEDEV
Produkte

Desktop-Werkzeuge

TASTECADKomplexe Zeichnungen, mühelos geöffnetTASTEFILESNur die Dateien, die zählen – in BestzeitTASTEFTPDer aufgeräumteste Weg für Ihre DateienTASTESSHDie stärkere Verbindung zu Ihren ServernTASTEZIPSchneller packen, sicherer entpackenTASTEWINMEin tastaturorientierter Dateimanager mit zwei Fenstern

Entwicklerwerkzeuge

TASTECODERust-Apps bearbeiten, bauen, debuggen und testen – alles in einem FensterTASTESTUDIOVom Bearbeiten bis zu Remote-Tests und freigegebenen KI-KorrekturenTASTEETLDaten bewegen, die Werte im Blick

Server

TASTEREMOTEEin Remote-Desktop auf Ihrem eigenen ServerTASTEGEOEin GeoServer-kompatibler Geodatenserver, neu aufgebaut in RustTASTEMAILIhre E-Mail wieder in Ihrer Hand

Investieren

TASTESTOCKAutomatischer Aktienhandel nach Ihren Regeln: wann und was

Erste Schritte

DownloadsNeueste Versionen aller ProdukteDokuSo nutzen Sie jedes ProduktKaufenAbos und DauerlizenzenAlle ProdukteAlle Produkte im Überblick
Alle Produkte
MarktplatzNeuigkeiten
Technik

Neuigkeiten

Entwickler-News von heuteOffizielle Meldungen zu Sprachen, Frameworks, GitHub und KIEntwicklerdokuAnleitungen zu Sprachen, Frameworks und Algorithmen

Programmiersprachen

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web-Frontend-FrameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server-FrameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App- & Desktop-FrameworksTauriFlutterReact NativeElectron

Algorithmen

Algorithmus-GrundlagenKomplexitätsanalyse · Sortieren · Suchen · Grundlegende Datenstrukturen · Bäume und HeapsKernalgorithmenGraphtraversierung · Kürzeste Wege und minimale Spannbäume · Dynamische Programmierung · Greedy-Algorithmen · Teile und herrsche · BacktrackingFortgeschrittene AlgorithmenZeichenkettenalgorithmen · Mathematik und Zahlentheorie · Bitmanipulation · Segmentbäume · Union-FindAlgorithmen für die PraxisStrategie für Coding-Interviews · LRU-Cache · Rate Limiting · Konsistentes Hashing
Alle Entwicklungsdokumente
Community
ProjekteEntwickler und Projekte entdeckenEntwicklungslogsEntscheidungen und ErkenntnissePromptsWiederverwendbare AnweisungenProbleme mit KI-ToolsProbleme und Workarounds für Claude, Codex, GeminiShowcaseFertige ErgebnisseCommunity-LeitfadenWie wir offen entwickeln
Zusammenarbeit
WissenstransferNative Apps mit Rust und eguiWebsite-Aufbau10 Sprachen, Konten, Dokumentation und DownloadsDesktop-App-AufbauRust und egui, ohne WebViewRelease- und ZahlungspipelineSignatur, MSI, deb, rpm, AppImage, PrüfsummenVertriebspartnerEmpfehlen und 30 % erhaltenKontaktEntwicklung, Partnerschaft, Investition
Dienste
Remote-DesktopIhren Computer im Browser erreichenIndividuelle InstallationspaketeNur nötige Funktionen, Einstellungen vorab
Kaufen
DE
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Anmelden
Anmelden
TASTEDEV

Von kleinen Werkzeugen zu besserer Entwicklung.

support@tastedev.netTASTEDEV unterstützen
ProdukteProduktübersichtKaufenDokuDownloadsMarktplatzSupport
CommunityProjekteEntwicklungslogsPromptsProbleme mit KI-ToolsShowcase
RichtlinienÜber unsDatenschutzerklärungNutzungsbedingungenAbo-BedingungenRückerstattungCommunity-Richtlinien
KontoAnmeldenRegistrieren
Besucher
Heute
Gestern
Aufrufe gesamt
Firma
GXSOFT
Vertretungsberechtigt
CHOI YOUNG GU
Handelsregisternummer
853-44-00368
Anschrift
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefon
+82-10-4404-1523
E-Mail
whitecalvin@tastedev.net
Datenschutzbeauftragter
CHOI YOUNG GU

© 2026 TASTEDEVProduktinformationen basieren auf verifizierten Entwicklungsquellen.Veröffentlicht · wird verbessert

Django-Dokumentation
Django
Getting Started with DjangoProject StructureCore ConceptsData and StateTestingDeployment
Diskussionen

Django-Anleitung · 1/6

Getting Started with Django

Dieses Kapitel ist vorerst nur auf Englisch verfügbar.

This chapter walks you from an empty folder to a running Django site: create a Python virtual environment, install Django, start a project, run the development server, and add your first app. It ends with a few tips for setting up your editor.

Prerequisites: Python and a virtual environment

Django is a Python package, so you need Python installed first. Each Django release supports a specific range of Python versions; check the installation notes in the official docs for the versions the current release requires.

Give every project its own virtual environment. A virtual environment is an isolated Python installation inside your project folder, so packages from one project never collide with another project or with the system Python.

mkdir mysite-project
cd mysite-project

# Create the virtual environment
python -m venv .venv

# Activate it on macOS or Linux
source .venv/bin/activate

# Activate it on Windows (PowerShell)
.venv\Scripts\Activate.ps1

Once activated, your prompt shows (.venv), and every python and pip you run comes from the environment. Run deactivate when you are done.

Installing Django

With the environment active, install Django with pip. Recording your dependencies in requirements.txt lets teammates and servers recreate the same environment later.

python -m pip install Django

# Check the installed version
python -m django --version

# Save the dependency list
python -m pip freeze > requirements.txt

pip freeze writes every installed package with its exact version. You can also maintain requirements.txt by hand. Many teams now use tools such as uv or Poetry to manage dependencies, but the overall workflow is the same.

Creating a project

In Django, a project is the whole site: its settings and URL configuration. An app is a Python package that provides one feature, such as a blog or a poll. Create the project with django-admin startproject.

# Create the mysite project in the current folder (.)
django-admin startproject mysite .

# Create the tables used by the built-in apps (admin, auth, ...)
python manage.py migrate

# Start the development server
python manage.py runserver

The trailing . puts manage.py in the current folder, with the mysite/ settings package next to it. Open http://127.0.0.1:8000/ and you will see the Django welcome page. To use another port, pass it along, as in python manage.py runserver 8080.

The development server reloads automatically when your code changes, but it is . It has not gone through security or performance audits, so deployments use a server such as Gunicorn or Uvicorn instead (chapter 6).

Fragen zu diesem Kapitel?
Nächstes KapitelProject Structure
not meant for production

Creating your first app

Features are organized into apps. Create one with startapp and register it in INSTALLED_APPS.

python manage.py startapp polls
# mysite/settings.py
INSTALLED_APPS = [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "polls",
]

Now write a simple view and hook it up to a URL.

# polls/views.py
from django.http import HttpResponse


def index(request):
    return HttpResponse("Welcome to the polls app.")
# polls/urls.py (new file)
from django.urls import path

from . import views

app_name = "polls"
urlpatterns = [
    path("", views.index, name="index"),
]
# mysite/urls.py
from django.contrib import admin
from django.urls import include, path

urlpatterns = [
    path("polls/", include("polls.urls")),
    path("admin/", admin.site.urls),
]

Visit http://127.0.0.1:8000/polls/ to see your message. include() mounts the app's URL list under a prefix in the project's URLconf.

Creating an admin user

Django ships with an admin site. Create a superuser and log in at /admin/.

python manage.py createsuperuser

Setting up your editor

In VS Code, install Microsoft's Python extension and choose the interpreter inside .venv with "Python: Select Interpreter" from the command palette. PyCharm Professional understands Django projects and can jump between views, templates and URLs. For formatting, Ruff or Black are common choices for Python code, and djLint is popular for templates.

Summary

  • Create a virtual environment per project with python -m venv and install Django inside it.
  • Use django-admin startproject for the project and python manage.py startapp for each app.
  • Register new apps in INSTALLED_APPS and connect their URLs with include().
  • runserver is for development only; production uses a dedicated WSGI or ASGI server.

0 Kommentare

Top-KommentareNeueste zuerst

Anmelden · Melde dich an, um einen Kommentar zu schreiben.