Skip to content

Remove INTERNAL_IPS from docs & example #197

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,16 @@
TAILWIND_APP_NAME = 'theme'
```

6. Make sure that the `INTERNAL_IPS` list is present in the `settings.py` file and contains the `127.0.0.1` ip address:

```python
INTERNAL_IPS = [
"127.0.0.1",
]
```

7. Install *Tailwind CSS* dependencies, by running the following command:
6. Install *Tailwind CSS* dependencies, by running the following command:

```bash
python manage.py tailwind install
```

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

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

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


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

```python
Expand All @@ -97,7 +89,7 @@
]
```

11. Staying in `settings.py`, add the middleware:
10. Staying in `settings.py`, add the middleware:

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

12. Include `django_browser_reload` URL in your root `url.py`:
11. Include `django_browser_reload` URL in your root `url.py`:

```python
from django.urls import include, path
Expand All @@ -120,7 +112,7 @@
]
```

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

```bash
Expand Down
4 changes: 0 additions & 4 deletions example/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

ALLOWED_HOSTS = ["*"]

INTERNAL_IPS = [
"127.0.0.1",
]

# Application definition
INSTALLED_APPS = [
"django.contrib.staticfiles",
Expand Down