소스 검색

'添加了Django示例代码'

jackfrued 7 년 전
부모
커밋
b265f0c833
100개의 변경된 파일337개의 추가작업 그리고 0개의 파일을 삭제
  1. BIN
      Day21-30/code/demo01/img/Thumbs.db
  2. BIN
      Day21-30/code/demo02/img/Thumbs.db
  3. 0 0
      Day41-55/code/car/car/__init__.py
  4. 0 0
      Day41-55/code/car/car/settings.py
  5. 0 0
      Day41-55/code/car/car/urls.py
  6. 0 0
      Day41-55/code/car/car/wsgi.py
  7. 0 0
      Day41-55/code/car/manage.py
  8. 0 0
      Day41-55/code/car/search/__init__.py
  9. 0 0
      Day41-55/code/car/search/admin.py
  10. 0 0
      Day41-55/code/car/search/apps.py
  11. 0 0
      Day41-55/code/car/search/migrations/0001_initial.py
  12. 0 0
      Day41-55/code/car/search/migrations/0002_auto_20180524_1420.py
  13. 0 0
      Day41-55/code/car/search/migrations/__init__.py
  14. 0 0
      Day41-55/code/car/search/models.py
  15. 0 0
      Day41-55/code/car/search/tests.py
  16. 0 0
      Day41-55/code/car/search/views.py
  17. 0 0
      Day41-55/code/car/static/images/icon-no.svg
  18. 0 0
      Day41-55/code/car/static/images/icon-yes.svg
  19. 0 0
      Day41-55/code/car/templates/add.html
  20. 0 0
      Day41-55/code/car/templates/search.html
  21. 0 0
      Day41-55/code/car/templates/search2.html
  22. 0 0
      Day41-55/code/hellodjango/db.sqlite3
  23. 0 0
      Day41-55/code/hellodjango/demo/__init__.py
  24. 12 0
      Day41-55/code/hellodjango/demo/admin.py
  25. 5 0
      Day41-55/code/hellodjango/demo/apps.py
  26. 27 0
      Day41-55/code/hellodjango/demo/migrations/0001_initial.py
  27. 18 0
      Day41-55/code/hellodjango/demo/migrations/0002_teacher_photo.py
  28. 17 0
      Day41-55/code/hellodjango/demo/migrations/0003_auto_20180703_1355.py
  29. 21 0
      Day41-55/code/hellodjango/demo/migrations/0004_auto_20180703_1412.py
  30. 0 0
      Day41-55/code/hellodjango/demo/migrations/__init__.py
  31. 17 0
      Day41-55/code/hellodjango/demo/models.py
  32. 0 0
      Day41-55/code/hellodjango/demo/tests.py
  33. 9 0
      Day41-55/code/hellodjango/demo/views.py
  34. 0 0
      Day41-55/code/hellodjango/hellodjango/__init__.py
  35. 127 0
      Day41-55/code/hellodjango/hellodjango/settings.py
  36. 24 0
      Day41-55/code/hellodjango/hellodjango/urls.py
  37. 16 0
      Day41-55/code/hellodjango/hellodjango/wsgi.py
  38. 15 0
      Day41-55/code/hellodjango/manage.py
  39. BIN
      Day41-55/code/hellodjango/static/images/andrew.png
  40. BIN
      Day41-55/code/hellodjango/static/images/dennis.png
  41. BIN
      Day41-55/code/hellodjango/static/images/ken.png
  42. BIN
      Day41-55/code/hellodjango/static/images/linus.png
  43. 23 0
      Day41-55/code/hellodjango/templates/demo/home.html
  44. 0 0
      Day41-55/code/oa/hrs/__init__.py
  45. 0 0
      Day41-55/code/oa/hrs/admin.py
  46. 0 0
      Day41-55/code/oa/hrs/apps.py
  47. 0 0
      Day41-55/code/oa/hrs/migrations/0001_initial.py
  48. 0 0
      Day41-55/code/oa/hrs/migrations/0002_auto_20180523_0923.py
  49. 0 0
      Day41-55/code/oa/hrs/migrations/0003_auto_20180524_1646.py
  50. 0 0
      Day41-55/code/oa/hrs/migrations/__init__.py
  51. 0 0
      Day41-55/code/oa/hrs/models.py
  52. 0 0
      Day41-55/code/oa/hrs/tests.py
  53. 0 0
      Day41-55/code/oa/hrs/urls.py
  54. 0 0
      Day41-55/code/oa/hrs/views.py
  55. 0 0
      Day41-55/code/oa/manage.py
  56. 0 0
      Day41-55/code/oa/oa/__init__.py
  57. 0 0
      Day41-55/code/oa/oa/settings.py
  58. 0 0
      Day41-55/code/oa/oa/urls.py
  59. 0 0
      Day41-55/code/oa/oa/wsgi.py
  60. 0 0
      Day41-55/code/oa/static/css/bootstrap.min.css
  61. 0 0
      Day41-55/code/oa/static/images/mm.jpg
  62. 0 0
      Day41-55/code/oa/static/js/bootstrap.min.js
  63. 0 0
      Day41-55/code/oa/static/js/jquery.min.js
  64. 0 0
      Day41-55/code/oa/templates/dept.html
  65. 0 0
      Day41-55/code/oa/templates/emp.html
  66. 0 0
      Day41-55/code/oa/templates/index.html
  67. 0 0
      Day41-55/code/shop/cart/__init__.py
  68. 0 0
      Day41-55/code/shop/cart/admin.py
  69. 0 0
      Day41-55/code/shop/cart/apps.py
  70. 0 0
      Day41-55/code/shop/cart/migrations/0001_initial.py
  71. 0 0
      Day41-55/code/shop/cart/migrations/__init__.py
  72. 0 0
      Day41-55/code/shop/cart/models.py
  73. 0 0
      Day41-55/code/shop/cart/tests.py
  74. 0 0
      Day41-55/code/shop/cart/views.py
  75. 0 0
      Day41-55/code/shop/manage.py
  76. 3 0
      Day41-55/code/shop/shop/__init__.py
  77. 0 0
      Day41-55/code/shop/shop/settings.py
  78. 0 0
      Day41-55/code/shop/shop/urls.py
  79. 0 0
      Day41-55/code/shop/shop/wsgi.py
  80. 0 0
      Day41-55/code/shop/static/images/dolbee.jpg
  81. 0 0
      Day41-55/code/shop/static/images/lay.jpg
  82. 0 0
      Day41-55/code/shop/static/images/noodle.jpg
  83. 0 0
      Day41-55/code/shop/static/images/oil.jpg
  84. 0 0
      Day41-55/code/shop/static/images/wang.jpg
  85. 0 0
      Day41-55/code/shop/static/images/wine.jpg
  86. 0 0
      Day41-55/code/shop/templates/cart.html
  87. 0 0
      Day41-55/code/shop/templates/goods.html
  88. 0 0
      Day41-55/code/shop_origin/cart/__init__.py
  89. 0 0
      Day41-55/code/shop_origin/cart/admin.py
  90. 0 0
      Day41-55/code/shop_origin/cart/apps.py
  91. 0 0
      Day41-55/code/shop_origin/cart/migrations/0001_initial.py
  92. 0 0
      Day41-55/code/shop_origin/cart/migrations/__init__.py
  93. 0 0
      Day41-55/code/shop_origin/cart/models.py
  94. 3 0
      Day41-55/code/shop_origin/cart/tests.py
  95. 0 0
      Day41-55/code/shop_origin/cart/views.py
  96. 0 0
      Day41-55/code/shop_origin/manage.py
  97. 0 0
      Day41-55/code/shop_origin/shop/__init__.py
  98. 0 0
      Day41-55/code/shop_origin/shop/settings.py
  99. 0 0
      Day41-55/code/shop_origin/shop/urls.py
  100. 0 0
      Day41-55/code/shop_origin/shop/wsgi.py

