jiaweiqi 3 жил өмнө
parent
commit
a8a36aab29

+ 1 - 4
apps/customer/models.py

@@ -26,10 +26,7 @@ class Customer(models.Model):
         unique_together = [
             ('openid')
         ]
-        index_together = (
-            'name',
-            'tel',
-        )
+        index_together = ()
         default_permissions = ()
 
     @staticmethod

+ 5 - 3
car_net/settings.py

@@ -46,6 +46,8 @@ INSTALLED_APPS = [
     'apps.account',
     'apps.customer',
     'apps.log',
+    'apps.vehicle',
+    'apps.wechat',
     'apps.xgjsms',
 ]
 
@@ -106,7 +108,7 @@ TEMPLATES = [
     },
 ]
 
-WSGI_APPLICATION = 'net_car.wsgi.application'
+WSGI_APPLICATION = 'car_net.wsgi.application'
 
 
 # Database
@@ -115,9 +117,9 @@ WSGI_APPLICATION = 'net_car.wsgi.application'
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.mysql',
-        'NAME': 'net_car',
+        'NAME': 'car_net',
         'USER': 'root',
-        'PASSWORD': 'lyh123',
+        'PASSWORD': '123456',
         'HOST': '127.0.0.1',
         'PORT': 3306,
     }

+ 1 - 1
car_net/wsgi.py

@@ -11,6 +11,6 @@ import os
 
 from django.core.wsgi import get_wsgi_application
 
-os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'net_car.settings')
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'car_net.settings')
 
 application = get_wsgi_application()

+ 1 - 1
manage.py

@@ -5,7 +5,7 @@ import sys
 
 
 def main():
-    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'net_car.settings')
+    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'car_net.settings')
     try:
         from django.core.management import execute_from_command_line
     except ImportError as exc: