├── Utils
├── __init__.py
├── common.pyc
├── __init__.pyc
└── common.py
├── Account
├── __init__.py
├── migrations
│ ├── __init__.py
│ ├── __init__.pyc
│ ├── 0001_initial.pyc
│ └── 0001_initial.py
├── tests.py
├── urls.pyc
├── admin.py
├── admin.pyc
├── models.pyc
├── views.pyc
├── __init__.pyc
├── serializers.pyc
├── apps.py
├── urls.py
├── models.py
├── serializers.py
└── views.py
├── TLChatServer
├── __init__.py
├── urls.pyc
├── wsgi.pyc
├── __init__.pyc
├── settings.pyc
├── wsgi.py
├── urls.py
└── settings.py
├── db.sqlite3
├── .idea
├── vcs.xml
├── inspectionProfiles
│ ├── profiles_settings.xml
│ └── Project_Default.xml
├── dataSources.ids
├── modules.xml
├── dataSources.local.xml
├── dataSources.xml
├── misc.xml
├── TLChatServer.iml
└── workspace.xml
└── manage.py
/Utils/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Account/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/TLChatServer/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Account/migrations/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/db.sqlite3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/db.sqlite3
--------------------------------------------------------------------------------
/Account/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/Account/urls.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/urls.pyc
--------------------------------------------------------------------------------
/Utils/common.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Utils/common.pyc
--------------------------------------------------------------------------------
/Account/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 |
--------------------------------------------------------------------------------
/Account/admin.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/admin.pyc
--------------------------------------------------------------------------------
/Account/models.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/models.pyc
--------------------------------------------------------------------------------
/Account/views.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/views.pyc
--------------------------------------------------------------------------------
/Utils/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Utils/__init__.pyc
--------------------------------------------------------------------------------
/Account/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/__init__.pyc
--------------------------------------------------------------------------------
/TLChatServer/urls.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/TLChatServer/urls.pyc
--------------------------------------------------------------------------------
/TLChatServer/wsgi.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/TLChatServer/wsgi.pyc
--------------------------------------------------------------------------------
/Account/serializers.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/serializers.pyc
--------------------------------------------------------------------------------
/TLChatServer/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/TLChatServer/__init__.pyc
--------------------------------------------------------------------------------
/TLChatServer/settings.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/TLChatServer/settings.pyc
--------------------------------------------------------------------------------
/Account/migrations/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/migrations/__init__.pyc
--------------------------------------------------------------------------------
/Account/migrations/0001_initial.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tbl00c/TLChatServer/HEAD/Account/migrations/0001_initial.pyc
--------------------------------------------------------------------------------
/Account/apps.py:
--------------------------------------------------------------------------------
1 | from __future__ import unicode_literals
2 |
3 | from django.apps import AppConfig
4 |
5 |
6 | class AccountConfig(AppConfig):
7 | name = 'Account'
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Account/urls.py:
--------------------------------------------------------------------------------
1 | from django.conf.urls import url
2 | from .views import UserLoginAPIView, UserRegisterAPIView, getToken
3 |
4 | urlpatterns = [
5 | url(r'^login/$', UserLoginAPIView.as_view()),
6 | url(r'^register/$', UserRegisterAPIView.as_view()),
7 | url(r'^gettoken/$', getToken),
8 | ]
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/dataSources.ids:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/dataSources.local.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | false
6 | true
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Utils/common.py:
--------------------------------------------------------------------------------
1 | from rest_framework.response import Response
2 |
3 | def enum(**enums):
4 | return type('Enum', (), enums)
5 |
6 | global ERROR_CODE
7 | ERROR_CODE = enum(FAILED=-1, AUTH_ERROR=-8, SERIALIZER_ERROR=-9)
8 |
9 | def success_response(data):
10 | return Response({'status': '1', 'content': data})
11 |
12 | def failure_response(errorCode, data):
13 | return Response({'status': str(errorCode), 'content':data})
--------------------------------------------------------------------------------
/Account/models.py:
--------------------------------------------------------------------------------
1 | #coding=utf-8
2 | from django.db import models
3 | from django.contrib.auth.models import AbstractUser
4 |
5 | class User(AbstractUser):
6 | phoneNumber = models.CharField(max_length=11)
7 | avatar = models.CharField(max_length=200, blank=True, null=True)
8 |
9 | class Meta:
10 | db_table = "user"
11 |
12 |
13 | class UserPermission(models.Model):
14 | user = models.ForeignKey(User, related_name="permission")
--------------------------------------------------------------------------------
/TLChatServer/wsgi.py:
--------------------------------------------------------------------------------
1 | """
2 | WSGI config for TLChatServer project.
3 |
4 | It exposes the WSGI callable as a module-level variable named ``application``.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
8 | """
9 |
10 | import os
11 |
12 | from django.core.wsgi import get_wsgi_application
13 |
14 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TLChatServer.settings")
15 |
16 | application = get_wsgi_application()
17 |
--------------------------------------------------------------------------------
/Account/serializers.py:
--------------------------------------------------------------------------------
1 | #coding=utf-8
2 | from rest_framework import serializers
3 | from .models import User
4 |
5 | class UserLoginSerializer(serializers.Serializer):
6 | phoneNumber = serializers.CharField(max_length=20)
7 | password = serializers.CharField(max_length=200)
8 |
9 | class UserRegisterSerializer(serializers.Serializer):
10 | phoneNumber = serializers.CharField(max_length=20)
11 | password = serializers.CharField(max_length=200)
12 |
13 |
14 | class UserDetailSerializer(serializers.ModelSerializer):
15 | class Meta:
16 | model = User
17 | fields = ('id', 'phoneNumber')
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/.idea/dataSources.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | sqlite.xerial
6 | true
7 | true
8 | $PROJECT_DIR$/TLChatServer/settings.py
9 | org.sqlite.JDBC
10 | jdbc:sqlite:$PROJECT_DIR$/db.sqlite3
11 |
12 | com.intellij.database.plan.ExplainPlanProvider.NullExplainPlanProvider
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | import os
3 | import sys
4 |
5 | if __name__ == "__main__":
6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TLChatServer.settings")
7 | try:
8 | from django.core.management import execute_from_command_line
9 | except ImportError:
10 | # The above import may fail for some other reason. Ensure that the
11 | # issue is really that Django is missing to avoid masking other
12 | # exceptions on Python 2.
13 | try:
14 | import django
15 | except ImportError:
16 | raise ImportError(
17 | "Couldn't import Django. Are you sure it's installed and "
18 | "available on your PYTHONPATH environment variable? Did you "
19 | "forget to activate a virtual environment?"
20 | )
21 | raise
22 | execute_from_command_line(sys.argv)
23 |
--------------------------------------------------------------------------------
/TLChatServer/urls.py:
--------------------------------------------------------------------------------
1 | """TLChatServer URL Configuration
2 |
3 | The `urlpatterns` list routes URLs to views. For more information please see:
4 | https://docs.djangoproject.com/en/1.10/topics/http/urls/
5 | Examples:
6 | Function views
7 | 1. Add an import: from my_app import views
8 | 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
9 | Class-based views
10 | 1. Add an import: from other_app.views import Home
11 | 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
12 | Including another URLconf
13 | 1. Import the include() function: from django.conf.urls import url, include
14 | 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
15 | """
16 | from django.conf.urls import url, include
17 | from django.contrib import admin
18 |
19 | import Account
20 |
21 | urlpatterns = [
22 |
23 | url(r'^admin/', admin.site.urls),
24 | url(r'^account/', include('Account.urls')),
25 | ]
26 |
--------------------------------------------------------------------------------
/.idea/TLChatServer.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Account/views.py:
--------------------------------------------------------------------------------
1 | #coding=utf-8
2 | import hashlib
3 | import random
4 | import time
5 | import redis
6 |
7 | from django.shortcuts import render
8 | from django.conf import settings
9 | from django.contrib import auth
10 | from django.http import HttpResponse
11 |
12 | from rest_framework.views import APIView
13 | from rest_framework.request import Request
14 | from rest_framework.response import Response
15 |
16 | from Utils.common import success_response, failure_response, ERROR_CODE
17 |
18 | from .serializers import UserLoginSerializer, UserRegisterSerializer, UserDetailSerializer
19 | from .models import User, UserPermission
20 |
21 | # 根据uid产生token并存入缓存
22 | def generate_token_for_user(uid):
23 | token = hashlib.md5(str(int(time.time() * 1000) + random.randint(10000000, 99999999))).hexdigest()
24 | r = redis.Redis(host=settings.REDIS_HOST, db=settings.REDIS_USER_TOKEN_DB)
25 | r.set(uid, token)
26 | return token
27 |
28 | #test
29 | def getToken(request):
30 | uid = request.GET.get('uid')
31 | r = redis.Redis(host=settings.REDIS_HOST, db=settings.REDIS_USER_TOKEN_DB)
32 | token = r.get(uid)
33 | if token is not None:
34 | return HttpResponse(token)
35 | else:
36 | return HttpResponse(u'未获取到token,或token已过期')
37 |
38 | class UserLoginAPIView(APIView):
39 | def post(self, request):
40 | serializer = UserLoginSerializer(data=request.data)
41 | if serializer.is_valid():
42 | data = serializer.data
43 | user = auth.authenticate(username=data['phoneNumber'], password=data['password'])
44 | if user is not None:
45 | token = generate_token_for_user(uid=user.id)
46 | return success_response({u'uid': user.id, u'token': token})
47 | else:
48 | try:
49 | User.objects.get(username=data['phoneNumber'])
50 | return failure_response(ERROR_CODE.AUTH_ERROR, u'手机号与密码不匹配')
51 | except User.DoesNotExist:
52 | return failure_response(ERROR_CODE.AUTH_ERROR, u'该手机号未注册')
53 | else:
54 | return failure_response(ERROR_CODE.SERIALIZER_ERROR, str(serializer.errors))
55 |
56 | class UserRegisterAPIView(APIView):
57 | def post(self, request):
58 | serializer = UserRegisterSerializer(data=request.data)
59 | if serializer.is_valid():
60 | data = serializer.data
61 |
62 | # 检查用户名是否可用
63 | try:
64 | User.objects.get(username=data['phoneNumber'])
65 | return failure_response(ERROR_CODE.FAILED, u'改手机号已注册,请登录')
66 | except User.DoesNotExist:
67 | pass
68 |
69 | # 创建新用户
70 | user = User.objects.create(username = data['phoneNumber'])
71 | user.set_password(data['password'])
72 | user.phoneNumber = data['phoneNumber']
73 | user.save()
74 | UserPermission.objects.create(user=user)
75 |
76 | # 产生Token
77 | token = generate_token_for_user(uid=user.id)
78 | return success_response({u'token': token, u'user': UserDetailSerializer(user).data})
79 | else:
80 | return failure_response(ERROR_CODE.SERIALIZER_ERROR, str(serializer.errors))
81 |
82 | class UserDetailAPIView(APIView):
83 | def post(self, request):
84 | serializer = UserRegisterAPIView(data=request.data)
--------------------------------------------------------------------------------
/Account/migrations/0001_initial.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | # Generated by Django 1.10 on 2017-01-04 09:27
3 | from __future__ import unicode_literals
4 |
5 | from django.conf import settings
6 | import django.contrib.auth.models
7 | import django.contrib.auth.validators
8 | from django.db import migrations, models
9 | import django.db.models.deletion
10 | import django.utils.timezone
11 |
12 |
13 | class Migration(migrations.Migration):
14 |
15 | initial = True
16 |
17 | dependencies = [
18 | ('auth', '0008_alter_user_username_max_length'),
19 | ]
20 |
21 | operations = [
22 | migrations.CreateModel(
23 | name='UserPermission',
24 | fields=[
25 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
26 | ],
27 | ),
28 | migrations.CreateModel(
29 | name='User',
30 | fields=[
31 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
32 | ('password', models.CharField(max_length=128, verbose_name='password')),
33 | ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
34 | ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
35 | ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.ASCIIUsernameValidator()], verbose_name='username')),
36 | ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')),
37 | ('last_name', models.CharField(blank=True, max_length=30, verbose_name='last name')),
38 | ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
39 | ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
40 | ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
41 | ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
42 | ('phoneNumber', models.CharField(max_length=11)),
43 | ('avatar', models.CharField(blank=True, max_length=200, null=True)),
44 | ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
45 | ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
46 | ],
47 | options={
48 | 'db_table': 'user',
49 | },
50 | managers=[
51 | ('objects', django.contrib.auth.models.UserManager()),
52 | ],
53 | ),
54 | migrations.AddField(
55 | model_name='userpermission',
56 | name='user',
57 | field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='permission', to=settings.AUTH_USER_MODEL),
58 | ),
59 | ]
60 |
--------------------------------------------------------------------------------
/TLChatServer/settings.py:
--------------------------------------------------------------------------------
1 | """
2 | Django settings for TLChatServer project.
3 |
4 | Generated by 'django-admin startproject' using Django 1.10.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/1.10/topics/settings/
8 |
9 | For the full list of settings and their values, see
10 | https://docs.djangoproject.com/en/1.10/ref/settings/
11 | """
12 |
13 | import os
14 |
15 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17 |
18 |
19 | # Quick-start development settings - unsuitable for production
20 | # See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
21 |
22 | # SECURITY WARNING: keep the secret key used in production secret!
23 | SECRET_KEY = 'z-h_yxgpq$c-667q*+q73%ow00bsw0*0+gs&&2$!fik+akj49f'
24 |
25 | # SECURITY WARNING: don't run with debug turned on in production!
26 | DEBUG = True
27 |
28 | ALLOWED_HOSTS = [u'127.0.0.1',
29 | u'101.200.134.35']
30 |
31 |
32 | # Application definition
33 |
34 | INSTALLED_APPS = [
35 | 'django.contrib.admin',
36 | 'django.contrib.auth',
37 | 'django.contrib.contenttypes',
38 | 'django.contrib.sessions',
39 | 'django.contrib.messages',
40 | 'django.contrib.staticfiles',
41 | 'rest_framework',
42 |
43 | 'Account',
44 | ]
45 |
46 | MIDDLEWARE = [
47 | 'django.middleware.security.SecurityMiddleware',
48 | 'django.contrib.sessions.middleware.SessionMiddleware',
49 | 'django.middleware.common.CommonMiddleware',
50 | # 'django.middleware.csrf.CsrfViewMiddleware',
51 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
52 | # 'django.contrib.messages.middleware.MessageMiddleware',
53 | # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
54 | ]
55 |
56 | ROOT_URLCONF = 'TLChatServer.urls'
57 |
58 | TEMPLATES = [
59 | {
60 | 'BACKEND': 'django.template.backends.django.DjangoTemplates',
61 | 'DIRS': [],
62 | 'APP_DIRS': True,
63 | 'OPTIONS': {
64 | 'context_processors': [
65 | 'django.template.context_processors.debug',
66 | 'django.template.context_processors.request',
67 | 'django.contrib.auth.context_processors.auth',
68 | 'django.contrib.messages.context_processors.messages',
69 | ],
70 | },
71 | },
72 | ]
73 |
74 | WSGI_APPLICATION = 'TLChatServer.wsgi.application'
75 |
76 |
77 | # Database
78 | # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
79 |
80 | DATABASES = {
81 | 'default': {
82 | 'ENGINE': 'django.db.backends.sqlite3',
83 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
84 | }
85 | }
86 |
87 |
88 | # Password validation
89 | # https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
90 |
91 | AUTH_PASSWORD_VALIDATORS = [
92 | {
93 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
94 | },
95 | {
96 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
97 | },
98 | {
99 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
100 | },
101 | {
102 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
103 | },
104 | ]
105 |
106 |
107 | # Internationalization
108 | # https://docs.djangoproject.com/en/1.10/topics/i18n/
109 |
110 | LANGUAGE_CODE = 'en-us'
111 |
112 | TIME_ZONE = 'UTC'
113 |
114 | USE_I18N = True
115 |
116 | USE_L10N = True
117 |
118 | USE_TZ = True
119 |
120 |
121 | # Static files (CSS, JavaScript, Images)
122 | # https://docs.djangoproject.com/en/1.10/howto/static-files/
123 |
124 | STATIC_URL = '/static/'
125 |
126 | AUTH_USER_MODEL = 'Account.User'
127 |
128 | REDIS_USER_TOKEN_DB = 0
129 |
130 | REDIS_HOST = '127.0.0.1'
--------------------------------------------------------------------------------
/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 | true
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 | Django
160 |
161 |
162 | Python
163 |
164 |
165 |
166 |
167 | PyCompatibilityInspection
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
396 |
397 | project
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 |
412 |
413 |
414 |
415 |
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
430 |
431 |
432 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
449 |
450 |
451 |
452 |
453 |
454 |
455 |
456 |
457 |
458 |
459 |
460 |
461 |
462 |
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 |
474 |
475 |
476 |
477 |
478 |
479 |
480 |
481 |
482 |
483 |
484 |
485 |
486 |
487 |
488 |
489 |
490 |
491 |
492 |
493 |
494 |
495 |
496 |
497 |
498 |
499 |
500 |
501 |
502 |
503 |
504 |
505 |
506 |
507 |
508 |
509 |
510 |
511 |
512 |
513 |
514 |
515 |
516 |
517 |
518 |
519 |
520 |
521 |
522 |
523 |
524 |
525 |
526 |
527 |
528 |
529 |
530 |
531 |
532 |
533 |
534 |
535 |
536 |
537 |
538 |
539 |
540 |
541 |
542 |
543 |
544 |
545 |
546 |
547 |
548 |
549 |
550 |
551 |
552 |
553 |
554 |
555 |
556 |
557 |
558 |
559 | 1482506579416
560 |
561 |
562 | 1482506579416
563 |
564 |
565 |
566 |
567 |
568 |
569 |
570 |
571 |
572 |
573 |
574 |
575 |
576 |
577 |
578 |
579 |
580 |
581 |
582 |
583 |
584 |
585 |
586 |
587 |
588 |
589 |
590 |
591 |
592 |
593 |
594 |
595 |
596 |
597 |
598 |
599 |
600 |
601 |
602 |
603 |
604 |
605 |
606 |
607 |
608 |
609 |
610 |
611 |
612 |
613 |
614 |
615 |
616 |
617 |
618 |
619 |
620 |
621 |
622 |
623 |
624 |
625 |
626 |
627 |
628 |
629 |
630 |
631 |
632 |
633 |
634 |
635 |
636 |
637 |
638 |
639 |
640 |
641 |
642 |
643 |
644 |
645 |
646 |
647 |
648 |
649 |
650 |
651 |
652 |
653 |
654 |
655 |
656 |
657 |
658 |
659 |
660 |
661 |
662 |
663 |
664 |
665 |
666 |
667 |
668 |
669 |
670 |
671 |
672 |
673 |
674 |
675 |
676 |
677 |
678 |
679 |
680 |
681 |
682 |
683 |
684 |
685 |
686 |
687 |
688 |
689 |
690 |
691 |
692 |
693 |
694 |
695 |
696 |
697 |
698 |
699 |
700 |
701 |
702 |
703 |
704 |
705 |
706 |
707 |
708 |
709 |
710 |
711 |
712 |
713 |
714 |
715 |
716 |
717 |
718 |
719 |
720 |
721 |
722 |
723 |
724 |
725 |
726 |
727 |
728 |
729 |
730 |
731 |
732 |
733 |
734 |
735 |
736 |
737 |
738 |
739 |
740 |
741 |
742 |
743 |
744 |
745 |
746 |
747 |
748 |
749 |
750 |
751 |
752 |
753 |
754 |
755 |
756 |
757 |
758 |
759 |
760 |
761 |
762 |
763 |
764 |
765 |
766 |
767 |
768 |
769 |
770 |
771 |
772 |
773 |
774 |
775 |
776 |
777 |
778 |
779 |
780 |
781 |
782 |
783 |
784 |
785 |
786 |
787 |
788 |
789 |
790 |
791 |
792 |
793 |
794 |
795 |
796 |
797 |
798 |
799 |
800 |
801 |
802 |
803 |
804 |
805 |
806 |
807 |
808 |
809 |
810 |
811 |
812 |
813 |
814 |
815 |
816 |
817 |
818 |
819 |
820 |
821 |
822 |
823 |
824 |
825 |
826 |
827 |
828 |
829 |
830 |
831 |
832 |
833 |
834 |
835 |
836 |
837 |
838 |
839 |
840 |
841 |
842 |
843 |
844 |
845 |
846 |
847 |
848 |
849 |
850 |
851 |
852 |
853 |
854 |
855 |
856 |
857 |
858 |
859 |
860 |
861 |
862 |
863 |
864 |
865 |
866 |
867 |
868 |
869 |
870 |
871 |
872 |
873 |
874 |
875 |
876 |
877 |
878 |
879 |
880 |
881 |
882 |
883 |
884 |
885 |
886 |
887 |
888 |
889 |
890 |
891 |
892 |
893 |
894 |
895 |
896 |
897 |
898 |
899 |
900 |
901 |
902 |
903 |
904 |
905 |
906 |
907 |
908 |
909 |
910 |
911 |
912 |
913 |
914 |
915 |
916 |
917 |
918 |
919 |
920 |
921 |
922 |
923 |
924 |
925 |
926 |
927 |
928 |
929 |
930 |
931 |
932 |
933 |
934 |
935 |
936 |
937 |
938 |
939 |
940 |
941 |
942 |
943 |
944 |
945 |
946 |
947 |
948 |
949 |
950 |
951 |
952 |
953 |
954 |
955 |
956 |
957 |
958 |
959 |
960 |
961 |
962 |
963 |
964 |
965 |
966 |
967 |
968 |
969 |
970 |
971 |
972 |
973 |
974 |
975 |
976 |
977 |
978 |
979 |
980 |
981 |
982 |
983 |
984 |
985 |
986 |
987 |
988 |
989 |
990 |
991 |
--------------------------------------------------------------------------------