BIN
Day21-30/code/demo01/img/Thumbs.db


BIN
Day21-30/code/demo02/img/Thumbs.db


+ 0 - 0
Day41-55/car/car/__init__.py → Day41-55/code/car/car/__init__.py


+ 0 - 0
Day41-55/car/car/settings.py → Day41-55/code/car/car/settings.py


+ 0 - 0
Day41-55/car/car/urls.py → Day41-55/code/car/car/urls.py


+ 0 - 0
Day41-55/car/car/wsgi.py → Day41-55/code/car/car/wsgi.py


+ 0 - 0
Day41-55/car/manage.py → Day41-55/code/car/manage.py


+ 0 - 0
Day41-55/car/search/__init__.py → Day41-55/code/car/search/__init__.py


+ 0 - 0
Day41-55/car/search/admin.py → Day41-55/code/car/search/admin.py


+ 0 - 0
Day41-55/car/search/apps.py → Day41-55/code/car/search/apps.py


+ 0 - 0
Day41-55/car/search/migrations/0001_initial.py → Day41-55/code/car/search/migrations/0001_initial.py


+ 0 - 0
Day41-55/car/search/migrations/0002_auto_20180524_1420.py → Day41-55/code/car/search/migrations/0002_auto_20180524_1420.py


+ 0 - 0
Day41-55/car/search/migrations/__init__.py → Day41-55/code/car/search/migrations/__init__.py


