Skip to content
Snippets Groups Projects
Commit 8ad51992 authored by Chris Seymour's avatar Chris Seymour Committed by cseymour
Browse files

Use a python code block for syntax rendering

parent 9cfca43f
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ with and tested on Python 2.6 and 2.7. ...@@ -19,6 +19,7 @@ with and tested on Python 2.6 and 2.7.
Next, add a ``LDAP`` instance to your code and at least the three Next, add a ``LDAP`` instance to your code and at least the three
required configuration options: required configuration options:
```python
from flask import Flask from flask import Flask
from flask.ext.simpleldap import LDAP from flask.ext.simpleldap import LDAP
...@@ -33,7 +34,7 @@ required configuration options: ...@@ -33,7 +34,7 @@ required configuration options:
@ldap.login_required @ldap.login_required
def ldap_protected(): def ldap_protected():
return 'Success!' return 'Success!'
```
Check the [examples](examples/) folder for a more complex example using LDAP groups. Check the [examples](examples/) folder for a more complex example using LDAP groups.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment