python - Django: syncdb not able to add any model in data base -


I'm new to Django and am not able to add a model to my DB ?? OK, this is a portfolio model: import from core model from Models Import Unit # Make Your Model Here Class portfolio (models.model): "" genetic class to portfolio "" "name = model.ccarfield (_ ('name'), maximum_long = 255) youtube_id = models.charfield (_ ('youtube_id'), max_length = 255 ) Url_doc = models.CharField (_ ('Url_doc'), max_length = 255) Data = Model. TextField () unit = Model. Araginki (unit, verbos_name = _ ('unit'), empty = true, empty = true ( Portfolio) = = ('portfolio') comment = models.TextField (_ ('comment'), blank = true) class meta: verbose_name = _ ('portfolio') verbose_name_plural = _ ('portfolio') M = [('id')] Abstract = True def __unicode __ (self): Return u '% s'% (self.name)

and this python manage. Py syncdb :

  Syncing ... Creating a Table ... Installing Custom SQL ... Installing the Index ... 0 Object (s) to 0 Objects installed   

All are OK but the table is not created !!!!

And this is the setting.py file:

  database = {'default': {'ENGINE': 'django.db.backends.sqlite3', # add 'postgrescle_pse Opji 2 ',' Maysakil 'Sclait 3' or 'Oracle' 'NAME': 'timtec.sqlite', # or database file path if you are using sqlite3 # Use the following settings Sclait 3 '', '', 'Password': '', 'HOST': '', # Domains sockets for localhost via TCP or '127.0.0.1' 'Port': '', set to empty string for # default} } INSTALLED_APPS = ('django_extensions', 'south', 'pipeline', 'suit', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib sites' , 'DjangoTontib. Message ',' diego contrab.staticfile ',' diggongrunterb.flat pages ',' djgongcantrib Admin ', remove the next line to enable admin documentation:' Degena Contrab 'portfolio', 'note', 'report', 'portfolio', 'admindox', 'rest' framework ',' rostetta ',' Autoslog ',' core ',' account ',' activity ',' administration ',' metron ',' alout ',' elath. Account ',' alloyouth social account ',' aloud ' Social Account Providers. Facebook ',' Django_markDown ', #Raven should be the last' Raven Controversy Dagengo '. Thank you!)   

Build the database tables for the demogen 't model, which is the essence of the abstract class Should inherit or just remove the abstract = True line in the meta class.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -