Skip to main content

Splash screen middleware for Django apps

Project description

PyPI CI Codecov Supported Python versions License

Splash screen middleware for Django apps


Checks incoming requests, to redirect users to a configured splash screen URL if they don’t have the proper cookie set. This can be used to display a small marketing landing page, protect an alpha website from the public eye, make an announcement, etc.

Meant to be used with – or you will need to import the config_models application to your Django application:


Add the application to the INSTALLED_APPS:

    # Splash screen

Add the middleware to the configuration:


Run the migrations:

$ ./ migrate splash

Then go to your Django admin, in http://yourserver/admin/splash/splashconfig/add/ and configure the following variables:

  • enabled: To activate the feature

  • cookie_name: The name of the cookie

  • cookie_allowed_values: The user cookie value must match one of the values to not be redirected to the splash screen URL

  • unaffected_users: Users which should never be redirected (usernames)

  • redirect_url: The URL the users should be redirected to when they don’t have the right cookie


The code in this repository is licensed under the Apache Software License 2.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

Reporting Security Issues

Please do not report security issues in public. Please email

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to this list of resources if you need any assistance.

Change Log


[1.3.0] - 2023-06-09


  • Added Support for Django42.

[1.2.0] - 2022-01-26


  • Removed Support for Django22, 30, 31


  • Added Support for Django40

[1.1.0] - 2021-07-09


  • Support for django3.2

[0.2.2] - 2018-02-09


  • Automatic upload to PyPI on tags.

[0.2.1] - 2018-02-07


  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-splash-1.3.0.tar.gz (11.5 kB view hashes)

Uploaded source

Built Distribution

django_splash-1.3.0-py2.py3-none-any.whl (10.3 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page