Skip to content

Latest commit

 

History

History
72 lines (60 loc) · 4.88 KB

README.md

File metadata and controls

72 lines (60 loc) · 4.88 KB

Django DRY Project

A Django project with samples code strictly DRY (DON'T REPEAT YOURSELF)

Features

SQL Lite 3

Pre popolated database.

  • Super Admin Account Django Admin:
    • username: admin
    • password: admin (ALL USERS)

CRUD (Create Retrieve Update Delete)

CRUD are operations that most project implements. Django Rest Framework can be used for this purpose, to develop Rest API Endpoint.




Utils

Utils folder can be used to store utils method/class

  • Create for each plugin, one utils file

Pagination

Client_PageNumberPagination class can be used to enable client custom pagination size.

  • <url>?page_size=20 Get 20 items at time, get page=1 (default)
  • <url>?page=2 Get the page number, get page_size=10 (default)
  • <url>?page_size=20&page=2 Get 20 items at time, get page=2

BrowsableAPIRenderer DEBUG MODE ONLY

Debug_BrowsableAPIRenderer class can be used to use browsable api ONLY into DEBUG MODE.