Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
DocuSign_test_project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Volkov Gherman
DocuSign_test_project
Commits
2e162c01
Commit
2e162c01
authored
May 26, 2023
by
Volkov Gherman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix first version of docusign app
parent
e799ec74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
index.html
api/templates/index.html
+1
-1
settings.py
core/settings.py
+9
-3
urls.py
core/urls.py
+1
-1
No files found.
api/templates/index.html
View file @
2e162c01
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<script>
<script>
const
sendForm
=
(
e
)
=>
{
const
sendForm
=
(
e
)
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
fetch
(
'http://localhost:8000/api/v1/
'
,
{
fetch
(
'http://localhost:8000
'
,
{
method
:
'POST'
,
method
:
'POST'
,
body
:
new
FormData
(
form
)
body
:
new
FormData
(
form
)
}).
then
(
form
.
reset
())
}).
then
(
form
.
reset
())
...
...
core/settings.py
View file @
2e162c01
...
@@ -116,8 +116,8 @@ AUTH_PASSWORD_VALIDATORS = [
...
@@ -116,8 +116,8 @@ AUTH_PASSWORD_VALIDATORS = [
CORS_ORIGIN_ALLOW_ALL
=
False
CORS_ORIGIN_ALLOW_ALL
=
False
CORS_ORIGIN_WHITELIST
=
[
CORS_ORIGIN_WHITELIST
=
[
'http://loaclhost:8000
/api/v1/
'
,
'http://loaclhost:8000'
,
'http://127.0.0.1:8000
/api/v1/
'
'http://127.0.0.1:8000'
]
]
# Internationalization
# Internationalization
...
@@ -146,6 +146,12 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
...
@@ -146,6 +146,12 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
DOCUSIGN_INTEGRATION_KEY
=
os
.
getenv
(
'DOCUSIGN_INTEGRATION_KEY'
)
DOCUSIGN_INTEGRATION_KEY
=
os
.
getenv
(
'DOCUSIGN_INTEGRATION_KEY'
)
DOCUSIGN_PRIVATE_KEY_PATH
=
os
.
path
.
join
(
BASE_DIR
,
'docusign_test_app-python/app/private.key'
)
DOCUSIGN_PRIVATE_KEY_PATH
=
os
.
path
.
join
(
BASE_DIR
,
'docusign_test_app-python/app/private.key'
)
print
(
DOCUSIGN_PRIVATE_KEY_PATH
)
DOCUSIGN_AUTH_SERVER
=
'https://account-d.docusign.com'
DOCUSIGN_AUTH_SERVER
=
'https://account-d.docusign.com'
DOCUSIGN_API_SERVER
=
'https://api-d.docusign.com'
DOCUSIGN_API_SERVER
=
'https://api-d.docusign.com'
EMAIL_USE_TLS
=
True
EMAIL_HOST
=
None
EMAIL_HOST_USER
=
None
EMAIL_HOST_PASSWORD
=
None
EMAIL_PORT
=
587
core/urls.py
View file @
2e162c01
...
@@ -22,5 +22,5 @@ from api.views import IndexView
...
@@ -22,5 +22,5 @@ from api.views import IndexView
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'
api/v1/
'
,
IndexView
.
as_view
()),
path
(
''
,
IndexView
.
as_view
()),
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment