Skip to content

Commit a588c6f

Browse files
authored
Merge pull request #197 from vanschelven/remove-internal-ips-from-docs
Remove INTERNAL_IPS from docs & example
2 parents 06a7dae + b86e674 commit a588c6f

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

docs/installation.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,16 @@
5252
TAILWIND_APP_NAME = 'theme'
5353
```
5454

55-
6. Make sure that the `INTERNAL_IPS` list is present in the `settings.py` file and contains the `127.0.0.1` ip address:
56-
57-
```python
58-
INTERNAL_IPS = [
59-
"127.0.0.1",
60-
]
61-
```
62-
63-
7. Install *Tailwind CSS* dependencies, by running the following command:
55+
6. Install *Tailwind CSS* dependencies, by running the following command:
6456

6557
```bash
6658
python manage.py tailwind install
6759
```
6860

69-
8. The *Django Tailwind* comes with a simple `base.html` template located at
61+
7. The *Django Tailwind* comes with a simple `base.html` template located at
7062
`your_tailwind_app_name/templates/base.html`. You can always extend or delete it if you already have a layout.
7163

72-
9. If you are not using the `base.html` template that comes with *Django Tailwind*, add `{% tailwind_css %}` to
64+
8. If you are not using the `base.html` template that comes with *Django Tailwind*, add `{% tailwind_css %}` to
7365
the `base.html` template:
7466

7567
```html
@@ -85,7 +77,7 @@
8577
The `{% tailwind_css %}` tag includes Tailwind's stylesheet.
8678

8779

88-
10. Let's also add and configure `django_browser_reload`, which takes care of automatic page and css refreshes in the
80+
9. Let's also add and configure `django_browser_reload`, which takes care of automatic page and css refreshes in the
8981
development mode. Add it to `INSTALLED_APPS` in `settings.py`:
9082

9183
```python
@@ -97,7 +89,7 @@
9789
]
9890
```
9991

100-
11. Staying in `settings.py`, add the middleware:
92+
10. Staying in `settings.py`, add the middleware:
10193

10294
```python
10395
MIDDLEWARE = [
@@ -110,7 +102,7 @@
110102
The middleware should be listed after any that encode the response, such as Django’s `GZipMiddleware`. The middleware
111103
automatically inserts the required script tag on HTML responses before `</body>` when `DEBUG` is `True.`
112104

113-
12. Include `django_browser_reload` URL in your root `url.py`:
105+
11. Include `django_browser_reload` URL in your root `url.py`:
114106

115107
```python
116108
from django.urls import include, path
@@ -120,7 +112,7 @@
120112
]
121113
```
122114

123-
13. Finally, you should be able to use *Tailwind CSS* classes in HTML. Start the development server by running the
115+
12. Finally, you should be able to use *Tailwind CSS* classes in HTML. Start the development server by running the
124116
following command in your terminal:
125117

126118
```bash

example/project/settings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525

2626
ALLOWED_HOSTS = ["*"]
2727

28-
INTERNAL_IPS = [
29-
"127.0.0.1",
30-
]
31-
3228
# Application definition
3329
INSTALLED_APPS = [
3430
"django.contrib.staticfiles",

0 commit comments

Comments
 (0)