Skip to content

Commit b8df2fb

Browse files
committed
Add a picture mainly for README, also for the app.
1 parent 2ba4489 commit b8df2fb

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and the
66
[Microsoft Entra ID](https://www.microsoft.com/security/business/microsoft-entra)
77
to sign in users and make authenticated calls to the Microsoft Graph API.
88

9+
![Topology](static/topology.png)
910

1011
## Getting Started
1112

@@ -23,7 +24,7 @@ to sign in users and make authenticated calls to the Microsoft Graph API.
2324
[its repo](https://github.com/Azure-Samples/ms-identity-python-webapp-django)
2425
or download its zip package, and then start using it or build on top of it.
2526
(Alternatively, you can follow our [tutorial](#tutorial) to learn
26-
how to build this from scratch, or how to add auth to your existing project.
27+
how to build this from scratch, or how to add auth to your existing project.)
2728
2. `cd project_name`
2829
3. Run `pip install -r requirements.txt` to install dependencies
2930
4. Run `python manage.py migrate` to initialize your Django project

mysite/settings.py

+4
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@
134134

135135
STATIC_URL = 'static/'
136136

137+
STATICFILES_DIRS = [
138+
BASE_DIR / "static",
139+
]
140+
137141
# Default primary key field type
138142
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
139143

static/topology.png

30.5 KB
Loading

templates/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<h1>Microsoft Entra ID Django Web App Sample {{version}}</h1>
99
<h2>Welcome {{ user.name }}!</h2>
1010

11+
{% load static %}
12+
<img src="{% static 'topology.png' %}" alt="Topology">
13+
1114
<ul>
1215
{% if downstream_api %}
1316
<li><a href='/call_downstream_api'>Call a downstream API</a></li>

0 commit comments

Comments
 (0)