Skip to content

Commit

Permalink
Updated requirements and reload after submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
frasanz committed Sep 25, 2024
1 parent 298140b commit fa4cfe2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions frontend/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $(document).ready(function () {
}
});
$.ajax({
url: 'http://127.0.0.1:8000/api/v1/geoattempt-pending/',
url: '/api/v1/geoattempt-pending/',
type: 'GET',
dataType: 'json',
success: function (response) {
Expand Down Expand Up @@ -95,7 +95,7 @@ $(document).ready(function () {
"status": "PENDING"
}
$.ajax({
url: 'http://127.0.0.1:8000/api/v1/geoattempt-individual/' + geoatempt_id + '/',
url: 'api/v1/geoattempt-individual/' + geoatempt_id + '/',
type: 'PATCH',
dataType: 'json',
headers: {
Expand Down Expand Up @@ -185,7 +185,7 @@ $(document).ready(function () {
"status": "DONE"
}
$.ajax({
url: 'http://127.0.0.1:8000/api/v1/geoattempt-individual/' + geoatempt_id + '/',
url: '/api/v1/geoattempt-individual/' + geoatempt_id + '/',
type: 'PATCH',
dataType: 'json',
headers: {
Expand All @@ -195,6 +195,7 @@ $(document).ready(function () {
data: JSON.stringify(data),
success: function (response) {
console.log(response);
location.reload()
},
error: function (response) {
infoModal.textContent = 'Error!'; // Set the modal content
Expand Down Expand Up @@ -703,4 +704,4 @@ $(document).ready(function () {
});
}
});
});
});
3 changes: 1 addition & 2 deletions gdalface/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

ALLOWED_HOSTS = ['lostatnight.org', 'localhost', '127.0.0.1']

# Application definition

Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ fontawesomefree==6.6.0
inflection==0.5.1
packaging==24.0
pillow==10.2.0
psycopg2==2.9.9
psycopg2-binary==2.9.9
python-decouple==3.8
pytz==2024.1
PyYAML==6.0.1
setuptools==75.1.0
soupsieve==2.6
sqlparse==0.4.4
typing_extensions==4.10.0
Expand Down

0 comments on commit fa4cfe2

Please sign in to comment.