Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: from bridge.framework.django import configure #27

Merged
merged 3 commits into from
May 14, 2024
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ pip install python-bridge
### Usage
Add the following code to the end of your `settings.py` file (or `DJANGO_SETTINGS_MODULE`):
```python
from bridge.django import configure
from bridge import django

configure(locals())
django.configure(locals())
```


Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Add the following code to the end of your `settings.py` file (or `DJANGO_SETTING
```python
# Configure infrastructure with Bridge.
# All other settings should be above these lines.
from bridge.django import configure
from bridge import django

configure(locals())
django.configure(locals())
```

The next time you start up your application, bridge will create and configure local infrastructure for you:
Expand Down Expand Up @@ -91,4 +91,4 @@ Bridge assumes the following project structure:
├── ...
```

This structure is the default for Django projects created with `django-admin startproject`. The generated build script in `bridge-django-render/build.sh` may need changes if your project structure differs significantly.
This structure is the default for Django projects created with `django-admin startproject`. The generated build script in `bridge-django-render/build.sh` may need changes if your project structure differs significantly.