Programming/Django: Difference between revisions

From Dev Wiki
Jump to navigation Jump to search
(Add status notes to personal packages)
(Correct some syntax and formatting)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:




== Recommended Packages ==
== Related Packages and Libraries ==
 
See also [[Programming/Python#Related_Packages_and_Libraries | Python Packages and Libraries ]].


See also {{ todo | Add link to recommended Python packages. Also create page/section for such. }}


=== Personally Curated ===
=== Personally Curated ===
Line 42: Line 43:
[https://www.django-rest-framework.org/ Django Rest Framework]
[https://www.django-rest-framework.org/ Django Rest Framework]
  djangorestframework            # Allows easy creation of standardized and secure API calls.
  djangorestframework            # Allows easy creation of standardized and secure API calls.
=== Testing Tools ===
[https://github.com/spulec/freezegun Freeze Gun] - Allows for date/time-sensitive testing in cases that would otherwise be difficult to thoroughly test.
freezegun                      # Allows "freezing" tests to specific datetimes, for consistent checking and output.
[https://www.selenium.dev/documentation/ Selenium] - For launching browser instances to test actual site page loads.
selenium                        # Support for running UnitTests that directly simulate browser usage.




Line 52: Line 63:
[https://django-localflavor.readthedocs.io/en/latest/ Django LocalFlavor]
[https://django-localflavor.readthedocs.io/en/latest/ Django LocalFlavor]
  django-localflavor              # Support for locality handling, such as national states/regions.
  django-localflavor              # Support for locality handling, such as national states/regions.
[https://github.com/spulec/freezegun Freeze Gun] - Allows for date/time-sensitive testing in cases that would otherwise be difficult to thoroughly test.
freezegun                      # Allows "freezing" tests to specific datetimes, for consistent checking and output.

Latest revision as of 07:27, 12 November 2022

Django is a Python-based web framework.

It's the equivalent to Php's Laravel.


Useful References


Related Packages and Libraries

See also Python Packages and Libraries .


Personally Curated

Django DumpDie (Django DD) - Mostly stable.

django-dump-die                 # Dump-and-die debugging tool.


Django Expanded Test Cases (Django ETC) - WIP, but basic integration tests are stable at this point.

django-expanded-test-cases      # Utilities for easier testing.


Database Connectors

"MySQL Client" MySQL Connector - See also MySQL

mysqlclient                     # Allows connecting to MySQL databases.


"Psycopg2 Binary" PostgreSQL Connector - See also PostgreSQL

psycopg2-binary                 # Allows connecting to PostgreSQL databases.


Websockets, Asyncronous Communication, & APIs

Django Channels

channels                        # Allows using websockets for client-server communication.
channels-redis                  # Supplementary for channels package.


Django Rest Framework

djangorestframework             # Allows easy creation of standardized and secure API calls.


Testing Tools

Freeze Gun - Allows for date/time-sensitive testing in cases that would otherwise be difficult to thoroughly test.

freezegun                       # Allows "freezing" tests to specific datetimes, for consistent checking and output.


Selenium - For launching browser instances to test actual site page loads.

selenium                        # Support for running UnitTests that directly simulate browser usage.


Utility & Other

Django Debug Toolbar

django-debug-toolbar            # Displays helpful debug-toolbar on side of browser window, after page load.


Django LocalFlavor

django-localflavor              # Support for locality handling, such as national states/regions.