Django talk

2,907
-1

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,907
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Django talk

  1. 1. DJANGO: Web Framework for Perfectionists
  2. 2. Formal boring IntroductionEquipped with:ORMAdministration SiteDevelopment toolsTemplatesForm ValidationAuthenticationPluggable ...
  3. 3. Ladies And Gentlemen● Start your project, by this command:django-admin.py startproject project_name● Some new files are generated:– __init__.py– manage.py– settings.py– urls.py
  4. 4. Create your application withinyour Project● python manage.py startapp app_name● Include your app in the project by modifyingsettings.py
  5. 5. Models ???
  6. 6. Models... (2)● Ok, its not related to fashion models.● Model refers to the data access layer ( database)● Example of a django model:class post(models.Model):author = models.CharField(max_length = 30)title = models.CharField(max_length = 300)bodytext = models.TextField()
  7. 7. Connecting DB to your DjangoProject● Alter settings.py● python manage.py syncdb
  8. 8. Some tweaking● STATICFILES_DIRS● TEMPLATE_DIRS
  9. 9. MTV ??? (Sigh.. bear with me)
  10. 10. MTV (2)...
  11. 11. Thank You!● Find the demo code athttps://github.com/psibi/ilugc-talk-django● Contact mail: sibi@psibi.in● QUESTIONS ???
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×