Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekram committed Jun 25, 2019
2 parents fd67574 + edd55af commit eb9343b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/detailed-guide/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ Then build and run the container from the command line as follows:

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

.. code-block:: console
docker build -t docker_pyas2 . && docker run -p 8000:8000 -v $PWD/django_pyas2:/django_pyas2 docker_pyas2
$ docker build -t docker_pyas2 . && docker run -p 8000:8000 -v $PWD/django_pyas2:/django_pyas2 docker_pyas2
4 changes: 2 additions & 2 deletions docs/detailed-guide/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In the django_pyas2 project directory invoke the script as follows:

.. code-block:: console
python manage.py startapp extend_pyas2
$ python manage.py startapp extend_pyas2
This has now created a new directory containing files that may be used for apps:
Expand Down Expand Up @@ -70,7 +70,7 @@ command:

.. code-block:: console
python manage.py filewatcher
$ python manage.py filewatcher
.. code-block:: python
Expand Down
2 changes: 2 additions & 0 deletions pyas2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from django.urls import reverse_lazy
from django.views import View
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.clickjacking import xframe_options_exempt
from django.views.generic import FormView
from pyas2lib import Message as As2Message
from pyas2lib import Mdn as As2Mdn
Expand Down Expand Up @@ -64,6 +65,7 @@ def find_partner(partner_id):
if partner:
return partner.as2partner

@xframe_options_exempt
@csrf_exempt
def post(self, request, *args, **kwargs):

Expand Down

0 comments on commit eb9343b

Please sign in to comment.