File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ Then build and run the container from the command line as follows:
49
49
50
50
.. code-block :: console
51
51
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
53
53
54
54
55
55
In case the files on the host file system should be used, connect the directory to the host by
56
56
running to docker run command with the -v option:
57
57
58
58
.. code-block :: console
59
59
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
61
61
62
62
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ In the django_pyas2 project directory invoke the script as follows:
15
15
16
16
.. code-block :: console
17
17
18
- python manage.py startapp extend_pyas2
18
+ $ python manage.py startapp extend_pyas2
19
19
20
20
21
21
This has now created a new directory containing files that may be used for apps:
@@ -70,7 +70,7 @@ command:
70
70
71
71
.. code-block :: console
72
72
73
- python manage.py filewatcher
73
+ $ python manage.py filewatcher
74
74
75
75
76
76
.. code-block :: python
Original file line number Diff line number Diff line change 10
10
from django .urls import reverse_lazy
11
11
from django .views import View
12
12
from django .views .decorators .csrf import csrf_exempt
13
+ from django .views .decorators .clickjacking import xframe_options_exempt
13
14
from django .views .generic import FormView
14
15
from pyas2lib import Message as As2Message
15
16
from pyas2lib import Mdn as As2Mdn
@@ -64,6 +65,7 @@ def find_partner(partner_id):
64
65
if partner :
65
66
return partner .as2partner
66
67
68
+ @xframe_options_exempt
67
69
@csrf_exempt
68
70
def post (self , request , * args , ** kwargs ):
69
71
You can’t perform that action at this time.
0 commit comments