Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
hgt_soporte
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit dc22c199
authored
2024-04-11 10:22:54 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Cambio URL de server
1 parent
afbb5171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
models/incidencia.py
models/incidencia.py
View file @
dc22c19
...
...
@@ -164,7 +164,7 @@ class hgt_soporte_incidencia(models.Model):
return
()
val
=
{
"file"
:
self
.
file
,
"filename"
:
self
.
file_name
}
r
=
requests
.
post
(
"http
://192.168.15.121:8536
/upload"
,
json
=
val
)
r
=
requests
.
post
(
"http
s://img.hgt.com.ar
/upload"
,
json
=
val
)
rta
=
r
.
json
()
img_url
=
rta
[
"url"
]
#html = f"""<div><img src="{img_url}&w=500&h=350" alt="" width="500px" height="350px" /> \n<a>{img_url}</a></div> \n{self.archivos}"""
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment