You could start here http://www.djangobook.com/en/2.0/chapter05.html and 
look at a 1/3 down the page at the heading 'Your First Model'.

Taking 'events' as an example, think about the data you need to record. For 
example, each event normally has a title, location, start date and time, 
end date and time and perhaps a link to the promoters main website, where 
the event is featured. As a rough example:

class NgangsiaEvent(models.Model):
    title = models.CharField(max_length=100)
    location = models.CharField(max_length=75)
    starting = models.DateTimeField(auto_now=False, auto_now_add=False)
    it_ending = = models.DateTimeField(auto_now=False, auto_now_add=False)
    website = models.URLField()


Hope that helps!

On Saturday, June 28, 2014 5:22:30 PM UTC+8, ngangsia akumbo wrote:
>
> please what can go within these models
>
> page, events, news,  offers,  room types, services
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d25c7d02-505b-41cc-ac55-d2b64a5bcb71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • models ngangsia akumbo
    • Re: models Dean

Reply via email to