Django_CRUD_Application Tailwind Templates

Django_crud_application

example school SR5 Django python CRUD application using Tailwind CSS and Oracle DB

Running services

py .\manage.py runserver

(optional)

py .\manage.py makemigrations sr5_project_app

py .\manage.py migrate

py .\manage.py sqlmigrate sr5_project_app 0001

pip install mysqlclient

pip install psycopg2

pip install cx_Oracle

Using Shell

py .\manage.py shell

from sr5_project_app.models import Article

Pratices

Article.objects.all() Article.objects.all().values()

x = Article() x.title = 'Welcome to lulu' x.content = 'Nice content' x.save()

Update the article

x = Article.objects.all()[0] x.title = 'Love oun' x.save() x.delete()

y = Article(title='new title', content='Welcome to lulu') y.save()

quit shell

quit()

Admin dashboard

=> should be migrate first

Init for supper user

see documentation How is python manage.py createsuperuser useful? py manage.py createsuperuser

Top categories

Loading Svelte Themes