Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Django: Web Framework for Perfectionists

Sibi
June 08, 2013

Django: Web Framework for Perfectionists

Sibi

June 08, 2013
Tweet

More Decks by Sibi

Other Decks in Programming

Transcript

  1. Formal boring Introduction Equipped with: ORM Administration Site Development tools

    Templates Form Validation Authentication Pluggable ...
  2. 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
  3. Create your application within your Project • python manage.py startapp

    app_name • Include your app in the project by modifying settings.py
  4. Models... (2) • Ok, it's 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()