Browse Source

fix(django-onboarding): Add missing django extra (#77620)

The install snippet for the Django SDK was missing the `django` extra
even though it is referenced in the text.
ArthurKnaus 5 months ago
parent
commit
5e695eaefb

+ 3 - 1
static/app/gettingStartedDocs/python/django.spec.tsx

@@ -15,7 +15,9 @@ describe('django onboarding docs', function () {
 
     // Renders install instructions
     expect(
-      screen.getByText(textWithMarkupMatcher('pip install --upgrade sentry-sdk'))
+      screen.getByText(
+        textWithMarkupMatcher("pip install --upgrade 'sentry-sdk[django]'")
+      )
     ).toBeInTheDocument();
   });
 

+ 1 - 1
static/app/gettingStartedDocs/python/django.tsx

@@ -13,7 +13,7 @@ import {t, tct} from 'sentry/locale';
 
 type Params = DocsParams;
 
-const getInstallSnippet = () => `pip install --upgrade sentry-sdk`;
+const getInstallSnippet = () => `pip install --upgrade 'sentry-sdk[django]'`;
 
 const getSdkSetupSnippet = (params: Params) => `
 import sentry_sdk