Skip to content

Django: High-level Python web framework for rapid development, follows the MVC pattern, with built-in admin interface & robust ecosystem.

Notifications You must be signed in to change notification settings

natthasath/demo-python-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎉 DEMO Python Django

Django: Python web framework that streamlines backend development, encouraging efficient, secure, and scalable creation of dynamic websites and applications

version rating uptime

⭐ Features

🚀 Setup

  • Create Start Project
django-admin startproject core
  • Create App
python manage.py startapp module
  • Make Migration
python manage.py makemigrations
  • Show Migration
python manage.py showmigrations
  • Migrate
python manage.py migrate
  • Create User
python manage.py createsuperuser
  • Create Static Folder
python manage.py collectstatic

🔑 Configuration

  • Change Timezone
TIME_ZONE = 'Asia/Bangkok'
  • Allow Host
ALLOWED_HOSTS = ['127.0.0.1']
  • Disable Debug
DEBUG = False

🏆 Run

python manage.py runserver
python manage.py runsslserver
python manage.py runsslserver --certificate ../certs/localhost.crt --key ../certs/localhost.key

🧩 Production

python manage.py check --deploy
daphne core.asgi:application

💣 Remove App

  1. Remove App from INSTALLED_APPS in settings.py
  2. Delete App's Database Tables
python manage.py makemigrations -n drop_all_tables module
  1. Delete App's Files
  2. Remove App's URLs in urls.py
  3. Clear Cached Files
  4. Check for Dependencies
  5. Test Your Project

About

Django: High-level Python web framework for rapid development, follows the MVC pattern, with built-in admin interface & robust ecosystem.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages