zoukankan      html  css  js  c++  java
  • 测试2

    这里是一篇测试文章

    # coding=utf-8

    import os

    BASE_DIR = os.path.dirname(os.path.dirname(__file__))

    SECRET_KEY = 'dwyn^q&j1jdjob52g$*-ldw%4r(@3yrs$*hcc55-wuchr*n7a^'

    DEBUG = True

    TEMPLATE_DEBUG = True

    ALLOWED_HOSTS = ['*']

    INSTALLED_APPS = (

        'django.contrib.admin',

        'django.contrib.auth',

        'django.contrib.contenttypes',

        'django.contrib.sessions',

        'django.contrib.messages',

        'django.contrib.staticfiles',

    )

    MIDDLEWARE_CLASSES = (

        'django.contrib.sessions.middleware.SessionMiddleware',

        'django.middleware.common.CommonMiddleware',

        'django.middleware.csrf.CsrfViewMiddleware',

        'django.contrib.auth.middleware.AuthenticationMiddleware',

        'django.contrib.messages.middleware.MessageMiddleware',

        'django.middleware.clickjacking.XFrameOptionsMiddleware',

    )

    ROOT_URLCONF = 'eXample.urls'

    WSGI_APPLICATION = 'eXample.wsgi.application'

    DATABASES = {

        'default': {

            'ENGINE': 'django.db.backends.sqlite3',

            'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),

        }

    }

    LANGUAGE_CODE = 'en-us'

    TIME_ZONE = 'UTC'

    USE_I18N = True

    USE_L10N = True

    USE_TZ = True

    STATIC_URL = '/static/'

  • 相关阅读:
    Web前端性能优化-资源合并与压缩
    关于 ES5 & ES6 数组遍历的方法
    代码优化
    解决 Vue 刷新页面后 store 数据丢失的问题
    Lombok
    Dao 与 Dto
    物理删除与逻辑删除的区别
    Java 创建对象的几种方式
    SSM + SpringBoot 常用注解
    Json Web Token (JWT)
  • 原文地址:https://www.cnblogs.com/MrWho/p/3871324.html
Copyright © 2011-2022 走看看