+ 0 - 0
Day41-55/car/search/models.py → Day41-55/code/car/search/models.py


+ 0 - 0
Day41-55/car/search/tests.py → Day41-55/code/car/search/tests.py


+ 0 - 0
Day41-55/car/search/views.py → Day41-55/code/car/search/views.py


+ 0 - 0
Day41-55/car/static/images/icon-no.svg → Day41-55/code/car/static/images/icon-no.svg


+ 0 - 0
Day41-55/car/static/images/icon-yes.svg → Day41-55/code/car/static/images/icon-yes.svg


+ 0 - 0
Day41-55/car/templates/add.html → Day41-55/code/car/templates/add.html


+ 0 - 0
Day41-55/car/templates/search.html → Day41-55/code/car/templates/search.html


+ 0 - 0
Day41-55/car/templates/search2.html → Day41-55/code/car/templates/search2.html


+ 0 - 0
Day41-55/oa/hrs/__init__.py → Day41-55/code/hellodjango/db.sqlite3


+ 0 - 0
Day41-55/oa/hrs/migrations/__init__.py → Day41-55/code/hellodjango/demo/__init__.py


+ 12 - 0
Day41-55/code/hellodjango/demo/admin.py

@@ -0,0 +1,12 @@
+from django.contrib import admin
+
+from demo.models import Teacher
+
+
+class TeacherAdmin(admin.ModelAdmin):
+    list_display = ('no', 'name', 'job', 'intro', 'motto')
+    search_fields = ('name', 'intro')
+    ordering = ('no', )
+
+
+admin.site.register(Teacher, TeacherAdmin)

+ 5 - 0
Day41-55/code/hellodjango/demo/apps.py

@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class DemoConfig(AppConfig):
+    name = 'demo'

+ 27 - 0
Day41-55/code/hellodjango/demo/migrations/0001_initial.py

@@ -0,0 +1,27 @@
+# Generated by Django 2.0.6 on 2018-07-03 02:20
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    initial = True
+
+    dependencies = [
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Teacher',
+            fields=[
+                ('no', models.AutoField(db_column='tno', primary_key=True, serialize=False)),
+                ('name', models.CharField(db_column='tname', max_length=20)),
+                ('job', models.CharField(db_column='tjob', max_length=10)),
+                ('intro', models.CharField(db_column='tintro', max_length=1023)),
+                ('motto', models.CharField(db_column='tmotto', max_length=255)),
+            ],
+            options={
+                'db_table': 'tb_teacher',
+            },
+        ),
+    ]

