#ARC-27 database dbname rename fix

remotes/origin/setup
Mukhtar 10 years ago
parent 6c9ec6bf64
commit 67a1d918ee
  1. 2
      archilance/settings/base.py
  2. 12
      chat/templates/chat_customer.html
  3. 2
      chat/testapp.py

@ -111,7 +111,7 @@ WSGI_APPLICATION = 'archilance.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'archilance2',
'NAME': 'archilance',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'localhost',

@ -272,7 +272,7 @@
$.each(json.results, function (i, v) {
if (v.status == "not_agreed") {
htmlInbox += '<div class="numberStepp box-sizing">' +
'<p>Этап</p><form class="update-stages-form" id="stage-form-'+ v.pos +'">' +
'<p>Этап</p><form class="update-stages-form" data-order-id="'+ v.order +'" id="stage-form-'+ v.pos +'">' +
'<label for="">Название</label><input class="form-control" type="text" name="name" value="'+ v.name +'" />' +
'<label for="">Цена</label><input class="form-control" type="text" name="cost" value="'+ v.cost +'" />' +
'<input class="form-control" type="hidden" name="order" value="'+ v.order +'" />' +
@ -334,6 +334,8 @@
});
$(".update-stages-form").each(function(i,v){
var currentStageId = parseInt($(this).attr('data-order-id'));
alert(currentStageId);
$.ajax({
url: '/api/stages/' + currentStageId + '/',
type: 'PUT',
@ -345,10 +347,14 @@
success: function(json){
console.log(json);
},
error: function(e){
console.log('error');
console.log(e);
}
});
});
})
});
var currentOrderId = $(this).attr('data-order-id');

@ -92,7 +92,7 @@ if __name__ == '__main__':
ioloop = IOLoop.instance()
application.db = momoko.Pool(
dsn='dbname=archilance2 user=postgres password=postgres host=localhost',
dsn='dbname=archilance user=postgres password=postgres host=localhost',
size=1,
ioloop=ioloop,
)

Loading…
Cancel
Save