Programming/Django: Difference between revisions

From Dev Wiki
Jump to navigation Jump to search
(Create page)
 
(Correct some syntax and formatting)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Django/Production]]
[https://docs.djangoproject.com/en/dev/ Django] is a [[Programming/Python | Python]]-based web framework.
 
It's the equivalent to [https://laravel.com/ Php's Laravel].
 
 
== Useful References ==
 
* [[Django/Production]]
 
 
== Related Packages and Libraries ==
 
See also [[Programming/Python#Related_Packages_and_Libraries | Python Packages and Libraries ]].
 
 
=== Personally Curated ===
 
[https://django-dump-die.readthedocs.io/en/latest/ Django DumpDie (Django DD)] - Mostly stable.
django-dump-die                # Dump-and-die debugging tool.
 
 
[https://django-expanded-test-cases.readthedocs.io/en/latest/ 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 ===
 
[https://github.com/PyMySQL/mysqlclient "MySQL Client" MySQL Connector] - See also [[Programming/MySQL | MySQL]]
mysqlclient                    # Allows connecting to MySQL databases.
 
 
[https://www.psycopg.org/docs/ "Psycopg2 Binary" PostgreSQL Connector] - See also [[Programming/PostgreSQL | PostgreSQL]]
psycopg2-binary                # Allows connecting to PostgreSQL databases.
 
 
=== Websockets, Asyncronous Communication, & APIs ===
 
[https://channels.readthedocs.io/en/stable/ Django Channels]
channels                        # Allows using websockets for client-server communication.
channels-redis                  # Supplementary for channels package.
 
 
[https://www.django-rest-framework.org/ Django Rest Framework]
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.
 
 
=== Utility & Other ===
 
[https://django-debug-toolbar.readthedocs.io/en/latest/ Django Debug Toolbar]
django-debug-toolbar            # Displays helpful debug-toolbar on side of browser window, after page load.
 
 
[https://django-localflavor.readthedocs.io/en/latest/ Django LocalFlavor]
django-localflavor              # Support for locality handling, such as national states/regions.

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.