+ 18 - 0
Day41-55/code/hellodjango/demo/migrations/0002_teacher_photo.py

@@ -0,0 +1,18 @@
+# Generated by Django 2.0.6 on 2018-07-03 03:42
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('demo', '0001_initial'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='teacher',
+            name='photo',
+            field=models.CharField(db_column='tphoto', max_length=511, null=True),
+        ),
+    ]

+ 17 - 0
Day41-55/code/hellodjango/demo/migrations/0003_auto_20180703_1355.py

@@ -0,0 +1,17 @@
+# Generated by Django 2.0.6 on 2018-07-03 05:55
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('demo', '0002_teacher_photo'),
+    ]
+
+    operations = [
+        migrations.AlterModelTable(
+            name='teacher',
+            table=None,
+        ),
+    ]

+ 21 - 0
Day41-55/code/hellodjango/demo/migrations/0004_auto_20180703_1412.py

@@ -0,0 +1,21 @@
+# Generated by Django 2.0.6 on 2018-07-03 06:12
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('demo', '0003_auto_20180703_1355'),
+    ]
+
+    operations = [
+        migrations.AlterModelOptions(
+            name='teacher',
+            options={'ordering': ('-no',)},
+        ),
+        migrations.AlterModelTable(
+            name='teacher',
+            table='tb_teacher',
+        ),
+    ]

+ 0 - 0
Day41-55/shop/cart/__init__.py → Day41-55/code/hellodjango/demo/migrations/__init__.py


+ 17 - 0
Day41-55/code/hellodjango/demo/models.py

@@ -0,0 +1,17 @@
+from django.db import models
+
+# Django框架中包含了ORM(对象关系映射)框架
+# ORM可以帮助我们完成对象模型到关系模型的双向转换
+
+
+class Teacher(models.Model):
+    no = models.AutoField(primary_key=True, db_column='tno', verbose_name='编号')
+    name = models.CharField(max_length=20, db_column='tname', verbose_name='姓名')
+    job = models.CharField(max_length=10, db_column='tjob', verbose_name='职位')
+    intro = models.CharField(max_length=1023, db_column='tintro', verbose_name='简介')
+    motto = models.CharField(max_length=255, db_column='tmotto', verbose_name='教学理念')
+    photo = models.CharField(max_length=511, db_column='tphoto', null=True)
+
+    class Meta(object):
+        db_table = 'tb_teacher'
+        ordering = ('-no', )

+ 0 - 0
Day41-55/oa/hrs/tests.py → Day41-55/code/hellodjango/demo/tests.py


+ 9 - 0
Day41-55/code/hellodjango/demo/views.py

@@ -0,0 +1,9 @@
+from django.shortcuts import render
+
+from demo.models import Teacher
+
+
+def home(request):
+    # 通过ORM框架实现持久化操作CRUD
+    ctx = {'teachers_list': list(Teacher.objects.all())}
+    return render(request, 'demo/home.html', ctx)

+ 0 - 0
Day41-55/oa/oa/__init__.py → Day41-55/code/hellodjango/hellodjango/__init__.py


+ 127 - 0
Day41-55/code/hellodjango/hellodjango/settings.py

@@ -0,0 +1,127 @@
+"""
+Django settings for hellodjango project.
+
+Generated by 'django-admin startproject' using Django 2.0.6.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/2.0/topics/settings/
+
+For the full list of settings and their values, see
+https://docs.djangoproject.com/en/2.0/ref/settings/
+"""
+
+import os
+
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+
+# Quick-start development settings - unsuitable for production
+# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = 'j*jr(3-it8$lrp&u@e^!f%8!ws*=jx)ga*ln%l6aqftu-uy1=1'
+
+# SECURITY WARNING: don't run with debug turned on in production!
+DEBUG = True
+
+ALLOWED_HOSTS = []
+
+
+# Application definition
+
+INSTALLED_APPS = [
+    'django.contrib.admin',
+    'django.contrib.auth',
+    'django.contrib.contenttypes',
+    'django.contrib.sessions',
+    'django.contrib.messages',
+    'django.contrib.staticfiles',
+    'demo',
+]
+
+MIDDLEWARE = [
+    'django.middleware.security.SecurityMiddleware',
+    '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 = 'hellodjango.urls'
+
+TEMPLATES = [
+    {
+        'BACKEND': 'django.template.backends.django.DjangoTemplates',
+        'DIRS': [os.path.join(BASE_DIR, 'templates')],
+        'APP_DIRS': True,
+        'OPTIONS': {
+            'context_processors': [
+                'django.template.context_processors.debug',
+                'django.template.context_processors.request',
+                'django.contrib.auth.context_processors.auth',
+                'django.contrib.messages.context_processors.messages',
+            ],
+        },
+    },
+]
+
+WSGI_APPLICATION = 'hellodjango.wsgi.application'
+
+
+# Database
+# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
+
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.mysql',
+        'NAME': 'demo',
+        'HOST': '120.77.222.217',
+        'PORT': 3306,
+        'USER': 'root',
+        'PASSWORD': '123456',
+    }
+}
+
+
+# Password validation
+# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
+
+AUTH_PASSWORD_VALIDATORS = [
+    {
+        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
+    },
+    {
+        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
+    },
+    {
+        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
+    },
+    {
+        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
+    },
+]
+
+
+# Internationalization
+# https://docs.djangoproject.com/en/2.0/topics/i18n/
+
+LANGUAGE_CODE = 'zh-hans'
+
+TIME_ZONE = 'Asia/Chongqing'
+
+# internationalization
+USE_I18N = True
+
+# localization
+USE_L10N = True
+
+USE_TZ = True
+
+
+# Static files (CSS, JavaScript, Images)
+# https://docs.djangoproject.com/en/2.0/howto/static-files/
+STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
+STATIC_URL = '/static/'

+ 24 - 0
Day41-55/code/hellodjango/hellodjango/urls.py

@@ -0,0 +1,24 @@
+"""hellodjango URL Configuration
+
+The `urlpatterns` list routes URLs to views. For more information please see:
+    https://docs.djangoproject.com/en/2.0/topics/http/urls/
+Examples:
+Function views
+    1. Add an import:  from my_app import views
+    2. Add a URL to urlpatterns:  path('', views.home, name='home')
+Class-based views
+    1. Add an import:  from other_app.views import Home
+    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
+Including another URLconf
+    1. Import the include() function: from django.urls import include, path
+    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
+"""
+from django.contrib import admin
+from django.urls import path
+
+from demo import views
+
+urlpatterns = [
+    path('', views.home),
+    path('admin/', admin.site.urls),
+]

+ 16 - 0
Day41-55/code/hellodjango/hellodjango/wsgi.py

@@ -0,0 +1,16 @@
+"""
+WSGI config for hellodjango project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
+"""
+
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hellodjango.settings")
+
+application = get_wsgi_application()

+ 15 - 0
Day41-55/code/hellodjango/manage.py

@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+import os
+import sys
+
+if __name__ == "__main__":
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hellodjango.settings")
+    try:
+        from django.core.management import execute_from_command_line
+    except ImportError as exc:
+        raise ImportError(
+            "Couldn't import Django. Are you sure it's installed and "
+            "available on your PYTHONPATH environment variable? Did you "
+            "forget to activate a virtual environment?"
+        ) from exc
+    execute_from_command_line(sys.argv)

BIN
Day41-55/code/hellodjango/static/images/andrew.png


BIN
Day41-55/code/hellodjango/static/images/dennis.png


BIN
Day41-55/code/hellodjango/static/images/ken.png


BIN
Day41-55/code/hellodjango/static/images/linus.png


+ 23 - 0
Day41-55/code/hellodjango/templates/demo/home.html

@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+{% load staticfiles %}
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>讲师信息</title>
+</head>
+<body>
+    {% for x in teachers_list %}
+        <h1>{{ x.name }}老师 - {{ x.job }}</h1>
+        <p><strong>讲师简介</strong></p>
+        <p>{{ x.intro }}</p>
+        <p><strong>教学理念</strong></p>
+        <p>{{ x.motto }}</p>
+        <p>
+            {% if x.photo %}
+            <img src="{% static x.photo %}">
+            {% endif %}
+        </p>
+        <hr>
+    {% endfor %}
+</body>
+</html>

+ 0 - 0
Day41-55/shop/cart/migrations/__init__.py → Day41-55/code/oa/hrs/__init__.py


+ 0 - 0
Day41-55/oa/hrs/admin.py → Day41-55/code/oa/hrs/admin.py


+ 0 - 0
Day41-55/oa/hrs/apps.py → Day41-55/code/oa/hrs/apps.py


+ 0 - 0
Day41-55/oa/hrs/migrations/0001_initial.py → Day41-55/code/oa/hrs/migrations/0001_initial.py


+ 0 - 0
Day41-55/oa/hrs/migrations/0002_auto_20180523_0923.py → Day41-55/code/oa/hrs/migrations/0002_auto_20180523_0923.py


+ 0 - 0
Day41-55/oa/hrs/migrations/0003_auto_20180524_1646.py → Day41-55/code/oa/hrs/migrations/0003_auto_20180524_1646.py


+ 0 - 0
Day41-55/shop_origin/cart/__init__.py → Day41-55/code/oa/hrs/migrations/__init__.py


+ 0 - 0
Day41-55/oa/hrs/models.py → Day41-55/code/oa/hrs/models.py


+ 0 - 0
Day41-55/shop/cart/tests.py → Day41-55/code/oa/hrs/tests.py


+ 0 - 0
Day41-55/oa/hrs/urls.py → Day41-55/code/oa/hrs/urls.py


+ 0 - 0
Day41-55/oa/hrs/views.py → Day41-55/code/oa/hrs/views.py


+ 0 - 0
Day41-55/oa/manage.py → Day41-55/code/oa/manage.py


+ 0 - 0
Day41-55/shop/shop/__init__.py → Day41-55/code/oa/oa/__init__.py


+ 0 - 0
Day41-55/oa/oa/settings.py → Day41-55/code/oa/oa/settings.py


+ 0 - 0
Day41-55/oa/oa/urls.py → Day41-55/code/oa/oa/urls.py


+ 0 - 0
Day41-55/oa/oa/wsgi.py → Day41-55/code/oa/oa/wsgi.py


+ 0 - 0
Day41-55/oa/static/css/bootstrap.min.css → Day41-55/code/oa/static/css/bootstrap.min.css


+ 0 - 0
Day41-55/oa/static/images/mm.jpg → Day41-55/code/oa/static/images/mm.jpg


+ 0 - 0
Day41-55/oa/static/js/bootstrap.min.js → Day41-55/code/oa/static/js/bootstrap.min.js


+ 0 - 0
Day41-55/oa/static/js/jquery.min.js → Day41-55/code/oa/static/js/jquery.min.js


+ 0 - 0
Day41-55/oa/templates/dept.html → Day41-55/code/oa/templates/dept.html


+ 0 - 0
Day41-55/oa/templates/emp.html → Day41-55/code/oa/templates/emp.html


+ 0 - 0
Day41-55/oa/templates/index.html → Day41-55/code/oa/templates/index.html


+ 0 - 0
Day41-55/shop_origin/cart/migrations/__init__.py → Day41-55/code/shop/cart/__init__.py


+ 0 - 0
Day41-55/shop/cart/admin.py → Day41-55/code/shop/cart/admin.py


