Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Django

Focus mode
Django - Amazon CodeGuru Profiler

Start the profiler in your settings file. This is usually the file that you’re setting for DJANGO_SETTINGS_MODULE. Then, start your application as usual.

The following is an example that you can add to settings.py

from codeguru_profiler_agent import Profiler Profiler(profiling_group_name='MyProfilingGroup').start()

Set the following in your wsgi.py file. This example is for a module named mysite. Your files may be in a different location.

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')

Set the following in your settings.py file.

Profiler(profiling_group_name='MyProfilingGroup').start()
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.