Django: Python web framework that streamlines backend development, encouraging efficient, secure, and scalable creation of dynamic websites and applications
- CKEditor
- Import and Export
- Search
- Pagination
- Logs
- Model Meta Class
- SSL Server
- UUID Field
- Slug Field
- Image Field
- File Field
- Random File Name
- Show Image
- Show Many Field
- Deploy
- Daphne ASGI
- Admin Interface
- 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
- Change Timezone
TIME_ZONE = 'Asia/Bangkok'
- Allow Host
ALLOWED_HOSTS = ['127.0.0.1']
- Disable Debug
DEBUG = False
- http://localhost:8000/admin username :
admin
password :admin
- https://localhost:8000/admin username :
admin
password :admin
python manage.py runserver
python manage.py runsslserver
python manage.py runsslserver --certificate ../certs/localhost.crt --key ../certs/localhost.key
python manage.py check --deploy
daphne core.asgi:application
- Remove App from
INSTALLED_APPS
insettings.py
- Delete App's Database Tables
python manage.py makemigrations -n drop_all_tables module
- Delete App's Files
- Remove App's URLs in
urls.py
- Clear Cached Files
- Check for Dependencies
- Test Your Project