File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Create django app
28
28
Add app to INSTALLED\_ APPS
29
29
--------------------------
30
30
31
- ``` sourceCode
31
+ ``` python
32
32
INSTALLED_APPS = [
33
33
' django_declarative_apis' ,
34
34
' myapp' ,
@@ -38,15 +38,15 @@ INSTALLED_APPS = [
38
38
Add required config
39
39
-------------------
40
40
41
- ``` sourceCode
41
+ ``` python
42
42
DECLARATIVE_ENDPOINT_RESOURCE_ADAPTER = ' django_declarative_apis.adapters.EndpointResource'
43
43
DECLARATIVE_ENDPOINT_AUTHENTICATION_HANDLERS = ' django_declarative_apis.authentication.oauthlib.oauth1.TwoLeggedOauth1'
44
44
```
45
45
46
46
myapp/urls.py
47
47
-------------
48
48
49
- ``` sourceCode
49
+ ``` python
50
50
from django_declarative_apis import adapters
51
51
import myapp.resources
52
52
@@ -70,7 +70,7 @@ urlpatterns = [
70
70
myproject/myproject/urls.py
71
71
---------------------------
72
72
73
- ``` sourceCode
73
+ ``` python
74
74
from django.conf.urls import url, include
75
75
import myapp.urls
76
76
@@ -82,7 +82,7 @@ urlpatterns = [
82
82
myapp/resources.py
83
83
------------------
84
84
85
- ``` sourceCode
85
+ ``` python
86
86
from django_declarative_apis import machinery
87
87
88
88
You can’t perform that action at this time.
0 commit comments