Skip to content

Includes basic project setups of each LTS version of Django, starting with Django 2.2.

Notifications You must be signed in to change notification settings

brodriguez8774/django-testing-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Testing Sandbox

Description

Includes basic project setups of each LTS version of Django, starting with Django 2.2.

Each project has minimal adjustments to settings file, essentially using the default settings provided with the given version of Django.

Each project also has common things set up, such as a view that requires a user login to access, a view that requires a specific permissions to access, some basic API views, etc.

The goal is to be able to easily/quickly test various common properties of Django projects, across multiple Django versions.

Included Django Versions

Currently included in this project are:

Django Version Version Notes Official Support End
Django v5.0 Feature Release Aug 2025
Django v4.2 LTS April 2026
Django v3.2 LTS (End of Life) No Longer Supported
Django v2.2 LTS (End of Life) No Longer Supported

This project will try to always update to include LTS versions. When "feature release" versions are included, they will be updated to the next LTS version as soon as possible.

See https://www.djangoproject.com/download/#supported-versions for Django versioning and LTS details.

Running Project

In each project version, there is a scripts/run_project.sh file and a scripts/run_pytests.sh file.

Change directory into the corresponding desired django project version, create/load a virtual environment, then run the corresponding desired script.

Provided Testing Users

Each project has logic to automatically create a handful of user models for testing purposes:

  • Super User:
    • Username: test_superuser
    • Email: test_superuser@example.com
    • Permissions: is_active, is_superuser
  • Admin User:
    • Username: test_admin
    • Email: test_superuser@example.com
    • Permissions: is_active, is_staff
  • Standard User:
    • Username: test_inactive
    • Email: test_superuser@example.com
    • Permissions: None
  • Inactive User:
    • Username: test_user
    • Email: test_superuser@example.com
    • Permissions: is_active

All users can have the default password temppass2.

About

Includes basic project setups of each LTS version of Django, starting with Django 2.2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published