+ 0 - 0
Day41-55/shop/cart/apps.py → Day41-55/code/shop/cart/apps.py


+ 0 - 0
Day41-55/shop/cart/migrations/0001_initial.py → Day41-55/code/shop/cart/migrations/0001_initial.py


+ 0 - 0
Day41-55/code/shop/cart/migrations/__init__.py


+ 0 - 0
Day41-55/shop/cart/models.py → Day41-55/code/shop/cart/models.py


+ 0 - 0
Day41-55/shop_origin/cart/tests.py → Day41-55/code/shop/cart/tests.py


+ 0 - 0
Day41-55/shop/cart/views.py → Day41-55/code/shop/cart/views.py


+ 0 - 0
Day41-55/shop/manage.py → Day41-55/code/shop/manage.py


+ 3 - 0
Day41-55/code/shop/shop/__init__.py

@@ -0,0 +1,3 @@
+import pymysql
+
+pymysql.install_as_MySQLdb()

+ 0 - 0
Day41-55/shop/shop/settings.py → Day41-55/code/shop/shop/settings.py


+ 0 - 0
Day41-55/shop/shop/urls.py → Day41-55/code/shop/shop/urls.py


+ 0 - 0
Day41-55/shop/shop/wsgi.py → Day41-55/code/shop/shop/wsgi.py


+ 0 - 0
Day41-55/shop/static/images/dolbee.jpg → Day41-55/code/shop/static/images/dolbee.jpg


+ 0 - 0
Day41-55/shop/static/images/lay.jpg → Day41-55/code/shop/static/images/lay.jpg


+ 0 - 0
Day41-55/shop/static/images/noodle.jpg → Day41-55/code/shop/static/images/noodle.jpg


+ 0 - 0
Day41-55/shop/static/images/oil.jpg → Day41-55/code/shop/static/images/oil.jpg


+ 0 - 0
Day41-55/shop/static/images/wang.jpg → Day41-55/code/shop/static/images/wang.jpg


+ 0 - 0
Day41-55/shop/static/images/wine.jpg → Day41-55/code/shop/static/images/wine.jpg


+ 0 - 0
Day41-55/shop/templates/cart.html → Day41-55/code/shop/templates/cart.html


+ 0 - 0
Day41-55/shop/templates/goods.html → Day41-55/code/shop/templates/goods.html


+ 0 - 0
Day41-55/code/shop_origin/cart/__init__.py


+ 0 - 0
Day41-55/shop_origin/cart/admin.py → Day41-55/code/shop_origin/cart/admin.py


+ 0 - 0
Day41-55/shop_origin/cart/apps.py → Day41-55/code/shop_origin/cart/apps.py


+ 0 - 0
Day41-55/shop_origin/cart/migrations/0001_initial.py → Day41-55/code/shop_origin/cart/migrations/0001_initial.py


+ 0 - 0
Day41-55/code/shop_origin/cart/migrations/__init__.py


+ 0 - 0
Day41-55/shop_origin/cart/models.py → Day41-55/code/shop_origin/cart/models.py


+ 3 - 0
Day41-55/code/shop_origin/cart/tests.py

@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.

+ 0 - 0
Day41-55/shop_origin/cart/views.py → Day41-55/code/shop_origin/cart/views.py


+ 0 - 0
Day41-55/shop_origin/manage.py → Day41-55/code/shop_origin/manage.py


+ 0 - 0
Day41-55/shop_origin/shop/__init__.py → Day41-55/code/shop_origin/shop/__init__.py


+ 0 - 0
Day41-55/shop_origin/shop/settings.py → Day41-55/code/shop_origin/shop/settings.py


+ 0 - 0
Day41-55/shop_origin/shop/urls.py → Day41-55/code/shop_origin/shop/urls.py


+ 0 - 0
Day41-55/shop_origin/shop/wsgi.py → Day41-55/code/shop_origin/shop/wsgi.py


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.