はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    WWDC25

『djangosnippets: Welcome』

  • 人気
  • 新着
  • すべて
  • djangosnippets: Ajax required decorator

    4 users

    www.djangosnippets.org

    Author: zenx Posted: May 23, 2008 Language: Python Version: .96 Score: 5 (after 7 ratings) Download Raw Checks if the request is an AJAX request, if not it returns an HttpResponseNotFound. It looks for the XMLHttpRequest value in the HTTP_X_REQUESTED_WITH header. Major javascript frameworks (jQuery, etc.) send this header in every AJAX request. from django.http import HttpResponseBadRequest def aj

    • 暮らし
    • 2009/09/28 16:53
    • djangosnippets: Twitter oAuth example

      3 users

      www.djangosnippets.org

      Author: henriklied Posted: March 3, 2009 Language: Python Version: 1.0 Score: 9 (after 9 ratings) Download Raw UPDATE: A more complete example is up on GitHub Based around Simon Willison's Fire Eagle oAuth, this will allow you to develop Twitter oAuth applications (…that is – if you're in the closed beta) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

      • テクノロジー
      • 2009/03/05 12:08
      • oauth
      • django
      • python
      • twitter
      • djangosnippets: Smart {% if %} template tag

        6 users

        www.djangosnippets.org

        Author: SmileyChris Posted: March 2, 2009 Language: Python Version: 1.0 Score: 65 (after 67 ratings) Download Raw Save this as smart_if.py in the templatetags folder of one of your apps. Then a simple {% load smart_if %} replaces the boring built-in Django {% if %} template with the new smart one. 7 May 2009: Was asked about whether it handles combination of and/or. It does, added a test to show i

        • テクノロジー
        • 2009/03/03 14:17
        • django
        • python
        • djangosnippets: Google AppEngine Login Decorator

          3 users

          www.djangosnippets.org

          Author: cmcavoy Posted: April 8, 2008 Language: Python Version: .96 Score: -3 (after 5 ratings) Download Raw A decorator for Django apps running Google AppEngine that requires a user to be authenticated. from django.http import HttpResponsePermanentRedirect from google.appengine.api import users def loginrequired(func): def redirect_to_login(request): return HttpResponsePermanentRedirect(users.cre

          • テクノロジー
          • 2008/04/09 11:44
          • google
          • djangosnippets: Add delete buttons to admin changelist

            4 users

            www.djangosnippets.org

            Author: kylefox Posted: May 26, 2007 Language: HTML/template Version: Not specified Score: 10 (after 10 ratings) Download Raw This adds a checkbox for each object and three buttons to a model's change list: Delete selected: deletes the selected objects Delete shown: deletes all the visible objects. For example, if you perform a search or in any way filter the list, this button deletes only objects

            • テクノロジー
            • 2007/07/05 04:53
            • django
            • design
            • djangosnippets: Use email addresses for user name

              5 users

              www.djangosnippets.org

              Author: chris Posted: March 2, 2007 Language: Python Version: Pre .96 Score: 59 (after 63 ratings) Download Raw Django's built in authentication system requires the username to be alpha-numeric only. Therefore, email addresses are invalid. However, in many cases, you would like to use an email address as the username. This snippet allows you to do so. It has the added benefit that if you want to c

              • テクノロジー
              • 2007/05/18 13:42
              • django
              • python
              • djangosnippets: SSL Middleware

                3 users

                www.djangosnippets.org

                Author: sjzabel Posted: March 6, 2007 Language: Python Version: Pre .96 Score: 17 (after 17 ratings) Download Raw SSL Middleware This middleware answers the problem of redirecting to (and from) a SSL secured path by stating what paths should be secured in urls.py file. To secure a path, add the additional view_kwarg 'SSL':True to the view_kwargs. For example urlpatterns = patterns('some_site.some_

                • テクノロジー
                • 2007/03/07 09:49
                • django
                • SSL
                • security

                このページはまだ
                ブックマークされていません

                このページを最初にブックマークしてみませんか?

                『djangosnippets: Welcome』の新着エントリーを見る

                キーボードショートカット一覧

                j次のブックマーク

                k前のブックマーク

                lあとで読む

                eコメント一覧を開く

                oページを開く

                はてなブックマーク

                • 総合
                • 一般
                • 世の中
                • 政治と経済
                • 暮らし
                • 学び
                • テクノロジー
                • エンタメ
                • アニメとゲーム
                • おもしろ
                • アプリ・拡張機能
                • 開発ブログ
                • ヘルプ
                • お問い合わせ
                • ガイドライン
                • 利用規約
                • プライバシーポリシー
                • 利用者情報の外部送信について
                • ガイドライン
                • 利用規約
                • プライバシーポリシー
                • 利用者情報の外部送信について

                公式Twitter

                • 公式アカウント
                • ホットエントリー

                はてなのサービス

                • はてなブログ
                • はてなブログPro
                • 人力検索はてな
                • はてなブログ タグ
                • はてなニュース
                • ソレドコ
                • App Storeからダウンロード
                • Google Playで手に入れよう
                Copyright © 2005-2025 Hatena. All Rights Reserved.
                設定を変更しましたx