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

55 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, 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 v4.1 See below note December 2023
Django v3.2 LTS April 2024
Django v2.2 LTS (End of Life) No Longer Supported

Version 4.1 currently included because 4.x LTS is not yet out. Will switch over once v4 LTS is released.

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