<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 自動完成 AutoComplete是一個很有意思的功能,特別是當我們的文章很多的時候,我們可以讓讀者有機會能搜索到相應的功能。 ## RESTful ### Django REST Framework > Django REST Framework 這個名字很直白,就是基于 Django 的 REST 框架。 ~~~ pip install djangorestframework pip install markdown # Markdown support for the browsable API. pip install django-filter # Filtering support ~~~ ~~~ INSTALLED_APPS = ( ... 'rest_framework', ) ~~~ 如下所示: ~~~ INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'blogpost' ) ~~~ ~~~ urlpatterns = [ ... url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')) ] ~~~ ## 跨域 ### CORS ### 添加跨域支持 ~~~ pip install django-cors-headers ~~~ ~~~ Collecting django-cors-headers Downloading django-cors-headers-1.1.0.tar.gz Building wheels for collected packages: django-cors-headers Running setup.py bdist_wheel for django-cors-headers ... done Stored in directory: /Users/fdhuang/Library/Caches/pip/wheels/b0/75/89/7b17f134fc01b74e10523f3128e45b917da0c5f8638213e073 Successfully built django-cors-headers Installing collected packages: django-cors-headers Successfully installed django-cors-headers-1.1.0 ~~~ 添加到`django-cors-headers=1.1.0`到`requirements.txt`文件中。 添加到`settings.py`中: ~~~ INSTALLED_APPS = ( ... 'corsheaders', ... ) ~~~ 以及對應的中間件: ~~~ MIDDLEWARE_CLASSES = ( ... 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', ... ) ~~~ 對應的配置: ~~~ CORS_ALLOW_CREDENTIALS = True ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看