🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

Getting Started with Django: Basic Setup and Overview

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




What is Django ?




  • A Python-based web framework designed for rapid development of efficient web applications.

  • It is also referred as "batteries included" framework because it provides built-in features for various aspects of web development these features include the Django admin interface, default data base management system (SQLite 3) and other streamlining development processes.






Why Django and not any other framework ?




  • First reason is Rapid Development; Django enables the creation of fully-fledged web applications in a short time.

  • Second reason is Database Flexibility; while SQLite 3 is the default database, Django allows easy switching to other databases like PostgreSQL, MySQL, and others.

  • Third reason is Built-in Admin Interface; it simplifies administrative tasks related to website management.






Django Architecture




  • Django follows the MVT Architecture, which stands for Model-View-Template, separating the logic of your application into three different components.





Before we start the project it is always suggested that run your project in virutal environment so that all the necessary dependencies needed for project is itself to project environment and not in the whole system.






Python Virtual Environment.




  • Installation of Python3 virutal environment.




CODE
sudo apt install python3-virtualenv







  • Create virtual environment in python3.




CODE
#virtualenv -p python3 <environment-name>
virtualenv -p python3 ecom







  • Activate the created environment.




CODE
#source <environment-name>/bin/activate
source ecom/bin/activate







  • Deactivating the environment.




CODE
deactivate









Django Installation in Environment.




  • Django Installation in created python environment.




CODE
python -m pip install django
#Tip: Type `django-admin` on terminal you will see all the django commands.
django-admin









Django Project and App creation.



In Django we wiill first create a Project inside it we creates App.




  • Creation of Django-Project.




CODE
#django-admin startproject <project-name>
django-admin startproject core .







  • Creation of app inside the project.




CODE
#python manage.py startapp <app-name>
python manage.py startapp store







  • After this we will install in our project.




CODE
#Go to <project-name>/settings.py inside check for Installed_Apps in which write your app name.
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
#custom-app
'Store'
]









  • Now in store we will create urls.py which is going to maps URLs to view functions in views.py to handle requests and return responses.




CODE
from django.urls import path
from . import views

urlpatterns = [
path(' ',views.home, name='home')
]







  • Run the server in the terminal to check the output of the HTML file on port 8000.




CODE
python manage.py runserver









  • GitHub :


  • Instagram : https://www.instagram.com/rohitrajput_36/

  • Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    3 Quellen
    GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
    1 Quelle
    Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
    1 Quelle
    Major AI platforms go down in unprecedented simultaneous outage
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten Getting Started with Django: Basic Setup and Overview

    Thematisch verwandte Begriffe: Getting, Started, with, Django · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...