Skip to content

giuseppenovielli/django-dry-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages