Django Syntax Error when trying to syncdb -


I am doing a tutorial on HackedExistence and I am getting the following error while trying to syncdb:

 code  models.Model: ^ syntax error: invalid syntax   

I am running a Django on a VirtualIan

The code is as follows: <(> 'D', 'Domestic'), ('I', 'Import'), Class Beer (Model Model): Name = Model. Kharefild (max_long = 200) slug = model slugfilm (unique = true) brewery = model Vanoginaki ('breweries') Terrain = Model. Cheerfield (maximum_long = 1, option = biacrocus) Description = Model. TextField (empty = True) def __unicode __ (self): return self.name class breweries (model.model): name = model.carfield (max_lambi = 200) slug = model. Slugfield (Exclusive = True) Description = Model Testfield (empty = True) def __unicode __ (self): return self.name

.
You have forgotten the end-bracket of your tuple.

  BECroesus = (('D', 'Domestic'), ('I', 'Import'),) # & lt; - missing end-bracket    

Comments