Skip to content

Commit 236dcd9

Browse files
AleksaCbgrant
andauthored
Add syntax highlighting for code snippets in README.md (#50)
Co-authored-by: Robert David Grant <[email protected]>
1 parent f6c3998 commit 236dcd9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Create django app
2828
Add app to INSTALLED\_APPS
2929
--------------------------
3030

31-
``` sourceCode
31+
``` python
3232
INSTALLED_APPS = [
3333
'django_declarative_apis',
3434
'myapp',
@@ -38,15 +38,15 @@ INSTALLED_APPS = [
3838
Add required config
3939
-------------------
4040

41-
``` sourceCode
41+
``` python
4242
DECLARATIVE_ENDPOINT_RESOURCE_ADAPTER = 'django_declarative_apis.adapters.EndpointResource'
4343
DECLARATIVE_ENDPOINT_AUTHENTICATION_HANDLERS = 'django_declarative_apis.authentication.oauthlib.oauth1.TwoLeggedOauth1'
4444
```
4545

4646
myapp/urls.py
4747
-------------
4848

49-
``` sourceCode
49+
``` python
5050
from django_declarative_apis import adapters
5151
import myapp.resources
5252

@@ -70,7 +70,7 @@ urlpatterns = [
7070
myproject/myproject/urls.py
7171
---------------------------
7272

73-
``` sourceCode
73+
``` python
7474
from django.conf.urls import url, include
7575
import myapp.urls
7676

@@ -82,7 +82,7 @@ urlpatterns = [
8282
myapp/resources.py
8383
------------------
8484

85-
``` sourceCode
85+
``` python
8686
from django_declarative_apis import machinery
8787

8888

0 commit comments

Comments
 (0)