• Email
  • Like
  • Save
  • Private Content
  • Embed
 

The Best (and Worst) of Django

by

  • 25,513 views

 

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

12 Embeds 468

http://lanyrd.com 325
http://simple-is-better.com 122
https://twitter.com 7
http://us-w1.rockmelt.com 3
http://eventex-artur.herokuapp.com 2
http://www.simple-is-better.com 2
http://a0.twimg.com 2
http://twitter.com 1
http://paper.li 1
http://lanyrd.dev 1
http://lanyrd.dev:8000 1
https://si0.twimg.com 1

More...

Statistics

Likes
37
Downloads
183
Comments
4
Embed Views
468
Views on SlideShare
25,045
Total Views
25,513

14 of 4 previous next Post a comment

  • tartley tartley @r1cka: Thanks, but in that case, which environment uses the 'local' settings file? If what you are saying is correct, then I would think the important difference between the two situations is that in the 'preferred' setup, there would be no 'local.py' settings. 4 months ago
    Are you sure you want to
  • r1cka r1cka Tartley: I think the anti-pattern he is trying to avoid is more about not checking in the local_settings.py file. In the 'bad' example, your dev environment would have a settings.py file with the try block to import the local_settings.py file and in production, the local_settings.py file would be missing. This is bad as all config should be checked into source control. The latter approach says to have the different settings files for each environment, have them all do 'from settings.base import *' at the top. Which environment you are using should be set with the 'DJANGO_SETTINGS_MODULE' environment variable (i.e. export DJANGO_SETTINGS_MODULE=site.settings.production' in your prod environment). This way all configs (local, qa, prod, etc) are shared with developers. At least, that is my take on it. 4 months ago
    Are you sure you want to
  • tartley tartley In particular, I can't interpret slide 51 at all. How is the use of these prod.py, staging.py and local.py files different from the use which is strongly condoned in the previous slides? To what does 'settings.deploy' refer, in the last line? Anyone who can help enlighten me, many thanks. 5 months ago
    Are you sure you want to
  • tartley tartley The notes are out of sync with the slides, which I found extremely distracting, and it gets worse the further you go, until the final 20 slides are missing notes altogether.

    I created a text doc to join up the slide content with the appropriate notes, but it's missing notes for the last 20 slides:

    http://pastebin.com/S8dpLL0W

    If anyone has the missing notes, or an idea for a better way to fix this, I'd love to hear it.

    Jonathan
    tartley aaaaaaaattttttt tartley.com
    1 year ago
    Are you sure you want to
Post Comment
Edit your comment

The Best (and Worst) of Django The Best (and Worst) of Django Presentation Transcript