Aug 24, 2024
py --version.py -m venv venv.venv\Scripts\activatesource venv/bin/activatepy -m pip install Djangopy -m django --version.django-admin startproject myprojectpy manage.py runserverpy manage.py startapp posts to create a new app.INSTALLED_APPS in settings.py.urls.py in the app directory.path() to route URLs to view functions.views.py to handle requests.render() and pass context data.{% url 'name' %} syntax for linking routes.admin.py to display them in admin.staticfiles app.DEBUG is set to False in production.ALLOWED_HOSTS for security.