Skip to content

Commit eb9343b

Browse files
author
abhishekram
committed
Merge remote-tracking branch 'origin/master'
2 parents fd67574 + edd55af commit eb9343b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/detailed-guide/docker.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ Then build and run the container from the command line as follows:
4949

5050
.. code-block:: console
5151
52-
docker build -t docker_pyas2 . && docker run -p 8000:8000 docker_pyas2
52+
$ docker build -t docker_pyas2 . && docker run -p 8000:8000 docker_pyas2
5353
5454
5555
In case the files on the host file system should be used, connect the directory to the host by
5656
running to docker run command with the -v option:
5757

5858
.. code-block:: console
5959
60-
docker build -t docker_pyas2 . && docker run -p 8000:8000 -v $PWD/django_pyas2:/django_pyas2 docker_pyas2
60+
$ docker build -t docker_pyas2 . && docker run -p 8000:8000 -v $PWD/django_pyas2:/django_pyas2 docker_pyas2
6161
6262

docs/detailed-guide/extending.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In the django_pyas2 project directory invoke the script as follows:
1515

1616
.. code-block:: console
1717
18-
python manage.py startapp extend_pyas2
18+
$ python manage.py startapp extend_pyas2
1919
2020
2121
This has now created a new directory containing files that may be used for apps:
@@ -70,7 +70,7 @@ command:
7070

7171
.. code-block:: console
7272
73-
python manage.py filewatcher
73+
$ python manage.py filewatcher
7474
7575
7676
.. code-block:: python

pyas2/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from django.urls import reverse_lazy
1111
from django.views import View
1212
from django.views.decorators.csrf import csrf_exempt
13+
from django.views.decorators.clickjacking import xframe_options_exempt
1314
from django.views.generic import FormView
1415
from pyas2lib import Message as As2Message
1516
from pyas2lib import Mdn as As2Mdn
@@ -64,6 +65,7 @@ def find_partner(partner_id):
6465
if partner:
6566
return partner.as2partner
6667

68+
@xframe_options_exempt
6769
@csrf_exempt
6870
def post(self, request, *args, **kwargs):
6971

0 commit comments

Comments
 (0)