preyes / registro-barras

0 stars 0 forks source link

Campo "banco" #1

Closed preyes closed 11 years ago

preyes commented 11 years ago

Se debe cambiar el tipo de dato a banco, entrar cn usuario postgres

link explicacion y comandos

http://www.forosdelweb.com/f99/postgresql-propietarios-274359/

http://caronates.wordpress.com/2010/01/12/comandos-para-postgres/

preyes commented 11 years ago

Fallo postgresql--persistio error en campo banco

usar mysql, al parecer es estable

$ sudo apt-get install mysql-server

$ sudo apt-get install python-mysqldb

$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE django_db; Query OK, 1 row affected (0.01 sec)

mysql> GRANT ALL ON django_db.* TO 'djangouser'@'localhost' IDENTIFIED BY 'mypassword'; Query OK, 0 rows affected (0.03 sec)

mysql> quit

Bye

$ sudo apt-get install libmysqlclient-dev $ sudo apt-get install python-dev

$ pip install mysql-python

luego resetear apache


preyes commented 11 years ago

El error estaba en exclude, se omitia el campo banco a pesar de haber estado declarado en el form.

class Meta: model = Codigo exclude = ('seccional','boleta','monto', 'banco') ==>> no habia que exluir este campo.

RESUELTO