Kaynağa Gözat

Move away from TDD book and make a notepad app

Benoît Hubert 7 yıl önce
ebeveyn
işleme
e16c11a8f4
5 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 1 1
      manage.py
  2. 0 0
      notepad/__init__.py
  3. 4 4
      superlists/settings.py
  4. 1 1
      superlists/urls.py
  5. 2 2
      superlists/wsgi.py

+ 1 - 1
manage.py

@@ -3,7 +3,7 @@ import os
 import sys
 
 if __name__ == "__main__":
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "superlists.settings")
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "notepad.settings")
     try:
         from django.core.management import execute_from_command_line
     except ImportError as exc:

superlists/__init__.py → notepad/__init__.py


+ 4 - 4
superlists/settings.py

@@ -1,5 +1,5 @@
 """
-Django settings for superlists project.
+Django settings for notepad project.
 
 Generated by 'django-admin startproject' using Django 2.0.2.
 
@@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
 
 # SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = '6$o2)ifxpla+any-ul1!qo$vh+h@(!mzgp^+_eu&j^3zjfv*ci'
+SECRET_KEY = '543-$@vk0oezb+q(kmo)!i9um%h6xw7(wua5!1b)osbk0id%bt'
 
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
@@ -49,7 +49,7 @@ MIDDLEWARE = [
     'django.middleware.clickjacking.XFrameOptionsMiddleware',
 ]
 
-ROOT_URLCONF = 'superlists.urls'
+ROOT_URLCONF = 'notepad.urls'
 
 TEMPLATES = [
     {
@@ -67,7 +67,7 @@ TEMPLATES = [
     },
 ]
 
-WSGI_APPLICATION = 'superlists.wsgi.application'
+WSGI_APPLICATION = 'notepad.wsgi.application'
 
 
 # Database

+ 1 - 1
superlists/urls.py

@@ -1,4 +1,4 @@
-"""superlists URL Configuration
+"""notepad URL Configuration
 
 The `urlpatterns` list routes URLs to views. For more information please see:
     https://docs.djangoproject.com/en/2.0/topics/http/urls/

+ 2 - 2
superlists/wsgi.py

@@ -1,5 +1,5 @@
 """
-WSGI config for superlists project.
+WSGI config for notepad project.
 
 It exposes the WSGI callable as a module-level variable named ``application``.
 
@@ -11,6 +11,6 @@ import os
 
 from django.core.wsgi import get_wsgi_application
 
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "superlists.settings")
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "notepad.settings")
 
 application = get_wsgi_application()