• Like

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Building a Personal or Small Business Website with Django

  • 5,145 views
Uploaded on

These are the slides to Eric Floehr's presentation at the October 2010 Central Ohio Python Users Group meeting. …

These are the slides to Eric Floehr's presentation at the October 2010 Central Ohio Python Users Group meeting.

There are lot of options when you want a website with things like easy content creation/editing (product pages, about pages, etc.), a blog, and maybe even Twitter status updates. Products like Wordpress, Drupal, and Plone come to mind. But you don't want to learn another new one-off app that you can't easily customize, don't want an enterprisey app, and being the Pythonista programmer that you are, you'd like it it Python and you'd like to build it yourself. That way you know all the ins-and-outs and can customize as you like.


From scratch, Eric will show how to build a CMS and blog using Django and best-of-breed reusable apps, demostrating best practices that will allow you to get a site up and working in the shortest time possible (I hope to talk for less than an hour) but allow for the maximum customization in the future.

I hope that you will leave the talk able to create your own personal or small business website that is powerful, customizable, and most of all, useful.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
5,145
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
40
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. The Goal: A Personal or Small Business Website
  • 2. Requirements: Static Pages Blog with Comments Easy to Edit Extensible
  • 3. Blog first: Wordpress (#1 by far) CMS first: Static HTML pages (#1 by far) Drupal Joomla!
  • 4. More Requirements: Python!
  • 5. Spectrum: Blogofile … Django … Plone
  • 6. There are 101 Ways to Make a Website... You will go MAD trying to figure out the “BEST” one for you.
  • 7. Django
  • 8. Django Concepts: MVC – Model Template View Project Application Models / Managers Templates / Context Processors Views / Middleware URL Dispatcher
  • 9. Tools: Python Virtualenv Pip
  • 10. http://djangopackages.com/
  • 11.
    • virtualenv –no-site-packages pyenv
    • 12. source pyenv/bin/activate
    • 13. pip install -e hg+ http://bitbucket.org/stephenmcd/mezzanine#egg=mezzanine
    • 14. mezzanine-project sample
    • 15. python sample/manage.py syncdb
    • 16. python sample/manage.py runserver
    A working site in 6 lines
  • 17. Admin On-page Editing Template Editing
  • 18. mezzanine.core mezzanine.blog mezzanine.forms mezzanine.pages mezzanine.settings mezzanine.twitter
  • 19. Django Debug Toolbar http://pypi.python.org/pypi/django-debug-toolbar # pip install django-debug-toolbar # python manage.py debugsqlshell Already configured in Mezzanine
  • 20. Django Command Extensions http://code.google.com/p/django-command-extensions/ # pip install django-extensions # python manage.py graph_models blog>blog.dot # dotty blog.dot # pip install werkzeug # python manage.py runserver_plus
  • 21. South http://south.aeracode.org/ # pip install south # python manage.py syncdb # python manage.py schemamigrations … --auto # python manage.py migrate ...
  • 22. You drive.