├── LICENSE ├── README.md ├── README.md~ ├── dnomovie.sql ├── dnomovie ├── __init__.py ├── __init__.pyc ├── celery.py ├── celery.pyc ├── decorators.py ├── settings.py ├── settings.pyc ├── urls.py ├── urls.pyc ├── wsgi.py └── wsgi.pyc ├── manage.py ├── media ├── img │ ├── p1014542496.jpg │ ├── p1021883305.jpg │ ├── p1023654037.jpg │ ├── p1024585648.jpg │ ├── p1043597424.jpg │ ├── p1075591188.jpg │ ├── p1127709095.jpg │ ├── p1140984198.jpg │ ├── p1145536386.jpg │ ├── p1157334208.jpg │ ├── p1159398311.jpg │ ├── p1181775734.jpg │ ├── p1204213484.jpg │ ├── p1224816276.jpg │ ├── p1233612794.jpg │ ├── p1244791866.jpg │ ├── p1272904657.jpg │ ├── p1280323646.jpg │ ├── p1283675359.jpg │ ├── p1305562621.jpg │ ├── p1312700628.jpg │ ├── p1341248319.jpg │ ├── p1344888983.jpg │ ├── p1351050722.jpg │ ├── p1353910572.jpg │ ├── p1354436051.jpg │ ├── p1374546770.jpg │ ├── p1374786017.jpg │ ├── p1421018669.jpg │ ├── p1446261379.jpg │ ├── p1451436171.jpg │ ├── p1454261925.jpg │ ├── p1465235231.jpg │ ├── p1473670352.jpg │ ├── p1486234122.jpg │ ├── p1486953897.jpg │ ├── p1505312273.jpg │ ├── p1505392928.jpg │ ├── p1512562287.jpg │ ├── p1528763106.jpg │ ├── p1546987967.jpg │ ├── p1576418852.jpg │ ├── p1593414327.jpg │ ├── p1596085504.jpg │ ├── p1597183981.jpg │ ├── p1601948450.jpg │ ├── p1613191025.jpg │ ├── p1637195618.jpg │ ├── p1665997400.jpg │ ├── p1706428744.jpg │ ├── p1735642656.jpg │ ├── p1784592701.jpg │ ├── p1805127697.jpg │ ├── p1808872109.jpg │ ├── p1816276065.jpg │ ├── p1820615077.jpg │ ├── p1832875827.jpg │ ├── p1864872647.jpg │ ├── p1867084027.jpg │ ├── p1910813120.jpg │ ├── p1910824340.jpg │ ├── p1910824951.jpg │ ├── p1910825503.jpg │ ├── p1910828286.jpg │ ├── p1910829638.jpg │ ├── p1910830216.jpg │ ├── p1910831922.jpg │ ├── p1910832390.jpg │ ├── p1910895719.jpg │ ├── p1910899751.jpg │ ├── p1910900710.jpg │ ├── p1910901025.jpg │ ├── p1910902213.jpg │ ├── p1910907404.jpg │ ├── p1910908765.jpg │ ├── p1910909085.jpg │ ├── p1910924055.jpg │ ├── p1910926158.jpg │ ├── p1917567652.jpg │ ├── p1960670202.jpg │ ├── p1963126880.jpg │ ├── p1979379460.jpg │ ├── p1982176012.jpg │ ├── p2016930906.jpg │ ├── p2022241990.jpg │ ├── p2070153774.jpg │ ├── p2074443514.jpg │ ├── p2074743958.jpg │ ├── p2075132390.jpg │ ├── p2079334286.jpg │ ├── p2099815842.jpg │ ├── p2101693489.jpg │ ├── p2107418134.jpg │ ├── p2118532944.jpg │ ├── p2119675128.jpg │ ├── p2157672975.jpg │ ├── p2158166535.jpg │ ├── p2163636038.jpg │ ├── p2169664351.jpg │ ├── p2173069757.jpg │ ├── p2173398296.jpg │ ├── p2173575484.jpg │ ├── p2173577632.jpg │ ├── p2173580536.jpg │ ├── p2173634628.jpg │ ├── p2173707976.jpg │ ├── p2173713676.jpg │ ├── p2173719647.jpg │ ├── p2173720203.jpg │ ├── p2173725381.jpg │ ├── p2173855883.jpg │ ├── p2174346180.jpg │ ├── p2175712032.jpg │ ├── p2178872593.jpg │ ├── p2180990078.jpg │ ├── p2184505167.jpg │ ├── p2186861098.jpg │ ├── p2189835254.jpg │ ├── p2195672555.jpg │ ├── p2225722786.jpg │ ├── p2238274168.jpg │ ├── p2268612953.jpg │ ├── p443461818.jpg │ ├── p449399746.jpg │ ├── p449665982.jpg │ ├── p449897379.jpg │ ├── p450042258.jpg │ ├── p452005185.jpg │ ├── p453198997.jpg │ ├── p453719066.jpg │ ├── p453720880.jpg │ ├── p453723669.jpg │ ├── p453788577.jpg │ ├── p453791074.jpg │ ├── p453924541.jpg │ ├── p455222172.jpg │ ├── p455472580.jpg │ ├── p455677490.jpg │ ├── p455724599.jpg │ ├── p456666151.jpg │ ├── p456692072.jpg │ ├── p457631605.jpg │ ├── p457760035.jpg │ ├── p462470694.jpg │ ├── p462570972.jpg │ ├── p462657443.jpg │ ├── p465583562.jpg │ ├── p465687407.jpg │ ├── p465939041.jpg │ ├── p470006658.jpg │ ├── p470383576.jpg │ ├── p470476887.jpg │ ├── p475600770.jpg │ ├── p475749652.jpg │ ├── p477229647.jpg │ ├── p478546260.jpg │ ├── p479565065.jpg │ ├── p479681395.jpg │ ├── p479746811.jpg │ ├── p480225538.jpg │ ├── p480383375.jpg │ ├── p480747492.jpg │ ├── p480956937.jpg │ ├── p480965695.jpg │ ├── p483604864.jpg │ ├── p489369851.jpg │ ├── p492406163.jpg │ ├── p497010372.jpg │ ├── p499158228.jpg │ ├── p510861873.jpg │ ├── p510876377.jpg │ ├── p511118051.jpg │ ├── p511146957.jpg │ ├── p513303986.jpg │ ├── p513344864.jpg │ ├── p513535588.jpg │ ├── p524581356.jpg │ ├── p524964016.jpg │ ├── p529908155.jpg │ ├── p531278288.jpg │ ├── p532195562.jpg │ ├── p554741987.jpg │ ├── p571671715.jpg │ ├── p579729551.jpg │ ├── p584021784.jpg │ ├── p584822570.jpg │ ├── p594972928.jpg │ ├── p595764767.jpg │ ├── p616753227.jpg │ ├── p616768086.jpg │ ├── p617533616.jpg │ ├── p628364149.jpg │ ├── p636048104.jpg │ ├── p641688453.jpg │ ├── p647099823.jpg │ ├── p648365452.jpg │ ├── p652417775.jpg │ ├── p663036666.jpg │ ├── p667644866.jpg │ ├── p672363704.jpg │ ├── p689520756.jpg │ ├── p692813374.jpg │ ├── p708613284.jpg │ ├── p712241453.jpg │ ├── p719262090.jpg │ ├── p719282906.jpg │ ├── p722758217.jpg │ ├── p751835224.jpg │ ├── p767586451.jpg │ ├── p768879237.jpg │ ├── p769608791.jpg │ ├── p770734475.jpg │ ├── p792223507.jpg │ ├── p792238287.jpg │ ├── p792248233.jpg │ ├── p792257137.jpg │ ├── p792263736.jpg │ ├── p792381411.jpg │ ├── p792400696.jpg │ ├── p792403691.jpg │ ├── p792443418.jpg │ ├── p792484461.jpg │ ├── p792776858.jpg │ ├── p793653648.jpg │ ├── p794583044.jpg │ ├── p803896904.jpg │ ├── p804938713.jpg │ ├── p804947166.jpg │ ├── p848381236.jpg │ ├── p884936202.jpg │ ├── p898634801.jpg │ ├── p909265336.jpg │ ├── p917846733.jpg │ ├── p918911014.jpg │ ├── p918994422.jpg │ ├── p921415667.jpg │ ├── p924558512.jpg │ ├── p925123037.jpg │ ├── p933122297.jpg │ ├── p942376281.jpg │ ├── p967457079.jpg │ ├── p976338551.jpg │ ├── p982896012.jpg │ ├── p984732992.jpg │ └── p988260245.jpg └── webuser_pictures │ ├── alex.jpg │ ├── alex_andy1.jpg │ ├── andy_tmp.jpg │ ├── apache.jpg │ └── feng.jpg ├── movie ├── __init__.py ├── __init__.pyc ├── admin.py ├── admin.pyc ├── forms.py ├── forms.pyc ├── migrations │ ├── 0001_initial.py │ ├── 0001_initial.pyc │ ├── 0002_moviespider_country.py │ ├── 0002_moviespider_country.pyc │ ├── __init__.py │ └── __init__.pyc ├── models.py ├── models.pyc ├── templates │ └── movie │ │ ├── allfilms.html │ │ └── searchresult.html ├── tests.py ├── urls.py ├── urls.pyc ├── views.py └── views.pyc ├── questions ├── __init__.py ├── __init__.pyc ├── admin.py ├── admin.pyc ├── forms.py ├── forms.pyc ├── migrations │ ├── 0001_initial.py │ ├── 0001_initial.pyc │ ├── 0002_activity_notification.py │ ├── 0002_activity_notification.pyc │ ├── __init__.py │ └── __init__.pyc ├── models.py ├── models.pyc ├── templates │ └── questions │ │ ├── ask.html │ │ ├── partial_answer.html │ │ ├── partial_question.html │ │ ├── question.html │ │ └── questions.html ├── tests.py ├── urls.py ├── urls.pyc ├── views.py └── views.pyc ├── requirements.txt ├── static ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── common.css │ ├── index.css │ ├── index1.css │ ├── jquery.Jcrop.min.css │ ├── person_home_info.css │ ├── questions.css │ ├── register.css │ ├── reset.css │ ├── styles.css │ ├── user.css │ └── webchat.css ├── favicon.ico ├── favicon.png ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── images │ ├── 01.jpg │ ├── 02.jpg │ ├── favourite_blue.png │ ├── favourite_green.png │ ├── favourite_red.png │ ├── resizeApi.png │ ├── user.png │ └── views.png ├── img │ ├── 1.png │ ├── 10.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ ├── 9.png │ ├── Jcrop.gif │ ├── favicon.png │ ├── loading.gif │ ├── user.gif │ ├── user.png │ └── user1.png ├── js │ ├── app.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── common.js │ ├── jquery.Jcrop.min.js │ ├── jquery.selection.js │ ├── movies.js │ ├── nomovie.markdown.js │ ├── npm.js │ ├── picture.js │ ├── questions.js │ └── webchat.js ├── lib │ ├── bootstrap │ │ ├── css │ │ │ ├── bootstrap-theme.css │ │ │ ├── bootstrap-theme.css.map │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap.css │ │ │ ├── bootstrap.css.map │ │ │ └── bootstrap.min.css │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── js │ │ │ ├── bootstrap.js │ │ │ └── bootstrap.min.js │ ├── holder.js │ └── jquery-2.1.1.min.js ├── upload_imgs │ ├── 2015-05-24_235051_的屏幕截图.png │ └── 2015-06-27_200851_的屏幕截图.png ├── vimeo.ico └── vimeo.png ├── templates ├── admin │ └── base_site.html ├── base.html ├── index.html ├── markdown_editor.html └── paginator.html ├── webchat ├── __init__.py ├── __init__.pyc ├── admin.py ├── admin.pyc ├── migrations │ ├── 0001_initial.py │ ├── 0001_initial.pyc │ ├── __init__.py │ └── __init__.pyc ├── models.py ├── models.pyc ├── templates │ └── webchat │ │ └── webchat.html ├── tests.py ├── urls.py ├── urls.pyc ├── views.py └── views.pyc ├── webuser ├── __init__.py ├── __init__.pyc ├── admin.py ├── admin.pyc ├── celery_log.txt ├── forms.py ├── forms.pyc ├── migrations │ ├── 0001_initial.py │ ├── 0001_initial.pyc │ ├── 0002_auto_20160316_1253.py │ ├── 0002_auto_20160316_1253.pyc │ ├── 0003_auto_20160317_0031.py │ ├── 0003_auto_20160317_0031.pyc │ ├── 0004_auto_20160426_1936.py │ ├── 0004_auto_20160426_1936.pyc │ ├── 0005_webuser_views.py │ ├── 0005_webuser_views.pyc │ ├── 0006_remove_webuser_views.py │ ├── 0006_remove_webuser_views.pyc │ ├── __init__.py │ └── __init__.pyc ├── models.py ├── models.pyc ├── tasks.py ├── tasks.pyc ├── templates │ └── webuser │ │ ├── addmovie.html │ │ ├── changeemail.html │ │ ├── cover.html │ │ ├── login.html │ │ ├── password.html │ │ ├── person_home_page.html │ │ ├── person_home_page_info.html │ │ ├── personal.html │ │ ├── picture.html │ │ ├── register.html │ │ └── userinfo.html ├── tests.py ├── urls.py ├── urls.pyc ├── views.py └── views.pyc └── weixin ├── __init__.py ├── admin.py ├── migrations └── __init__.py ├── models.py ├── tests.py └── views.py /LICENSE: -------------------------------------------------------------------------------- 1 | fldlsffsnaohaahh 2 | nihao woshi zengqingyun 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 大家可以试用下作者做的一个押韵的小程序,后端是用flask写的,微信小程序搜索:押韵ZONE 4 | 5 | 1.该项目是一个基于django 1.8.2版本的项目(我用的ubuntu14.04环境,线上显示地址http://121.42.156.185:8000/getmovielist/) 6 | 主要包括电影展示,播放,电影问答,在线聊天, 7 | 在线聊天不支持离线,离线消息接受不到,待完善 8 | 9 | 10 | 2.克隆完项目后,创建数据库,在setting.py中可以更改数据库地址;然后可以在数据库中执行: 11 | source /dnomoive/dnomovie.sql该命令,可以往数据库导入测试数据也可以用 12 | python manage.py makemigrations来创建空数据库; 13 | 14 | 3.pip install -r /dnomovie/requirements.txt安装项目需要的库 有些库安装不上的话,建议 15 | 翻墙,推荐lantern(翻墙利器) 16 | 17 | 4.安装完后就可以启动了python manage.py runserver 0.0.0.0:8000 可能会报一个jpeg的错,谷歌一下,装一个库就可以(具体叫啥我忘了,当时我也是谷歌解决的,主要是由于PIllow这个东西引起的) 18 | 19 | 5.我都是看这个文档来学习的:http://python.usyiyi.cn/django/index.html 20 | 21 | 6.点 star 啊啊哈哈。。。。。一起学习 22 | 23 | 24 | 测试用户:后台:admin 密码123 25 | 普通:alex 密码 123或者1234 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /README.md~: -------------------------------------------------------------------------------- 1 | 1.该项目是一个基于django 1.8.2版本的项目(我用的ubuntu14.04环境),主要包括电影展示,播放,电影问答,在线聊天, 2 | 在线聊天不支持离线,离线消息接受不到,待完善 3 | 2.克隆完项目后,创建数据库,在setting.py中可以更改数据库地址;然后可以在数据库中执行: 4 | source /dnomoive/dnomovie.sql该命令,可以往数据库导入测试数据也可以用 5 | python manage.py makemigrations来创建空数据库; 6 | 3.pip install -r /dnomovie/requirements.txt安装项目需要的库 有些库安装不上的话,建议 7 | 翻墙,推荐lantern(翻墙利器) 8 | 4.安装完后就可以启动了python manage.py runserver 0.0.0.0:8000 可能会报一个jpeg的错,谷歌一下,装一个库就可以(具体叫啥我忘了,当时我也是谷歌解决的,主要是由于PIllow这个东西引起的) 9 | -------------------------------------------------------------------------------- /dnomovie/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | #This will make sure the app is always imported when 3 | #Django starts so that shared_taks will use this app 4 | from .celery import app as celery_app -------------------------------------------------------------------------------- /dnomovie/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/dnomovie/__init__.pyc -------------------------------------------------------------------------------- /dnomovie/celery.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | import os 3 | from celery import Celery 4 | #set the default Django settings module for the 'celery' program. 5 | os.environ.setdefault('DJANGO_SETTINGS_MODULE','dnomovie.settings') 6 | 7 | from django.conf import settings 8 | 9 | app = Celery('dnomovie') 10 | 11 | #Using a string here means the worker will not have to pickle the object when using Wingdows 12 | 13 | app.config_from_object('django.conf:settings') 14 | app.autodiscover_tasks(lambda :settings.INSTALLED_APPS) 15 | 16 | @app.task(bind=True) 17 | def debug_task(self): 18 | print('Request:{0!r}'.format(self.request)) -------------------------------------------------------------------------------- /dnomovie/celery.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/dnomovie/celery.pyc -------------------------------------------------------------------------------- /dnomovie/decorators.py: -------------------------------------------------------------------------------- 1 | from django.http import HttpResponseBadRequest, HttpResponseRedirect 2 | from functools import wraps 3 | 4 | def ajax_required(f): 5 | def wrap(request, *args, **kwargs): 6 | if not request.is_ajax(): 7 | return HttpResponseBadRequest() 8 | return f(request, *args, **kwargs) 9 | wrap.__doc__=f.__doc__ 10 | wrap.__name__=f.__name__ 11 | return wrap -------------------------------------------------------------------------------- /dnomovie/settings.py: -------------------------------------------------------------------------------- 1 | #-*- coding: UTF-8 -*- 2 | from unipath import Path 3 | PROJECT_DIR = Path(__file__).parent 4 | """ 5 | Django settings for dnomovie project. 6 | 7 | Generated by 'django-admin startproject' using Django 1.8.2. 8 | 9 | For more information on this file, see 10 | https://docs.djangoproject.com/en/1.8/topics/settings/ 11 | 12 | For the full list of settings and their values, see 13 | https://docs.djangoproject.com/en/1.8/ref/settings/ 14 | """ 15 | 16 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) 17 | import os,djcelery 18 | 19 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 20 | 21 | print BASE_DIR 22 | # Quick-start development settings - unsuitable for production 23 | # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ 24 | 25 | # SECURITY WARNING: keep the secret key used in production secret! 26 | SECRET_KEY = '0$h&d2+jec85%mztqhbti$_j#p)_)^z21_7k4pvg=%0+)_r7#3' 27 | 28 | # SECURITY WARNING: don't run with debug turned on in production! 29 | DEBUG = True 30 | 31 | ALLOWED_HOSTS = [] 32 | 33 | #定时任务 34 | BROKER_URL='sqla+mysql://root:root@localhost/dnomovie' 35 | CELERY_RESULT_BACKEND='sqla+mysql://root:root@localhost/dnomovie' 36 | CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler' # 定时任务 37 | CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend' 38 | 39 | # Application definition 40 | 41 | INSTALLED_APPS = ( 42 | 'django.contrib.admin', 43 | 'django.contrib.auth', 44 | 'django.contrib.contenttypes', 45 | 'django.contrib.sessions', 46 | 'django.contrib.messages', 47 | 'django.contrib.staticfiles', 48 | 'django.contrib.humanize', 49 | 'djcelery', 50 | 'webuser', 51 | 'movie', 52 | 'django_markdown', 53 | 'questions', 54 | 'webchat', 55 | ) 56 | 57 | MIDDLEWARE_CLASSES = ( 58 | 'django.contrib.sessions.middleware.SessionMiddleware', 59 | 'django.middleware.common.CommonMiddleware', 60 | 'django.middleware.csrf.CsrfViewMiddleware', 61 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 62 | 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 63 | 'django.contrib.messages.middleware.MessageMiddleware', 64 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 65 | 'django.middleware.security.SecurityMiddleware', 66 | ) 67 | 68 | ROOT_URLCONF = 'dnomovie.urls' 69 | 70 | TEMPLATES = [ 71 | { 72 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 73 | 'DIRS': [], 74 | 'APP_DIRS': True, 75 | 'OPTIONS': { 76 | 'context_processors': [ 77 | 'django.template.context_processors.debug', 78 | 'django.template.context_processors.request', 79 | 'django.contrib.auth.context_processors.auth', 80 | 'django.contrib.messages.context_processors.messages', 81 | ], 82 | }, 83 | }, 84 | ] 85 | 86 | WSGI_APPLICATION = 'dnomovie.wsgi.application' 87 | 88 | 89 | # Database 90 | # https://docs.djangoproject.com/en/1.8/ref/settings/#databases 91 | 92 | DATABASES = { 93 | 'default': { 94 | 'ENGINE': 'django.db.backends.mysql', 95 | 'NAME': 'dnomovie', 96 | 'HOST':'127.0.0.1', 97 | 'USER':'root', 98 | 'PASSWORD':'root', 99 | } 100 | } 101 | 102 | 103 | # Internationalization 104 | # https://docs.djangoproject.com/en/1.8/topics/i18n/ 105 | 106 | # LANGUAGE_CODE = 'en-us' 107 | LANGUAGE_CODE = 'zh-hans' 108 | TIME_ZONE = 'Asia/Shanghai' 109 | 110 | USE_I18N = True 111 | 112 | USE_L10N = True 113 | 114 | USE_TZ = False 115 | 116 | 117 | # Static files (CSS, JavaScript, Images) 118 | # https://docs.djangoproject.com/en/1.8/howto/static-files/ 119 | 120 | STATIC_URL = '/static/' 121 | 122 | # STATICFILES_DIRS = ( 123 | # "%s/%s" %(BASE_DIR, "static"), 124 | # ) 125 | 126 | 127 | TEMPLATES = [ 128 | { 129 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 130 | 'DIRS': [os.path.join(BASE_DIR, 'templates')], 131 | 'APP_DIRS': True, 132 | 'OPTIONS': { 133 | 'context_processors': [ 134 | 'django.template.context_processors.debug', 135 | 'django.template.context_processors.request', 136 | 'django.contrib.auth.context_processors.auth', 137 | 'django.contrib.messages.context_processors.messages', 138 | ], 139 | }, 140 | }, 141 | ] 142 | 143 | 144 | FileUploadDir = 'upload_imgs' 145 | 146 | MEDIA_ROOT = PROJECT_DIR.parent.child('media') 147 | MEDIA_URL = '/media/' 148 | ALLOWED_SIGNUP_DOMAINS='*' 149 | 150 | STATICFILES_DIRS = ( 151 | os.path.join(os.path.dirname(__file__), '../static/').replace('\\','/'),) 152 | 153 | # Markdown 154 | MARKDOWN_EDITOR_SKIN = 'simple' 155 | 156 | LOGIN_URL = '/weblogin' -------------------------------------------------------------------------------- /dnomovie/settings.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/dnomovie/settings.pyc -------------------------------------------------------------------------------- /dnomovie/urls.py: -------------------------------------------------------------------------------- 1 | #-*-coding:utf-8 -*- 2 | 3 | """dnomovie URL Configuration 4 | 5 | The `urlpatterns` list routes URLs to views. For more information please see: 6 | https://docs.djangoproject.com/en/1.8/topics/http/urls/ 7 | Examples: 8 | Function views 9 | 1. Add an import: from my_app import views 10 | 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') 11 | Class-based views 12 | 1. Add an import: from other_app.views import Home 13 | 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') 14 | Including another URLconf 15 | 1. Add an import: from blog import urls as blog_urls 16 | 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) 17 | """ 18 | from django.conf.urls import include, url 19 | from django.contrib import admin 20 | from . import settings 21 | from django.conf.urls.static import static 22 | urlpatterns = [ 23 | url(r'^admin/', include(admin.site.urls)), 24 | url(r'^$','webuser.views.index',name='index'), 25 | url(r'',include('webuser.urls')), 26 | url(r'',include('movie.urls')), 27 | url(r'',include('questions.urls')), 28 | url(r'',include('webchat.urls')), 29 | url('^markdown/', include('django_markdown.urls')), 30 | url(r'^staticfiles/(?P.*)$','django.views.static.serve',{'document_root':settings.STATICFILES_DIRS, 'show_indexes': True}), 31 | ] 32 | urlpatterns+=static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) -------------------------------------------------------------------------------- /dnomovie/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/dnomovie/urls.pyc -------------------------------------------------------------------------------- /dnomovie/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for dnomovie 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.8/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", "dnomovie.settings") 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /dnomovie/wsgi.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/dnomovie/wsgi.pyc -------------------------------------------------------------------------------- /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", "dnomovie.settings") 7 | 8 | from django.core.management import execute_from_command_line 9 | 10 | execute_from_command_line(sys.argv) 11 | -------------------------------------------------------------------------------- /media/img/p1014542496.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1014542496.jpg -------------------------------------------------------------------------------- /media/img/p1021883305.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1021883305.jpg -------------------------------------------------------------------------------- /media/img/p1023654037.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1023654037.jpg -------------------------------------------------------------------------------- /media/img/p1024585648.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1024585648.jpg -------------------------------------------------------------------------------- /media/img/p1043597424.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1043597424.jpg -------------------------------------------------------------------------------- /media/img/p1075591188.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1075591188.jpg -------------------------------------------------------------------------------- /media/img/p1127709095.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1127709095.jpg -------------------------------------------------------------------------------- /media/img/p1140984198.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1140984198.jpg -------------------------------------------------------------------------------- /media/img/p1145536386.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1145536386.jpg -------------------------------------------------------------------------------- /media/img/p1157334208.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1157334208.jpg -------------------------------------------------------------------------------- /media/img/p1159398311.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1159398311.jpg -------------------------------------------------------------------------------- /media/img/p1181775734.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1181775734.jpg -------------------------------------------------------------------------------- /media/img/p1204213484.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1204213484.jpg -------------------------------------------------------------------------------- /media/img/p1224816276.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1224816276.jpg -------------------------------------------------------------------------------- /media/img/p1233612794.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1233612794.jpg -------------------------------------------------------------------------------- /media/img/p1244791866.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1244791866.jpg -------------------------------------------------------------------------------- /media/img/p1272904657.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1272904657.jpg -------------------------------------------------------------------------------- /media/img/p1280323646.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1280323646.jpg -------------------------------------------------------------------------------- /media/img/p1283675359.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1283675359.jpg -------------------------------------------------------------------------------- /media/img/p1305562621.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1305562621.jpg -------------------------------------------------------------------------------- /media/img/p1312700628.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1312700628.jpg -------------------------------------------------------------------------------- /media/img/p1341248319.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1341248319.jpg -------------------------------------------------------------------------------- /media/img/p1344888983.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1344888983.jpg -------------------------------------------------------------------------------- /media/img/p1351050722.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1351050722.jpg -------------------------------------------------------------------------------- /media/img/p1353910572.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1353910572.jpg -------------------------------------------------------------------------------- /media/img/p1354436051.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1354436051.jpg -------------------------------------------------------------------------------- /media/img/p1374546770.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1374546770.jpg -------------------------------------------------------------------------------- /media/img/p1374786017.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1374786017.jpg -------------------------------------------------------------------------------- /media/img/p1421018669.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1421018669.jpg -------------------------------------------------------------------------------- /media/img/p1446261379.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1446261379.jpg -------------------------------------------------------------------------------- /media/img/p1451436171.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1451436171.jpg -------------------------------------------------------------------------------- /media/img/p1454261925.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1454261925.jpg -------------------------------------------------------------------------------- /media/img/p1465235231.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1465235231.jpg -------------------------------------------------------------------------------- /media/img/p1473670352.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1473670352.jpg -------------------------------------------------------------------------------- /media/img/p1486234122.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1486234122.jpg -------------------------------------------------------------------------------- /media/img/p1486953897.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1486953897.jpg -------------------------------------------------------------------------------- /media/img/p1505312273.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1505312273.jpg -------------------------------------------------------------------------------- /media/img/p1505392928.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1505392928.jpg -------------------------------------------------------------------------------- /media/img/p1512562287.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1512562287.jpg -------------------------------------------------------------------------------- /media/img/p1528763106.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1528763106.jpg -------------------------------------------------------------------------------- /media/img/p1546987967.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1546987967.jpg -------------------------------------------------------------------------------- /media/img/p1576418852.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1576418852.jpg -------------------------------------------------------------------------------- /media/img/p1593414327.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1593414327.jpg -------------------------------------------------------------------------------- /media/img/p1596085504.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1596085504.jpg -------------------------------------------------------------------------------- /media/img/p1597183981.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1597183981.jpg -------------------------------------------------------------------------------- /media/img/p1601948450.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1601948450.jpg -------------------------------------------------------------------------------- /media/img/p1613191025.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1613191025.jpg -------------------------------------------------------------------------------- /media/img/p1637195618.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1637195618.jpg -------------------------------------------------------------------------------- /media/img/p1665997400.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1665997400.jpg -------------------------------------------------------------------------------- /media/img/p1706428744.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1706428744.jpg -------------------------------------------------------------------------------- /media/img/p1735642656.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1735642656.jpg -------------------------------------------------------------------------------- /media/img/p1784592701.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1784592701.jpg -------------------------------------------------------------------------------- /media/img/p1805127697.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1805127697.jpg -------------------------------------------------------------------------------- /media/img/p1808872109.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1808872109.jpg -------------------------------------------------------------------------------- /media/img/p1816276065.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1816276065.jpg -------------------------------------------------------------------------------- /media/img/p1820615077.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1820615077.jpg -------------------------------------------------------------------------------- /media/img/p1832875827.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1832875827.jpg -------------------------------------------------------------------------------- /media/img/p1864872647.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1864872647.jpg -------------------------------------------------------------------------------- /media/img/p1867084027.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1867084027.jpg -------------------------------------------------------------------------------- /media/img/p1910813120.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910813120.jpg -------------------------------------------------------------------------------- /media/img/p1910824340.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910824340.jpg -------------------------------------------------------------------------------- /media/img/p1910824951.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910824951.jpg -------------------------------------------------------------------------------- /media/img/p1910825503.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910825503.jpg -------------------------------------------------------------------------------- /media/img/p1910828286.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910828286.jpg -------------------------------------------------------------------------------- /media/img/p1910829638.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910829638.jpg -------------------------------------------------------------------------------- /media/img/p1910830216.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910830216.jpg -------------------------------------------------------------------------------- /media/img/p1910831922.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910831922.jpg -------------------------------------------------------------------------------- /media/img/p1910832390.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910832390.jpg -------------------------------------------------------------------------------- /media/img/p1910895719.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910895719.jpg -------------------------------------------------------------------------------- /media/img/p1910899751.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910899751.jpg -------------------------------------------------------------------------------- /media/img/p1910900710.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910900710.jpg -------------------------------------------------------------------------------- /media/img/p1910901025.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910901025.jpg -------------------------------------------------------------------------------- /media/img/p1910902213.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910902213.jpg -------------------------------------------------------------------------------- /media/img/p1910907404.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910907404.jpg -------------------------------------------------------------------------------- /media/img/p1910908765.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910908765.jpg -------------------------------------------------------------------------------- /media/img/p1910909085.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910909085.jpg -------------------------------------------------------------------------------- /media/img/p1910924055.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910924055.jpg -------------------------------------------------------------------------------- /media/img/p1910926158.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1910926158.jpg -------------------------------------------------------------------------------- /media/img/p1917567652.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1917567652.jpg -------------------------------------------------------------------------------- /media/img/p1960670202.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1960670202.jpg -------------------------------------------------------------------------------- /media/img/p1963126880.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1963126880.jpg -------------------------------------------------------------------------------- /media/img/p1979379460.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1979379460.jpg -------------------------------------------------------------------------------- /media/img/p1982176012.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p1982176012.jpg -------------------------------------------------------------------------------- /media/img/p2016930906.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2016930906.jpg -------------------------------------------------------------------------------- /media/img/p2022241990.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2022241990.jpg -------------------------------------------------------------------------------- /media/img/p2070153774.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2070153774.jpg -------------------------------------------------------------------------------- /media/img/p2074443514.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2074443514.jpg -------------------------------------------------------------------------------- /media/img/p2074743958.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2074743958.jpg -------------------------------------------------------------------------------- /media/img/p2075132390.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2075132390.jpg -------------------------------------------------------------------------------- /media/img/p2079334286.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2079334286.jpg -------------------------------------------------------------------------------- /media/img/p2099815842.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2099815842.jpg -------------------------------------------------------------------------------- /media/img/p2101693489.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2101693489.jpg -------------------------------------------------------------------------------- /media/img/p2107418134.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2107418134.jpg -------------------------------------------------------------------------------- /media/img/p2118532944.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2118532944.jpg -------------------------------------------------------------------------------- /media/img/p2119675128.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2119675128.jpg -------------------------------------------------------------------------------- /media/img/p2157672975.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2157672975.jpg -------------------------------------------------------------------------------- /media/img/p2158166535.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2158166535.jpg -------------------------------------------------------------------------------- /media/img/p2163636038.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2163636038.jpg -------------------------------------------------------------------------------- /media/img/p2169664351.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2169664351.jpg -------------------------------------------------------------------------------- /media/img/p2173069757.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173069757.jpg -------------------------------------------------------------------------------- /media/img/p2173398296.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173398296.jpg -------------------------------------------------------------------------------- /media/img/p2173575484.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173575484.jpg -------------------------------------------------------------------------------- /media/img/p2173577632.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173577632.jpg -------------------------------------------------------------------------------- /media/img/p2173580536.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173580536.jpg -------------------------------------------------------------------------------- /media/img/p2173634628.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173634628.jpg -------------------------------------------------------------------------------- /media/img/p2173707976.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173707976.jpg -------------------------------------------------------------------------------- /media/img/p2173713676.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173713676.jpg -------------------------------------------------------------------------------- /media/img/p2173719647.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173719647.jpg -------------------------------------------------------------------------------- /media/img/p2173720203.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173720203.jpg -------------------------------------------------------------------------------- /media/img/p2173725381.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173725381.jpg -------------------------------------------------------------------------------- /media/img/p2173855883.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2173855883.jpg -------------------------------------------------------------------------------- /media/img/p2174346180.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2174346180.jpg -------------------------------------------------------------------------------- /media/img/p2175712032.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2175712032.jpg -------------------------------------------------------------------------------- /media/img/p2178872593.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2178872593.jpg -------------------------------------------------------------------------------- /media/img/p2180990078.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2180990078.jpg -------------------------------------------------------------------------------- /media/img/p2184505167.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2184505167.jpg -------------------------------------------------------------------------------- /media/img/p2186861098.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2186861098.jpg -------------------------------------------------------------------------------- /media/img/p2189835254.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2189835254.jpg -------------------------------------------------------------------------------- /media/img/p2195672555.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2195672555.jpg -------------------------------------------------------------------------------- /media/img/p2225722786.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2225722786.jpg -------------------------------------------------------------------------------- /media/img/p2238274168.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2238274168.jpg -------------------------------------------------------------------------------- /media/img/p2268612953.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p2268612953.jpg -------------------------------------------------------------------------------- /media/img/p443461818.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p443461818.jpg -------------------------------------------------------------------------------- /media/img/p449399746.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p449399746.jpg -------------------------------------------------------------------------------- /media/img/p449665982.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p449665982.jpg -------------------------------------------------------------------------------- /media/img/p449897379.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p449897379.jpg -------------------------------------------------------------------------------- /media/img/p450042258.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p450042258.jpg -------------------------------------------------------------------------------- /media/img/p452005185.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p452005185.jpg -------------------------------------------------------------------------------- /media/img/p453198997.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p453198997.jpg -------------------------------------------------------------------------------- /media/img/p453719066.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p453719066.jpg -------------------------------------------------------------------------------- /media/img/p453720880.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p453720880.jpg -------------------------------------------------------------------------------- /media/img/p453723669.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p453723669.jpg -------------------------------------------------------------------------------- /media/img/p453788577.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p453788577.jpg -------------------------------------------------------------------------------- /media/img/p453791074.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p453791074.jpg -------------------------------------------------------------------------------- /media/img/p453924541.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p453924541.jpg -------------------------------------------------------------------------------- /media/img/p455222172.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p455222172.jpg -------------------------------------------------------------------------------- /media/img/p455472580.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p455472580.jpg -------------------------------------------------------------------------------- /media/img/p455677490.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p455677490.jpg -------------------------------------------------------------------------------- /media/img/p455724599.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p455724599.jpg -------------------------------------------------------------------------------- /media/img/p456666151.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p456666151.jpg -------------------------------------------------------------------------------- /media/img/p456692072.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p456692072.jpg -------------------------------------------------------------------------------- /media/img/p457631605.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p457631605.jpg -------------------------------------------------------------------------------- /media/img/p457760035.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p457760035.jpg -------------------------------------------------------------------------------- /media/img/p462470694.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p462470694.jpg -------------------------------------------------------------------------------- /media/img/p462570972.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p462570972.jpg -------------------------------------------------------------------------------- /media/img/p462657443.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p462657443.jpg -------------------------------------------------------------------------------- /media/img/p465583562.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p465583562.jpg -------------------------------------------------------------------------------- /media/img/p465687407.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p465687407.jpg -------------------------------------------------------------------------------- /media/img/p465939041.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p465939041.jpg -------------------------------------------------------------------------------- /media/img/p470006658.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p470006658.jpg -------------------------------------------------------------------------------- /media/img/p470383576.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p470383576.jpg -------------------------------------------------------------------------------- /media/img/p470476887.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p470476887.jpg -------------------------------------------------------------------------------- /media/img/p475600770.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p475600770.jpg -------------------------------------------------------------------------------- /media/img/p475749652.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p475749652.jpg -------------------------------------------------------------------------------- /media/img/p477229647.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p477229647.jpg -------------------------------------------------------------------------------- /media/img/p478546260.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p478546260.jpg -------------------------------------------------------------------------------- /media/img/p479565065.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p479565065.jpg -------------------------------------------------------------------------------- /media/img/p479681395.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p479681395.jpg -------------------------------------------------------------------------------- /media/img/p479746811.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p479746811.jpg -------------------------------------------------------------------------------- /media/img/p480225538.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p480225538.jpg -------------------------------------------------------------------------------- /media/img/p480383375.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p480383375.jpg -------------------------------------------------------------------------------- /media/img/p480747492.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p480747492.jpg -------------------------------------------------------------------------------- /media/img/p480956937.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p480956937.jpg -------------------------------------------------------------------------------- /media/img/p480965695.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p480965695.jpg -------------------------------------------------------------------------------- /media/img/p483604864.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p483604864.jpg -------------------------------------------------------------------------------- /media/img/p489369851.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p489369851.jpg -------------------------------------------------------------------------------- /media/img/p492406163.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p492406163.jpg -------------------------------------------------------------------------------- /media/img/p497010372.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p497010372.jpg -------------------------------------------------------------------------------- /media/img/p499158228.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p499158228.jpg -------------------------------------------------------------------------------- /media/img/p510861873.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p510861873.jpg -------------------------------------------------------------------------------- /media/img/p510876377.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p510876377.jpg -------------------------------------------------------------------------------- /media/img/p511118051.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p511118051.jpg -------------------------------------------------------------------------------- /media/img/p511146957.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p511146957.jpg -------------------------------------------------------------------------------- /media/img/p513303986.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p513303986.jpg -------------------------------------------------------------------------------- /media/img/p513344864.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p513344864.jpg -------------------------------------------------------------------------------- /media/img/p513535588.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p513535588.jpg -------------------------------------------------------------------------------- /media/img/p524581356.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p524581356.jpg -------------------------------------------------------------------------------- /media/img/p524964016.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p524964016.jpg -------------------------------------------------------------------------------- /media/img/p529908155.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p529908155.jpg -------------------------------------------------------------------------------- /media/img/p531278288.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p531278288.jpg -------------------------------------------------------------------------------- /media/img/p532195562.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p532195562.jpg -------------------------------------------------------------------------------- /media/img/p554741987.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p554741987.jpg -------------------------------------------------------------------------------- /media/img/p571671715.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p571671715.jpg -------------------------------------------------------------------------------- /media/img/p579729551.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p579729551.jpg -------------------------------------------------------------------------------- /media/img/p584021784.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p584021784.jpg -------------------------------------------------------------------------------- /media/img/p584822570.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p584822570.jpg -------------------------------------------------------------------------------- /media/img/p594972928.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p594972928.jpg -------------------------------------------------------------------------------- /media/img/p595764767.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p595764767.jpg -------------------------------------------------------------------------------- /media/img/p616753227.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p616753227.jpg -------------------------------------------------------------------------------- /media/img/p616768086.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p616768086.jpg -------------------------------------------------------------------------------- /media/img/p617533616.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p617533616.jpg -------------------------------------------------------------------------------- /media/img/p628364149.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p628364149.jpg -------------------------------------------------------------------------------- /media/img/p636048104.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p636048104.jpg -------------------------------------------------------------------------------- /media/img/p641688453.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p641688453.jpg -------------------------------------------------------------------------------- /media/img/p647099823.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p647099823.jpg -------------------------------------------------------------------------------- /media/img/p648365452.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p648365452.jpg -------------------------------------------------------------------------------- /media/img/p652417775.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p652417775.jpg -------------------------------------------------------------------------------- /media/img/p663036666.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p663036666.jpg -------------------------------------------------------------------------------- /media/img/p667644866.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p667644866.jpg -------------------------------------------------------------------------------- /media/img/p672363704.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p672363704.jpg -------------------------------------------------------------------------------- /media/img/p689520756.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p689520756.jpg -------------------------------------------------------------------------------- /media/img/p692813374.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p692813374.jpg -------------------------------------------------------------------------------- /media/img/p708613284.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p708613284.jpg -------------------------------------------------------------------------------- /media/img/p712241453.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p712241453.jpg -------------------------------------------------------------------------------- /media/img/p719262090.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p719262090.jpg -------------------------------------------------------------------------------- /media/img/p719282906.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p719282906.jpg -------------------------------------------------------------------------------- /media/img/p722758217.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p722758217.jpg -------------------------------------------------------------------------------- /media/img/p751835224.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p751835224.jpg -------------------------------------------------------------------------------- /media/img/p767586451.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p767586451.jpg -------------------------------------------------------------------------------- /media/img/p768879237.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p768879237.jpg -------------------------------------------------------------------------------- /media/img/p769608791.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p769608791.jpg -------------------------------------------------------------------------------- /media/img/p770734475.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p770734475.jpg -------------------------------------------------------------------------------- /media/img/p792223507.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792223507.jpg -------------------------------------------------------------------------------- /media/img/p792238287.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792238287.jpg -------------------------------------------------------------------------------- /media/img/p792248233.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792248233.jpg -------------------------------------------------------------------------------- /media/img/p792257137.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792257137.jpg -------------------------------------------------------------------------------- /media/img/p792263736.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792263736.jpg -------------------------------------------------------------------------------- /media/img/p792381411.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792381411.jpg -------------------------------------------------------------------------------- /media/img/p792400696.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792400696.jpg -------------------------------------------------------------------------------- /media/img/p792403691.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792403691.jpg -------------------------------------------------------------------------------- /media/img/p792443418.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792443418.jpg -------------------------------------------------------------------------------- /media/img/p792484461.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792484461.jpg -------------------------------------------------------------------------------- /media/img/p792776858.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p792776858.jpg -------------------------------------------------------------------------------- /media/img/p793653648.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p793653648.jpg -------------------------------------------------------------------------------- /media/img/p794583044.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p794583044.jpg -------------------------------------------------------------------------------- /media/img/p803896904.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p803896904.jpg -------------------------------------------------------------------------------- /media/img/p804938713.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p804938713.jpg -------------------------------------------------------------------------------- /media/img/p804947166.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p804947166.jpg -------------------------------------------------------------------------------- /media/img/p848381236.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p848381236.jpg -------------------------------------------------------------------------------- /media/img/p884936202.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p884936202.jpg -------------------------------------------------------------------------------- /media/img/p898634801.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p898634801.jpg -------------------------------------------------------------------------------- /media/img/p909265336.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p909265336.jpg -------------------------------------------------------------------------------- /media/img/p917846733.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p917846733.jpg -------------------------------------------------------------------------------- /media/img/p918911014.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p918911014.jpg -------------------------------------------------------------------------------- /media/img/p918994422.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p918994422.jpg -------------------------------------------------------------------------------- /media/img/p921415667.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p921415667.jpg -------------------------------------------------------------------------------- /media/img/p924558512.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p924558512.jpg -------------------------------------------------------------------------------- /media/img/p925123037.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p925123037.jpg -------------------------------------------------------------------------------- /media/img/p933122297.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p933122297.jpg -------------------------------------------------------------------------------- /media/img/p942376281.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p942376281.jpg -------------------------------------------------------------------------------- /media/img/p967457079.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p967457079.jpg -------------------------------------------------------------------------------- /media/img/p976338551.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p976338551.jpg -------------------------------------------------------------------------------- /media/img/p982896012.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p982896012.jpg -------------------------------------------------------------------------------- /media/img/p984732992.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p984732992.jpg -------------------------------------------------------------------------------- /media/img/p988260245.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/img/p988260245.jpg -------------------------------------------------------------------------------- /media/webuser_pictures/alex.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/webuser_pictures/alex.jpg -------------------------------------------------------------------------------- /media/webuser_pictures/alex_andy1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/webuser_pictures/alex_andy1.jpg -------------------------------------------------------------------------------- /media/webuser_pictures/andy_tmp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/webuser_pictures/andy_tmp.jpg -------------------------------------------------------------------------------- /media/webuser_pictures/apache.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/webuser_pictures/apache.jpg -------------------------------------------------------------------------------- /media/webuser_pictures/feng.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/media/webuser_pictures/feng.jpg -------------------------------------------------------------------------------- /movie/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/__init__.py -------------------------------------------------------------------------------- /movie/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/__init__.pyc -------------------------------------------------------------------------------- /movie/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | import models 3 | from django_markdown.admin import MarkdownModelAdmin 4 | # Register your models here. 5 | admin.site.register(models.Movie) 6 | class MovieComentAdmin(MarkdownModelAdmin): 7 | list_display = ('user','movie','date') 8 | admin.site.register(models.MovieComent,MovieComentAdmin) -------------------------------------------------------------------------------- /movie/admin.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/admin.pyc -------------------------------------------------------------------------------- /movie/forms.py: -------------------------------------------------------------------------------- 1 | #-*- coding: UTF-8 -*- 2 | __author__ = 'hadoop' 3 | from django import forms 4 | from .models import Movie 5 | from django.contrib import auth 6 | from django.utils.safestring import mark_safe 7 | #实现水平排列单选按钮 8 | class HorizontalRadioRenderer(forms.RadioSelect.renderer): 9 | def render(self): 10 | return mark_safe(u'\n'.join([u'   %s\n ' % w for w in self])) 11 | 12 | class HorizontalCheckRenderer(forms.CheckboxSelectMultiple.renderer): 13 | def render(self): 14 | return mark_safe(u'\n'.join([u'   %s\n ' % w for w in self])) 15 | 16 | class MovieInfoForm(forms.ModelForm): 17 | MOVIE_STYLE_CHOICE=((u'0',u'动作'),(u'1',u'悬疑'),(u'2',u'爱情'),(u'3',u'科幻'),(u'4',u'恐怖'),(u'5',u'犯罪'),(u'6',u'其他')) 18 | moviename = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}), 19 | max_length=50,label=u'电影名',required=True) 20 | movieaddress = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}),label=u'播放地址',max_length=100) 21 | downloadlink = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}),label=u'下载地址',max_length=100) 22 | style = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple(renderer=HorizontalCheckRenderer), 23 | choices=MOVIE_STYLE_CHOICE,required=False,label=u'电影类型') 24 | language = forms.CharField(widget=forms.RadioSelect(choices=((u'0',u'中文'),(u'1',u'英文'),(u'2',u'韩语'),(u'3',u'日语'),(u'4',u'其它')), 25 | attrs={'class':'radio-inline'},renderer=HorizontalRadioRenderer),label=u'语言') 26 | image = forms.ImageField(label=u'上传图片') 27 | class Meta: 28 | model = Movie 29 | fields=['moviename','movieaddress','downloadlink','style','language','image'] 30 | -------------------------------------------------------------------------------- /movie/forms.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/forms.pyc -------------------------------------------------------------------------------- /movie/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | import django_markdown.models 7 | 8 | 9 | class Migration(migrations.Migration): 10 | 11 | dependencies = [ 12 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='Movie', 18 | fields=[ 19 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 20 | ('moviename', models.CharField(max_length=64, blank=True)), 21 | ('doubanlink', models.CharField(max_length=256, null=True, blank=True)), 22 | ('doubanscore', models.CharField(max_length=64, null=True, blank=True)), 23 | ('doubancounter', models.IntegerField(null=True, blank=True)), 24 | ('imdblink', models.CharField(max_length=256, null=True, blank=True)), 25 | ('imdbscore', models.CharField(max_length=64, null=True, blank=True)), 26 | ('imdbcounter', models.IntegerField(null=True, blank=True)), 27 | ('nomovielink', models.CharField(max_length=256, null=True, blank=True)), 28 | ('nomoviescore', models.CharField(max_length=64, null=True, blank=True)), 29 | ('nomoviecounter', models.IntegerField(null=True, blank=True)), 30 | ('country', models.CharField(max_length=64, null=True, blank=True)), 31 | ('dateyear', models.CharField(max_length=64, null=True, blank=True)), 32 | ('actor', models.CharField(max_length=256, null=True, blank=True)), 33 | ('director', models.CharField(max_length=256, null=True, blank=True)), 34 | ('style', models.CharField(max_length=64, null=True, blank=True)), 35 | ('movieaddress', models.CharField(max_length=256, null=True, blank=True)), 36 | ('downloadlink', models.CharField(max_length=256, null=True, blank=True)), 37 | ('counter', models.IntegerField(null=True, blank=True)), 38 | ('original', models.CharField(max_length=256, null=True, blank=True)), 39 | ('status', models.IntegerField(null=True, blank=True)), 40 | ('image', models.ImageField(null=True, upload_to=b'full/', blank=True)), 41 | ('spidertime', models.DateTimeField(auto_now_add=True, null=True)), 42 | ('aboutmovie', models.CharField(max_length=256, null=True, blank=True)), 43 | ('language', models.CharField(max_length=64, null=True, blank=True)), 44 | ('dyttsearch', models.CharField(max_length=256, null=True, blank=True)), 45 | ('dyttdetail', models.CharField(max_length=256, null=True, blank=True)), 46 | ], 47 | ), 48 | migrations.CreateModel( 49 | name='MovieComent', 50 | fields=[ 51 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 52 | ('date', models.DateTimeField(auto_now_add=True)), 53 | ('comment', django_markdown.models.MarkdownField()), 54 | ('movie', models.ForeignKey(to='movie.Movie')), 55 | ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)), 56 | ], 57 | ), 58 | migrations.CreateModel( 59 | name='MovieHistory', 60 | fields=[ 61 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 62 | ('date', models.DateTimeField(auto_now_add=True)), 63 | ('marked', models.IntegerField(null=True, blank=True)), 64 | ('movie', models.ForeignKey(to='movie.Movie')), 65 | ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)), 66 | ], 67 | ), 68 | migrations.CreateModel( 69 | name='MovieSpider', 70 | fields=[ 71 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 72 | ('movie_tag', models.CharField(max_length=512, null=True, blank=True)), 73 | ('moviename', models.CharField(max_length=64, null=True, blank=True)), 74 | ('moviedetailurl', models.CharField(max_length=512, null=True, blank=True)), 75 | ('movieimgurl', models.CharField(max_length=512, null=True, blank=True)), 76 | ('movieaddtime', models.DateTimeField(auto_now_add=True)), 77 | ('moviespiderornot', models.IntegerField(default=0)), 78 | ], 79 | ), 80 | ] 81 | -------------------------------------------------------------------------------- /movie/migrations/0001_initial.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/migrations/0001_initial.pyc -------------------------------------------------------------------------------- /movie/migrations/0002_moviespider_country.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('movie', '0001_initial'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AddField( 15 | model_name='moviespider', 16 | name='country', 17 | field=models.CharField(max_length=64, null=True, blank=True), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /movie/migrations/0002_moviespider_country.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/migrations/0002_moviespider_country.pyc -------------------------------------------------------------------------------- /movie/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/migrations/__init__.py -------------------------------------------------------------------------------- /movie/migrations/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/migrations/__init__.pyc -------------------------------------------------------------------------------- /movie/models.py: -------------------------------------------------------------------------------- 1 | #-*-coding:utf-8 -*- 2 | from django.db import models 3 | from datetime import datetime 4 | from django.contrib.auth.models import User 5 | from django_markdown.models import MarkdownField 6 | import markdown 7 | # Create your models here. 8 | class Movie(models.Model): 9 | moviename = models.CharField(max_length=64,blank=True) #电影名称 10 | doubanlink = models.CharField(max_length=256,null=True,blank=True) #在豆瓣中的链接 11 | doubanscore = models.CharField(max_length=64,null=True,blank=True) #豆瓣评分 12 | doubancounter = models.IntegerField(blank=True,null=True) #豆瓣评分人数 13 | imdblink = models.CharField(max_length=256,null=True,blank=True) #在Imdb中的链接 14 | imdbscore = models.CharField(max_length=64,null=True,blank=True) #在imdb中的评分 15 | imdbcounter = models.IntegerField(blank=True,null=True,) #在imdb中的评分人数 16 | nomovielink = models.CharField(max_length=256,null=True,blank=True)#在网站中的链接 17 | nomoviescore = models.CharField(max_length=64,null=True,blank=True) #在网站中的评分 18 | nomoviecounter = models.IntegerField(blank=True,null=True,) #在网站中的评分人数 19 | country = models.CharField(max_length=64,null=True,blank=True) #上映国家 20 | dateyear = models.CharField(max_length=64,null=True,blank=True) # 上映日期 21 | actor = models.CharField(max_length=256,null=True,blank=True) # 主演 22 | director = models.CharField(max_length=256,null=True,blank=True) #导演 23 | style = models.CharField(max_length=64,null=True,blank=True) #电影类型 24 | movieaddress = models.CharField(max_length=256,null=True,blank=True) #电影播放地址 25 | downloadlink = models.CharField(max_length=256,null=True,blank=True) #电影下载链接 26 | counter = models.IntegerField(blank=True,null=True) #电影在本网站播放的次数 27 | original = models.CharField(blank=True,null=True,max_length=256) #电影来源 0:表示豆瓣top250 1:表示imdbtop250 2:表示普通豆瓣 3:表示普通imdb 4:表示在豆瓣和imdb中都存在 5表示:用户自添加 28 | status = models.IntegerField(blank=True,null=True) #1:表示通过,0:表示未通过,2表示审核中 29 | image = models.ImageField(upload_to="full/",blank=True,null=True) #表示图片保存地址 30 | spidertime = models.DateTimeField(auto_now_add=True,null=True) #爬取电影入库时间 31 | aboutmovie = models.CharField(max_length=256,blank=True,null=True) #关于电影 32 | language = models.CharField(max_length=64,blank=True,null=True)#电影语言 33 | dyttsearch = models.CharField(max_length=256,blank=True,null=True) #电影天堂搜索结果地址 34 | dyttdetail = models.CharField(max_length=256,blank=True,null=True) #电影天堂结果详情页面 35 | 36 | def __unicode__(self): 37 | return self.moviename 38 | def get_comments(self): 39 | return MovieComent.objects.filter(movie=self) 40 | 41 | class MovieHistory(models.Model): 42 | user = models.ForeignKey(User) #观看用户 43 | movie = models.ForeignKey(Movie) #观看电影 44 | date = models.DateTimeField(auto_now_add=True) #观看时间 45 | marked = models.IntegerField(blank=True,null=True) #0表示观看,1表示收藏,2表示推荐 46 | def __unicode__(self): 47 | return u'{0}-{1}'.format(self.user.username,self.movie.moviename) 48 | 49 | class MovieComent(models.Model): 50 | user = models.ForeignKey(User) #观看用户 51 | movie = models.ForeignKey(Movie) #观看电影 52 | date = models.DateTimeField(auto_now_add=True) #评论时间 53 | comment = MarkdownField() #评论 54 | 55 | def __unicode__(self): 56 | return u'{0} - {1}'.format(self.user.username,self.movie.moviename) 57 | 58 | class MovieSpider(models.Model): 59 | movie_tag = models.CharField(max_length=512,blank=True,null=True) 60 | moviename = models.CharField(max_length=64,blank=True,null=True) 61 | moviedetailurl = models.CharField(max_length=512,blank=True,null=True) 62 | movieimgurl = models.CharField(max_length=512,blank=True,null=True) 63 | movieaddtime = models.DateTimeField(auto_now_add=True) 64 | moviespiderornot = models.IntegerField(default=0) 65 | country = models.CharField(max_length=64,blank=True,null=True) 66 | 67 | def __unicode__(self): 68 | return u'{0}-{1}'.format(self.moviename,self.movie_tag) -------------------------------------------------------------------------------- /movie/models.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/models.pyc -------------------------------------------------------------------------------- /movie/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /movie/urls.py: -------------------------------------------------------------------------------- 1 | __author__ = 'hadoop' 2 | from django.conf.urls import url 3 | from . import views 4 | urlpatterns=[ 5 | url(r'^getmovielist/$',views.getmovielist,name='getmovielist'), 6 | # url(r'^getmovielistbystyle/$',views.getmovielistbystyle,name='getmovielistbystyle'), 7 | # url(r'^getmovielist/(?P\d*)/$',views.getmovielist,name='getmovielist'), 8 | url(r'^getmovielist/(\d+)/$',views.getmovielist,name='getmovielist'), 9 | url(r'^getlatestmovielist/$',views.getlatestmovielist,name='getlatestmovielist'), 10 | url(r'^getlatestmovielist/(\d+)/$',views.getlatestmovielist,name='getlatestmovielist'), 11 | url(r'^getfilmfestlist/$',views.getfilmfestlist,name='getfilmfestlist'), 12 | url(r'^getfilmfestlist/(\d+)/$',views.getfilmfestlist,name='getfilmfestlist'), 13 | url(r'^generatemoviehistory',views.generatemoviehistory,name='generatemoviehistory'), 14 | url(r'^searchmovie/$',views.searchmovie,name='searchmovie'), 15 | url(r'^addmovie/$',views.addmovie,name='addmovie'), 16 | ] -------------------------------------------------------------------------------- /movie/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/urls.pyc -------------------------------------------------------------------------------- /movie/views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/movie/views.pyc -------------------------------------------------------------------------------- /questions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/__init__.py -------------------------------------------------------------------------------- /questions/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/__init__.pyc -------------------------------------------------------------------------------- /questions/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from . import models 3 | admin.site.register(models.Answer) 4 | # Register your models here. 5 | -------------------------------------------------------------------------------- /questions/admin.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/admin.pyc -------------------------------------------------------------------------------- /questions/forms.py: -------------------------------------------------------------------------------- 1 | #-*- coding: UTF-8 -*- 2 | __author__ = 'hadoop' 3 | from django import forms 4 | from django.forms import ModelForm,TextInput,Textarea,CharField 5 | from .models import Question,Answer 6 | class QuestionForm(ModelForm): 7 | tags = CharField(widget=TextInput(attrs={'class':'form-control'}), 8 | max_length=255, 9 | required=False, 10 | label=u'标签', 11 | help_text=u'用空格分开标签') 12 | class Meta: 13 | model = Question 14 | fields = ['title','description','tags'] 15 | widgets = { 16 | 'title':TextInput(attrs={'class':'form-control'}), 17 | 'description':Textarea(attrs={'class':'form-control'}), 18 | } 19 | labels ={ 20 | 'title':u'问题简述', 21 | 'description':u'问题详细描述', 22 | } 23 | 24 | class AnswerForm(forms.ModelForm): 25 | question = forms.ModelChoiceField(widget=forms.HiddenInput(), queryset=Question.objects.all()) 26 | answercontent = forms.CharField(widget=forms.Textarea(attrs={'class':'form-control', 'rows':'4'}), 27 | max_length=2000) 28 | 29 | class Meta: 30 | model = Answer 31 | fields = ['question', 'answercontent'] 32 | -------------------------------------------------------------------------------- /questions/forms.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/forms.pyc -------------------------------------------------------------------------------- /questions/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ] 13 | 14 | operations = [ 15 | migrations.CreateModel( 16 | name='Answer', 17 | fields=[ 18 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 19 | ('answercontent', models.TextField(max_length=2000)), 20 | ('create_date', models.DateTimeField(auto_now_add=True)), 21 | ('update_date', models.DateTimeField(auto_now_add=True)), 22 | ('votes', models.IntegerField(default=0)), 23 | ('is_accepted', models.BooleanField(default=False)), 24 | ], 25 | options={ 26 | 'ordering': ('-is_accepted', '-votes', 'create_date'), 27 | 'verbose_name': 'Answer', 28 | 'verbose_name_plural': 'Answers', 29 | }, 30 | ), 31 | migrations.CreateModel( 32 | name='Question', 33 | fields=[ 34 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 35 | ('title', models.CharField(max_length=255)), 36 | ('description', models.TextField(max_length=2000)), 37 | ('create_date', models.DateTimeField(auto_now_add=True)), 38 | ('update_date', models.DateTimeField(auto_now_add=True)), 39 | ('favorites', models.IntegerField(default=0)), 40 | ('has_accepted_answer', models.BooleanField(default=False)), 41 | ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)), 42 | ], 43 | options={ 44 | 'ordering': ('-update_date',), 45 | 'verbose_name': 'Question', 46 | 'verbose_name_plural': 'Questions', 47 | }, 48 | ), 49 | migrations.CreateModel( 50 | name='Tag', 51 | fields=[ 52 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 53 | ('tag', models.CharField(max_length=50)), 54 | ('question', models.ForeignKey(to='questions.Question')), 55 | ], 56 | options={ 57 | 'verbose_name': 'Tag', 58 | 'verbose_name_plural': 'Tags', 59 | }, 60 | ), 61 | migrations.AddField( 62 | model_name='answer', 63 | name='question', 64 | field=models.ForeignKey(to='questions.Question'), 65 | ), 66 | migrations.AddField( 67 | model_name='answer', 68 | name='user', 69 | field=models.ForeignKey(to=settings.AUTH_USER_MODEL), 70 | ), 71 | migrations.AlterUniqueTogether( 72 | name='tag', 73 | unique_together=set([('tag', 'question')]), 74 | ), 75 | migrations.AlterIndexTogether( 76 | name='tag', 77 | index_together=set([('tag', 'question')]), 78 | ), 79 | ] 80 | -------------------------------------------------------------------------------- /questions/migrations/0001_initial.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/migrations/0001_initial.pyc -------------------------------------------------------------------------------- /questions/migrations/0002_activity_notification.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('questions', '0001_initial'), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='Activity', 18 | fields=[ 19 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 20 | ('activity_type', models.CharField(max_length=1, choices=[(b'F', b'Favorite'), (b'L', b'Like'), (b'U', b'Up Vote'), (b'D', b'Down Vote')])), 21 | ('date', models.DateTimeField(auto_now_add=True)), 22 | ('question', models.IntegerField(null=True, blank=True)), 23 | ('answer', models.IntegerField(null=True, blank=True)), 24 | ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)), 25 | ], 26 | options={ 27 | 'verbose_name': 'Activity', 28 | 'verbose_name_plural': 'Activities', 29 | }, 30 | ), 31 | migrations.CreateModel( 32 | name='Notification', 33 | fields=[ 34 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 35 | ('date', models.DateTimeField(auto_now_add=True)), 36 | ('notification_type', models.CharField(max_length=1, choices=[(b'L', b'Liked'), (b'F', b'Favorited'), (b'A', b'Answered'), (b'W', b'Accepted Answer')])), 37 | ('is_read', models.BooleanField(default=False)), 38 | ('answer', models.ForeignKey(blank=True, to='questions.Answer', null=True)), 39 | ('from_user', models.ForeignKey(related_name='+', to=settings.AUTH_USER_MODEL)), 40 | ('question', models.ForeignKey(blank=True, to='questions.Question', null=True)), 41 | ('to_user', models.ForeignKey(related_name='+', to=settings.AUTH_USER_MODEL)), 42 | ], 43 | options={ 44 | 'ordering': ('-date',), 45 | 'verbose_name': 'Notification', 46 | 'verbose_name_plural': 'Notifications', 47 | }, 48 | ), 49 | ] 50 | -------------------------------------------------------------------------------- /questions/migrations/0002_activity_notification.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/migrations/0002_activity_notification.pyc -------------------------------------------------------------------------------- /questions/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/migrations/__init__.py -------------------------------------------------------------------------------- /questions/migrations/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/migrations/__init__.pyc -------------------------------------------------------------------------------- /questions/models.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/models.pyc -------------------------------------------------------------------------------- /questions/templates/questions/ask.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load staticfiles %} 3 | {% load i18n %} 4 | {% load static %} 5 | {% block title %}问答园{% endblock %} 6 | 7 | {% block head %} 8 | 9 | {% endblock %} 10 | {% block page_content %} 11 |
12 |
13 | 20 | 21 |
22 | {% csrf_token %} 23 | {% for field in form.visible_fields %} 24 |
25 | 26 |
27 | {% if field.label == '问题详细描述' %} 28 | {% include 'markdown_editor.html' with textarea='id_description' %} 29 | {% endif %} 30 | {{ field }} 31 | {% if field.help_text %} 32 | {{ field.help_text }} 33 | {% endif %} 34 | {% for error in field.errors %} 35 | 36 | {% endfor %} 37 |
38 |
39 | {% endfor %} 40 |
41 |
42 | 43 | {% trans '取消提问' %} 44 |
45 |
46 |
47 | 48 |
49 |
50 | 51 | 52 | {% endblock %} -------------------------------------------------------------------------------- /questions/templates/questions/partial_answer.html: -------------------------------------------------------------------------------- 1 | {% load i18n %} 2 | {% load humanize %} 3 | 4 |
5 | {% csrf_token %} 6 |
7 | 8 | {{ answer.votes }} 9 | 10 | {% if answer.is_accepted and user == question.user %} 11 | 12 | {% elif answer.is_accepted %} 13 | 14 | {% elif user == question.user %} 15 | 16 | {% endif %} 17 |
18 |
19 |
20 | 21 | {{ answer.user.webuser.get_screen_name }} 22 | {% trans "在" %} {{ answer.create_date|naturaltime }}{% trans "回答" %} 23 |
24 |
25 | {{ answer.get_answercontent_as_markdown|safe }} 26 |
27 |
28 |
29 |
30 | -------------------------------------------------------------------------------- /questions/templates/questions/partial_question.html: -------------------------------------------------------------------------------- 1 | {% load humanize %} 2 | 3 |
4 |
5 |

6 | {% if question.has_accepted_answer %} 7 | 8 | {% endif %} 9 | {{ question.title }} 10 |

11 |
12 |
13 |
14 |
15 |
回答
16 | {{ question.get_answers_count }} 17 |
18 |
19 |
同求
20 | {{ question.favorites }} 21 |
22 |
23 |
24 | 25 | {{ question.user.webuser.get_screen_name }} 26 | 在{{ question.update_date|naturaltime }}提问 27 |
28 |
29 | {{ question.get_description_preview_as_markdown|safe }} 30 |
31 | {% if question.get_tags %} 32 |

33 | {% for tag in question.get_tags %} 34 | {{ tag }} 35 | {% endfor %} 36 |

37 | {% endif %} 38 |
39 |
-------------------------------------------------------------------------------- /questions/templates/questions/question.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load staticfiles %} 3 | {% load i18n %} 4 | 5 | {% load humanize %} 6 | 7 | {% block head %} 8 | 9 | 10 | {% endblock head %} 11 | 12 | {% block page_content %} 13 |
14 |
15 | 19 |
20 | {% csrf_token %} 21 |
22 | {% if user in question.get_favoriters %} 23 | 24 | {% else %} 25 | 26 | {% endif %} 27 | {{ question.favorites }} 28 |
29 |
30 |

{{ question.title }}

31 |
32 | 33 | {{ question.user.webuser.get_screen_name }} 34 | 在{{ question.update_date|naturaltime }}提问 35 |
36 |
37 | {{ question.get_answercontent_as_markdown|safe }} 38 |
39 | {% if question.get_tag_list %} 40 |

41 | {% for tag in question.get_tag_list %} 42 | {{ tag }} 43 | {% endfor %} 44 |

45 | {% endif %} 46 |
47 |
48 | 49 |
50 | {% for answer in question.get_answers %} 51 | {% include 'questions/partial_answer.html' with question=question answer=answer %} 52 | {% endfor %} 53 |

你的回答

54 |
55 | {% csrf_token %} 56 | {{ form.question }} 57 |
58 | {% include 'markdown_editor.html' with textarea='id_answercontent' %} 59 | {{ form.answercontent }} 60 |
61 |
62 | 63 |
64 |
65 |
66 |
67 | {% endblock %} 68 | -------------------------------------------------------------------------------- /questions/templates/questions/questions.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load staticfiles %} 3 | {% load i18n %} 4 | {% load static %} 5 | {% block title %}问答园{% endblock %} 6 | 7 | {% block head %} 8 | 9 | 10 | {% endblock %} 11 | {% block page_content %} 12 |
13 |
14 |
15 | 16 | {% trans "我要找片" %} 17 | 18 |

{% trans "找片问答列表"%}

19 |
20 | 21 |
22 | 27 | 28 | {% for question in questions %} 29 | {% include 'questions/partial_question.html' with question=question %} 30 | {% empty %} 31 |

{% trans "没有问题" %}

32 | {% endfor %} 33 | {% include 'paginator.html' with paginator=questions %} 34 | 35 |
36 | 37 |
38 |
39 | 40 | 41 | {% endblock %} -------------------------------------------------------------------------------- /questions/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /questions/urls.py: -------------------------------------------------------------------------------- 1 | __author__ = 'hadoop' 2 | from django.conf.urls import url 3 | from . import views 4 | urlpatterns = [ 5 | url(r'^questions/$',views.questions,name='questions'), 6 | url(r'^unanswered/$', views.unanswered, name='unanswered'), 7 | url(r'^answered/$',views.answered,name='answered'), 8 | url(r'^all/$',views.all,name='all'), 9 | url(r'^answer/$',views.answer,name='answer'), 10 | url(r'^ask/$',views.ask,name='ask'), 11 | url(r'^questions/favorite/$',views.favorite,name='favorite'), 12 | url(r'^questions/answer/accept/$',views.accept,name='accept'), 13 | url(r'^questions/answer/vote/$',views.vote,name='vote'), 14 | url(r'^questions/(\d+)/$',views.question,name='question'), 15 | ] -------------------------------------------------------------------------------- /questions/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/urls.pyc -------------------------------------------------------------------------------- /questions/views.py: -------------------------------------------------------------------------------- 1 | #-*- coding: UTF-8 -*- 2 | from django.shortcuts import render,redirect,get_object_or_404 3 | from django.contrib.auth.decorators import login_required 4 | from .forms import QuestionForm,AnswerForm 5 | from django.http import HttpResponse, HttpResponseForbidden 6 | from .models import Question,Answer,Tag 7 | from questions.models import Activity 8 | from django.db.models import Q 9 | from django.core.paginator import Paginator,EmptyPage,PageNotAnInteger 10 | # Create your views here. 11 | def questions(request): 12 | return all(request) 13 | 14 | def unanswered(request): 15 | questions = Question.get_unanswered() 16 | return _questions(request,questions,'unanswered') 17 | 18 | def _questions(request,questions,active): 19 | paginator = Paginator(questions,10) 20 | page = request.GET.get('page') 21 | try: 22 | questions = paginator.page(page) 23 | except PageNotAnInteger: 24 | questions = paginator.page(1) 25 | except EmptyPage: 26 | questions = paginator.page(paginator.num_pages) 27 | return render(request,'questions/questions.html',{ 28 | 'questions':questions,'active':active}) 29 | 30 | def answered(request): 31 | questions = Question.get_answered() 32 | return _questions(request, questions, 'answered') 33 | 34 | def all(request): 35 | questions = Question.objects.all() 36 | return _questions(request, questions, 'all') 37 | 38 | @login_required 39 | def ask(request): 40 | if request.method == 'POST': 41 | form = QuestionForm(request.POST) 42 | if form.is_valid(): 43 | question = Question() 44 | question.user = request.user 45 | question.title = form.cleaned_data.get('title') 46 | question.description = form.cleaned_data.get('description') 47 | question.save() 48 | tags = form.cleaned_data.get('tags') 49 | question.create_tags(tags) 50 | return redirect('/questions/') 51 | else: 52 | return render(request,'questions/ask.html',{'form':form}) 53 | else: 54 | form = QuestionForm() 55 | return render(request,'questions/ask.html',{'form':form}) 56 | 57 | 58 | def question(request,pk): 59 | question = get_object_or_404(Question,pk=pk) 60 | form = AnswerForm(initial={'question':question}) 61 | return render(request,'questions/question.html',{ 62 | 'question':question, 63 | 'form':form 64 | }) 65 | 66 | @login_required 67 | def answer(request): 68 | if request.method == 'POST': 69 | form = AnswerForm(request.POST) 70 | if form.is_valid(): 71 | user = request.user 72 | answer = Answer() 73 | answer.user = request.user 74 | answer.question = form.cleaned_data.get('question') 75 | answer.answercontent = form.cleaned_data.get('answercontent') 76 | answer.save() 77 | user.webuser.notify_answered(answer.question) 78 | return redirect(u'/questions/{0}/'.format(answer.question.pk)) 79 | else: 80 | question = form.cleaned_data.get('question') 81 | return render(request, 'questions/question.html', { 82 | 'question': question, 83 | 'form': form 84 | }) 85 | else: 86 | return redirect('/questions/') 87 | 88 | @login_required 89 | def accept(request): 90 | answer_id = request.POST['answer'] 91 | answer = Answer.objects.get(pk=answer_id) 92 | user = request.user 93 | try: 94 | user.webuser.unotify_accepted(answer.question.get_accepted_answer()) 95 | except Exception, e: 96 | pass 97 | if answer.question.user == user: 98 | answer.accept() 99 | user.webuser.notify_accepted(answer) 100 | return HttpResponse() 101 | else: 102 | return HttpResponseForbidden() 103 | 104 | @login_required 105 | def vote(request): 106 | answer_id = request.POST['answer'] 107 | answer = Answer.objects.get(pk=answer_id) 108 | vote = request.POST['vote'] 109 | user = request.user 110 | activity = Activity.objects.filter(Q(activity_type=Activity.UP_VOTE) | Q(activity_type=Activity.DOWN_VOTE), user=user, answer=answer_id) 111 | if activity: 112 | activity.delete() 113 | if vote in [Activity.UP_VOTE, Activity.DOWN_VOTE]: 114 | activity = Activity(activity_type=vote, user=user, answer=answer_id) 115 | activity.save() 116 | return HttpResponse(answer.calculate_votes()) 117 | 118 | @login_required 119 | def favorite(request): 120 | question_id = request.POST['question'] 121 | question = Question.objects.get(pk=question_id) 122 | user = request.user 123 | activity = Activity.objects.filter(activity_type=Activity.FAVORITE, user=user, question=question_id) 124 | if activity: 125 | activity.delete() 126 | user.webuser.unotify_favorited(question) 127 | else: 128 | activity = Activity(activity_type=Activity.FAVORITE, user=user, question=question_id) 129 | activity.save() 130 | user.webuser.notify_favorited(question) 131 | return HttpResponse(question.calculate_favorites()) -------------------------------------------------------------------------------- /questions/views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/questions/views.pyc -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.8.2 2 | Markdown==2.6.2 3 | MarkupSafe==0.23 4 | MySQL-python==1.2.5 5 | Pillow==2.3.0 6 | Unidecode==0.04.14 7 | Unipath==1.1 8 | decorator==3.4.0 9 | django-adminfiles==1.0.1 10 | django-cleanup==0.3.1 11 | django-haystack==2.4.0 12 | django-markdown==0.8.4 13 | django-pygments==0.1 14 | django-templateaddons==0.1 15 | django-celery==3.1.17 -------------------------------------------------------------------------------- /static/css/common.css: -------------------------------------------------------------------------------- 1 | html{font-size: 62.5%;} 2 | body { 3 | padding-top: 50px; 4 | } 5 | 6 | img { 7 | width: 100%; 8 | } 9 | 10 | #mainbody{padding-top:20px;margin-bottom:100px;} 11 | 12 | .navbar-inverse input[type="text"] { 13 | background: #fff; 14 | border: none; 15 | color: #999; 16 | } 17 | 18 | .navbar-inverse .navbar-form { 19 | position: relative; 20 | } 21 | 22 | .navbar-inverse button[type="submit"] { 23 | position: absolute; 24 | top: 25%; 25 | right: 20px; 26 | background: none; 27 | border: none; 28 | } 29 | 30 | @media(min-width: 768px) { 31 | .navbar-inverse button[type="submit"] { 32 | top: 15%; 33 | } 34 | } 35 | 36 | .navbar-inverse .glyphicon { 37 | color: #999; 38 | } 39 | 40 | .profile { 41 | margin-right: 25px; 42 | } 43 | 44 | #footer {width: 100%; padding:10px 0;background: #2c3038;color: #fff;font-size: 1.6rem;line-height: 2rem;position: fixed;bottom: 0;z-index:100px;} 45 | #footer a{color:#fff;} 46 | #footer a:hover{color:#428bca;text-decoration: none;} 47 | 48 | /*公用样式*/ 49 | 50 | .wtfradio li {float:left ;display: inline-block; font-weight: 700;color: #555;} 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /static/css/index.css: -------------------------------------------------------------------------------- 1 | //轮播图 2 | .carousel-caption{font-size:1.4rem;line-height: 2rem;} 3 | .carousel-caption h2{font-size: 1.6rem;padding-bottom:0.5rem;} 4 | .sidebar{border:1px solid #ddd;border-top:2px solid #00b7ee;color: #9fa0a0;padding: 10px;} 5 | .sidebar_cell{padding-bottom:1rem;margin-bottom:1rem;border-bottom: 1px solid #ccc;} 6 | .sidebar_cell_title{font-size:1.6rem;padding-bottom:0.5rem;font-weight: bold;} 7 | .sidebar_cell_list{font-size: 1.4rem;line-height: 2rem;} 8 | .movieList{border: 1px solid #ddd;padding:1rem;} 9 | .movieList_tab{border-bottom: 2px solid #00b7ee;margin-bottom: 1rem;} 10 | .movieList_tab li{display: inline-block;padding:0.5rem 1.5rem;cursor: pointer;color:#333;} 11 | .movieList_tab li.current{background:#00b7ee;color: #fff;} 12 | .movieList_con{margin-bottom: 1rem;font-size: 1.6rem;line-height: 2rem;} 13 | .movieList_page{text-align: center;} 14 | .movieList_con_cell_info{border: 1px solid #ddd;position: relative;} 15 | .movieList_con_cell_info dl{padding:0.5rem 0 0;margin: 0;} 16 | .movieList_con_cell_info img{width:100px;height:147px;} 17 | .movieList_con_cell_mask{width: 100%;height: 100%;background: rgba(0,0,0,0.6);position: absolute;left: 0;top: 0;text-align: center;overflow: hidden;display: none;} 18 | .movieInfo{display: block;text-decoration: none;padding-top:15%;color: #fff;cursor: pointer;} 19 | .movieInfo:hover{color: #fff;text-decoration:none;opacity: 0.8} 20 | .movieInfo_dl{padding-bottom: 5px;text-align: left;overflow: hidden;} 21 | .movieInfo_dl dt{float: left;width:40%;text-align: right;} 22 | .movieInfo_dl dd{float: left;width:60%;} 23 | .btnPlay,.btnDown{font-size:3rem;margin:5% 5% 0; color: #fff;cursor: pointer;} 24 | .btnPlay:hover,.btnDown:hover{color:#00b7ee;} 25 | .movieList_con_cell_score{padding: 1rem 0 0 1rem;} 26 | .movieList_con_cell_score strong{font-size: 2.4rem;color: #f60;} 27 | /*排行榜*/ 28 | .rankBar{border: 1px solid #ddd;margin-bottom: 2rem;font-size: 1.6rem;line-height:2.5rem; padding:1rem;} 29 | .rankBar_title{border-bottom: 1px solid #00b7ee;color:#00b7ee;padding-bottom: 1rem;font-weight: bold;} 30 | .rankBar_list li{padding:0.5rem 1rem;} 31 | .rankBar_list li:nth-child(2n){background:rgba(221,221,221,0.3);} 32 | .rankBar_list li:nth-child(2n+1){background:rgba(221,221,221,0.5);} 33 | .rankBar_list li:hover{background:#00b7ee;} 34 | .rankBar_list li:hover a{color: #fff;} 35 | .rankBar_list li a{color: #333;font-size: 1.4rem;} 36 | .rankBar_list li a:hover{text-decoration: none;} 37 | .h1, .h2, .h3, h1, h2, h3 { 38 | margin-bottom: 5px; 39 | margin-top: 5px; 40 | } 41 | 42 | ol ul li { 43 | ist-style: outside none none;} 44 | 45 | img{ 46 | border:0 none; 47 | position:relative; 48 | } 49 | .post-thumbnail{ 50 | height:147px; 51 | position:relative; 52 | overflow:hidden; 53 | width:100%; 54 | } 55 | .moviebody{ 56 | background-color:#f2f2f2; 57 | color:#666; 58 | font-size:14px; 59 | } 60 | .movie-info{ 61 | background-color: #fff; 62 | border-top: 1px solid #f1f1f1; 63 | height: auto; 64 | padding: 15px 14px; 65 | text-align: center; 66 | } 67 | .movie-info .title{ 68 | padding:0px; 69 | text-align:center; 70 | } 71 | .movie-info .title a { 72 | color: #000; 73 | text-decoration: none; 74 | } 75 | .on-hover{ 76 | color: #4ba6e5 !important; 77 | text-decoration: none !important; 78 | } 79 | .movieList_con_cell_info{ 80 | height:270px; 81 | overflow:hidden; 82 | } 83 | .others{ 84 | color:#999; 85 | overflow:hidden; 86 | margin-top:9px; 87 | text-align:center; 88 | } 89 | .others>li{ 90 | float:right; 91 | font-size:13px; 92 | text-align:left; 93 | margin:0 0 0 16px; 94 | } 95 | .in_category{ 96 | float:left; 97 | } 98 | .play{ 99 | background-image:url("/static/images/views.png"); 100 | background-position:0 center; 101 | background-repeat:no-repeat; 102 | text-indent:18px; 103 | } 104 | .img_title{ 105 | background-color:#fff; 106 | bottom:0; 107 | cursor:default; 108 | height:auto; 109 | line-height:2em; 110 | padding:10px; 111 | position:absolute; 112 | width:221px; 113 | word-break:break-all; 114 | word-wrap:break-word; 115 | text-align:center; 116 | } 117 | .havesee{ 118 | position:absolute; 119 | right:2px; 120 | cursor:pointer; 121 | display:block; 122 | } 123 | .currentmovietype{ 124 | color:#333; 125 | } 126 | .currentmovietype:hover{ 127 | text-decoration:none; 128 | } 129 | .currentmovietype:active{ 130 | text-decoration:none; 131 | } 132 | .currentmovietype:visited{ 133 | color:#fff; 134 | text-decoration:none; 135 | } 136 | 137 | 138 | 139 | -------------------------------------------------------------------------------- /static/css/index1.css: -------------------------------------------------------------------------------- 1 | //轮播图 2 | .carousel-caption{font-size:1.4rem;line-height: 2rem;} 3 | .carousel-caption h2{font-size: 1.6rem;padding-bottom:0.5rem;} 4 | .sidebar{border:1px solid #ddd;border-top:2px solid #00b7ee;color: #9fa0a0;padding: 10px;} 5 | .sidebar_cell{padding-bottom:1rem;margin-bottom:1rem;border-bottom: 1px solid #ccc;} 6 | .sidebar_cell_title{font-size:1.6rem;padding-bottom:0.5rem;font-weight: bold;} 7 | .sidebar_cell_list{font-size: 1.4rem;line-height: 2rem;} 8 | .movieList{border: 1px solid #ddd;padding:1rem;} 9 | .movieList_tab{border-bottom: 2px solid #00b7ee;margin-bottom: 1rem;} 10 | .movieList_tab li{display: inline-block;padding:0.5rem 1.5rem;cursor: pointer;color:#333;} 11 | .movieList_tab li.current{background:#00b7ee;color: #fff;} 12 | .movieTab_con li{display: none;} 13 | .movieTab_con li.current{display: block;} 14 | .movieList_con{margin-bottom: 1rem;font-size: 1.6rem;line-height: 2rem;} 15 | .movieList_page{text-align: center;} 16 | .movieList_con_cell_info{border: 1px solid #ddd;padding: 1rem;position: relative;} 17 | .movieList_con_cell_info dl{padding:0.5rem 0 0;margin: 0;} 18 | .movieList_con_cell_info img{width:100px;height:147px;} 19 | .movieList_con_cell_mask{width: 100%;height: 100%;background: rgba(0,0,0,0.6);position: absolute;left: 0;top: 0;text-align: center;overflow: hidden;display: none;} 20 | .movieInfo{display: block;text-decoration: none;padding-top:15%;color: #fff;cursor: pointer;} 21 | .movieInfo:hover{color: #fff;text-decoration:none;opacity: 0.8} 22 | .movieInfo_dl{padding-bottom: 5px;text-align: left;overflow: hidden;} 23 | .movieInfo_dl dt{float: left;width:40%;text-align: right;} 24 | .movieInfo_dl dd{float: left;width:60%;} 25 | .btnPlay,.btnDown{font-size:3rem;margin:5% 5% 0; color: #fff;cursor: pointer;} 26 | .btnPlay:hover,.btnDown:hover{color:#00b7ee;} 27 | .movieList_con_cell_score{padding: 1rem 0 0 1rem;} 28 | .movieList_con_cell_score strong{font-size: 2.4rem;color: #f60;} 29 | /*排行榜*/ 30 | .rankBar{border: 1px solid #ddd;margin-bottom: 2rem;font-size: 1.6rem;line-height:2.5rem; padding:1rem;} 31 | .rankBar_title{border-bottom: 1px solid #00b7ee;color:#00b7ee;padding-bottom: 1rem;font-weight: bold;} 32 | .rankBar_list li{padding:0.5rem 1rem;} 33 | .rankBar_list li:nth-child(2n){background:rgba(221,221,221,0.3);} 34 | .rankBar_list li:nth-child(2n+1){background:rgba(221,221,221,0.5);} 35 | .rankBar_list li:hover{background:#00b7ee;} 36 | .rankBar_list li:hover a{color: #fff;} 37 | .rankBar_list li a{color: #333;font-size: 1.4rem;} 38 | .rankBar_list li a:hover{text-decoration: none;} 39 | .h1, .h2, .h3, h1, h2, h3 { 40 | margin-bottom: 5px; 41 | margin-top: 5px; 42 | } 43 | 44 | -------------------------------------------------------------------------------- /static/css/jquery.Jcrop.min.css: -------------------------------------------------------------------------------- 1 | /* jquery.Jcrop.min.css v0.9.12 (build:20130126) */ 2 | .jcrop-holder{direction:ltr;text-align:left;} 3 | .jcrop-vline,.jcrop-hline{background:#FFF url(../img/Jcrop.gif);font-size:0;position:absolute;} 4 | .jcrop-vline{height:100%;width:1px!important;} 5 | .jcrop-vline.right{right:0;} 6 | .jcrop-hline{height:1px!important;width:100%;} 7 | .jcrop-hline.bottom{bottom:0;} 8 | .jcrop-tracker{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;height:100%;width:100%;} 9 | .jcrop-handle{background-color:#333;border:1px #EEE solid;font-size:1px;height:7px;width:7px;} 10 | .jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0;} 11 | .jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px;} 12 | .jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%;} 13 | .jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%;} 14 | .jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0;} 15 | .jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0;} 16 | .jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0;} 17 | .jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px;} 18 | .jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%;} 19 | .jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px;} 20 | .jcrop-dragbar.ord-n{margin-top:-4px;} 21 | .jcrop-dragbar.ord-s{bottom:0;margin-bottom:-4px;} 22 | .jcrop-dragbar.ord-e{margin-right:-4px;right:0;} 23 | .jcrop-dragbar.ord-w{margin-left:-4px;} 24 | .jcrop-light .jcrop-vline,.jcrop-light .jcrop-hline{background:#FFF;filter:alpha(opacity=70)!important;opacity:.70!important;} 25 | .jcrop-light .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#000;border-color:#FFF;border-radius:3px;} 26 | .jcrop-dark .jcrop-vline,.jcrop-dark .jcrop-hline{background:#000;filter:alpha(opacity=70)!important;opacity:.7!important;} 27 | .jcrop-dark .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#FFF;border-color:#000;border-radius:3px;} 28 | .solid-line .jcrop-vline,.solid-line .jcrop-hline{background:#FFF;} 29 | .jcrop-holder img,img.jcrop-preview{max-width:none;} 30 | .jcrop-keymgr{display:none!important;} -------------------------------------------------------------------------------- /static/css/person_home_info.css: -------------------------------------------------------------------------------- 1 | //个人中心左侧菜单 2 | .list-group {border:none;} 3 | .list-group a{display:block} 4 | .list-group a:hover{background:#00b7ee;} 5 | label[for^='id'] { 6 | font-weight:normal; 7 | } -------------------------------------------------------------------------------- /static/css/questions.css: -------------------------------------------------------------------------------- 1 | #id_description{ 2 | margin-top:5px; 3 | } 4 | #id_answercontent{ 5 | margin-top:5px; 6 | } 7 | .questions { 8 | margin-top: 1em; 9 | } 10 | 11 | .questions .pagination { 12 | margin: 0; 13 | } 14 | 15 | .questions .user { 16 | width: 25px; 17 | border-radius: 3px; 18 | } 19 | 20 | .questions .asked { 21 | color: #aaaaaa; 22 | font-size: .8em; 23 | } 24 | 25 | .questions .username { 26 | margin-left: .3em; 27 | font-weight: 500; 28 | font-size: 0.8em; 29 | } 30 | 31 | .questions .panel-body:hover { 32 | background-color: #f5f8fa; 33 | cursor: pointer; 34 | } 35 | 36 | .questions .question-user { 37 | margin-bottom: .6em; 38 | } 39 | 40 | .options { 41 | text-align: center; 42 | 43 | } 44 | 45 | .options span { 46 | display: block; 47 | font-size: 1.2em; 48 | } 49 | 50 | .options span.favorite { 51 | font-size: 3em; 52 | margin-top: .4em; 53 | } 54 | 55 | .options span.vote { 56 | font-size: 2em; 57 | color: #ddd; 58 | } 59 | 60 | .options span.vote:hover { 61 | cursor: pointer; 62 | color: #428bca; 63 | } 64 | 65 | .options span.voted { 66 | color: #333; 67 | } 68 | 69 | .options span.accept { 70 | font-size: 2.6em; 71 | color: #dddddd; 72 | margin-top: .2em; 73 | } 74 | 75 | .options span.accept:hover { 76 | cursor: pointer; 77 | color: #5cb85c; 78 | } 79 | 80 | .options span.accepted { 81 | color: #5cb85c; 82 | } 83 | .question{ 84 | margin-top:1em; 85 | } 86 | .answer { 87 | margin-top: 1em; 88 | } 89 | 90 | .answer .answer-user, .question .question-user { 91 | margin-bottom: .6em; 92 | } 93 | 94 | .answer .answer-user .user, .question .question-user .user { 95 | width: 40px; 96 | border-radius: 5px; 97 | } 98 | 99 | .answer .answer-user .username, .question .question-user .username { 100 | margin-left: .4em; 101 | } 102 | 103 | .answer .answered, .question .asked { 104 | color: #aaaaaa; 105 | margin-left: .6em; 106 | } 107 | 108 | .favorite { 109 | cursor: pointer; 110 | } 111 | 112 | .favorite:hover { 113 | color: #f0ad4e; 114 | } 115 | 116 | .favorited { 117 | color: #f0ad4e; 118 | } 119 | 120 | .question-info { 121 | text-align: center; 122 | float: right; 123 | padding: 0 1em; 124 | } 125 | 126 | .question-info h5 { 127 | margin: 0; 128 | margin-bottom: .2em; 129 | } 130 | 131 | .question-info .info:first-child { 132 | margin-bottom: 1.2em; 133 | } -------------------------------------------------------------------------------- /static/css/register.css: -------------------------------------------------------------------------------- 1 | .registerForm{width:60%;margin: 0 auto;} 2 | .form-group-left{width:80%;} 3 | -------------------------------------------------------------------------------- /static/css/reset.css: -------------------------------------------------------------------------------- 1 | html, body, div, span, applet, object, iframe, 2 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 3 | a, abbr, acronym, address, big, cite, code, 4 | del, dfn, em, img, ins, kbd, q, s, samp, 5 | small, strike, strong, sub, sup, tt, var, 6 | b, u, i, center, 7 | dl, dt, dd, ol, ul, li, 8 | fieldset, form, label, legend, 9 | table, caption, tbody, tfoot, thead, tr, th, td, 10 | article, aside, canvas, details, embed, 11 | figure, figcaption, footer, header, hgroup, 12 | menu, nav, output, ruby, section, summary, 13 | time, mark, audio, video { 14 | margin: 0; 15 | padding: 0; 16 | border: 0; 17 | font-size: 100%; 18 | font: inherit; 19 | vertical-align: baseline; 20 | } 21 | /* HTML5 display-role reset for older browsers */ 22 | article, aside, details, figcaption, figure, 23 | footer, header, hgroup, menu, nav, section { 24 | display: block; 25 | } 26 | body { 27 | line-height: 1; 28 | } 29 | ol, ul { 30 | list-style: none; 31 | } 32 | blockquote, q { 33 | quotes: none; 34 | } 35 | blockquote:before, blockquote:after, 36 | q:before, q:after { 37 | content: ''; 38 | content: none; 39 | } 40 | table { 41 | border-collapse: collapse; 42 | border-spacing: 0; 43 | } -------------------------------------------------------------------------------- /static/css/styles.css: -------------------------------------------------------------------------------- 1 | 2 | img { 3 | width: 100%; 4 | } 5 | 6 | .navbar-inverse input[type="text"] { 7 | background: #313131; 8 | border: none; 9 | color: #999; 10 | } 11 | 12 | .navbar-inverse .navbar-form { 13 | position: relative; 14 | } 15 | 16 | .navbar-inverse button[type="submit"] { 17 | position: absolute; 18 | top: 25%; 19 | right: 20px; 20 | background: none; 21 | border: none; 22 | } 23 | 24 | @media(min-width: 768px) { 25 | .navbar-inverse button[type="submit"] { 26 | top: 15%; 27 | } 28 | } 29 | 30 | .navbar-inverse .glyphicon { 31 | color: #999; 32 | } 33 | 34 | .profile { 35 | margin-right: 25px; 36 | } 37 | 38 | .footer{ 39 | position:fixed; 40 | bottom:0px; 41 | z-index:99px; 42 | background:#000000; 43 | } 44 | 45 | .sider-movie{ 46 | background-color: #CCC; 47 | width: 139px; 48 | overflow:hidden; 49 | text-overflow:ellipsis;/*文字溢出的部分隐藏并用省略号代替*/ 50 | white-space:nowrap;/*文本不自动换行*/ 51 | } 52 | -------------------------------------------------------------------------------- /static/css/user.css: -------------------------------------------------------------------------------- 1 | .img-circle{ 2 | -moz-transition: all 0.8s ease-in-out; 3 | -webkit-transition: all 0.8s ease-in-out; 4 | -o-transition: all 0.8s ease-in-out; 5 | -ms-transition: all 0.8s ease-in-out; 6 | transition: all 0.8s ease-in-out; 7 | } 8 | .img-circle:hover{ 9 | -moz-transform: rotate(360deg); 10 | -webkit-transform: rotate(360deg); 11 | -o-transform: rotate(360deg); 12 | -ms-transform: rotate(360deg); 13 | transform: rotate(360deg); 14 | } 15 | .portrait{ 16 | 17 | } 18 | .img-circle{ 19 | float:right; 20 | } 21 | .userinfo{ 22 | text-align:left; 23 | } -------------------------------------------------------------------------------- /static/css/webchat.css: -------------------------------------------------------------------------------- 1 | .chat-content-div{ 2 | height:450px; 3 | overflow:auto; 4 | } 5 | .chat-box{ 6 | margin-top:10px; 7 | } 8 | .contact-list-div{ 9 | height:490px; 10 | overflow:auto; 11 | } 12 | .contact-list-box{ 13 | margin-top:10px; 14 | } 15 | .chat-header{ 16 | height:30px; 17 | } 18 | .sent-message{ 19 | text-align:right; 20 | } -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/favicon.ico -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/favicon.png -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /static/images/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/01.jpg -------------------------------------------------------------------------------- /static/images/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/02.jpg -------------------------------------------------------------------------------- /static/images/favourite_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/favourite_blue.png -------------------------------------------------------------------------------- /static/images/favourite_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/favourite_green.png -------------------------------------------------------------------------------- /static/images/favourite_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/favourite_red.png -------------------------------------------------------------------------------- /static/images/resizeApi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/resizeApi.png -------------------------------------------------------------------------------- /static/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/user.png -------------------------------------------------------------------------------- /static/images/views.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/images/views.png -------------------------------------------------------------------------------- /static/img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/1.png -------------------------------------------------------------------------------- /static/img/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/10.png -------------------------------------------------------------------------------- /static/img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/2.png -------------------------------------------------------------------------------- /static/img/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/3.png -------------------------------------------------------------------------------- /static/img/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/4.png -------------------------------------------------------------------------------- /static/img/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/5.png -------------------------------------------------------------------------------- /static/img/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/6.png -------------------------------------------------------------------------------- /static/img/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/7.png -------------------------------------------------------------------------------- /static/img/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/8.png -------------------------------------------------------------------------------- /static/img/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/9.png -------------------------------------------------------------------------------- /static/img/Jcrop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/Jcrop.gif -------------------------------------------------------------------------------- /static/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/favicon.png -------------------------------------------------------------------------------- /static/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/loading.gif -------------------------------------------------------------------------------- /static/img/user.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/user.gif -------------------------------------------------------------------------------- /static/img/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/user.png -------------------------------------------------------------------------------- /static/img/user1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/img/user1.png -------------------------------------------------------------------------------- /static/js/app.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | 3 | $('.prev-slide').on('click', function() { 4 | $('#slideshow').carousel('prev'); 5 | }); 6 | 7 | $('.next-slide').on('click', function() { 8 | $('#slideshow').carousel('next'); 9 | }); 10 | 11 | $(document).on('keydown', function(e) { 12 | switch (e.which) { 13 | case 37: 14 | $('#slideshow').carousel('prev'); 15 | break; 16 | case 39: 17 | $('#slideshow').carousel('next'); 18 | break; 19 | } 20 | }); 21 | 22 | var play = false; 23 | $('.play-and-stop').click( 24 | function() { 25 | if (!play) { 26 | $('#slideshow').carousel('cycle'); 27 | $(this).children('span').removeClass('glyphicon-play').addClass('glyphicon-pause'); 28 | } else { 29 | $('#slideshow').carousel('pause'); 30 | $(this).children('span').removeClass('glyphicon-pause').addClass('glyphicon-play'); 31 | } 32 | play = !play; 33 | } 34 | ); 35 | 36 | }); -------------------------------------------------------------------------------- /static/js/common.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | //获取底部高度,赋值mainbody外边距 3 | var footHeight=$('#footer').height(); 4 | $('#mainbody').css('marginBottom',footHeight+30+'px'); 5 | $(window).resize( 6 | function(){ 7 | $('#mainbody').css('marginBottom',footHeight+20+'px'); 8 | } 9 | ); 10 | $(".movie-search").focus(function(){ 11 | $(this).css('background','#fff'); 12 | $(this).animate({width:'300px'}); 13 | });//end movie-search input 14 | }) -------------------------------------------------------------------------------- /static/js/movies.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | //点击播放电影,生成播放记录 3 | 4 | $('a.btn-movie').click(function(e){ 5 | var movieid= $(this).attr("id"); 6 | 7 | //用get方法传输数据,不好不好,以后要改,先用这种方式吧 8 | $.get('/generatemoviehistory',{movieid:movieid}) 9 | //用Ajax不知道为什么出问题唉 10 | /* $.ajax({ 11 | type: "POST", 12 | contentType: "application/json; charset=utf-8", 13 | url: '/generatemoviehistory', 14 | data: JSON.stringify({movieid: movieid}), 15 | success: function (data) { 16 | console.log(data.movieid); 17 | }, 18 | dataType: "json" 19 | });*/ 20 | 21 | });//end bofang movie 22 | 23 | $(".movieList_con_cell").hover(function(){ 24 | $(this).find(".movieList_con_cell_info").css("border-bottom","1px solid #4ba6e5") 25 | $(this).find(".movie-info .title a").addClass("on-hover"); 26 | }, 27 | function(){ 28 | $(this).find(".movie-info .title a").removeClass("on-hover"); 29 | $(this).find(".movieList_con_cell_info").css("border-bottom","none"); 30 | });//end movielist_con_cell 31 | 32 | $(".post-thumbnail").hover(function(){ 33 | $(this).find(".img_title").css("display","block").slideUp(2200); 34 | }, 35 | function(){ 36 | $(this).find(".img_title").css("display","none").slideUp(2200); 37 | });//end post-thunbmal 38 | 39 | //点击右上角收藏按钮 40 | $(".havesee").click(function(){ 41 | alert("hahah") 42 | $(this).parents("div .col-md-4").remove(); 43 | 44 | });//end havesee 45 | 46 | }); 47 | 48 | 49 | -------------------------------------------------------------------------------- /static/js/nomovie.markdown.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | $.fn.markdown = function () { 4 | var _textarea = $(this); 5 | 6 | $(".markdown .btn-group button").click(function (e) { 7 | e.preventDefault(); 8 | var action = $(this).attr("ref"); 9 | var selection = $(_textarea).selection(); 10 | 11 | switch (action) { 12 | case "header": 13 | $(_textarea).selection("replace", {text: "# " + selection}); 14 | break; 15 | case "bold": 16 | $(_textarea).selection("replace", {text: "**" + selection + "**"}); 17 | break; 18 | case "italic": 19 | $(_textarea).selection("replace", {text: "_" + selection + "_"}); 20 | break; 21 | case "list": 22 | var selection_list = selection.split("\n"); 23 | var selection_list_result = ""; 24 | for (var i = 0 ; i < selection_list.length ; i++) { 25 | selection_list_result += "* " + selection_list[i] + "\n"; 26 | }; 27 | if (selection_list_result.length > 0) { 28 | selection_list_result = selection_list_result.substring(0, selection_list_result.length - 1); 29 | } 30 | $(_textarea).selection("replace", {text: selection_list_result}); 31 | break; 32 | case "link": 33 | $("#markdown_link_text").val(""); 34 | $("#markdown_url").val(""); 35 | $("#markdown_insert_link").modal("show"); 36 | break; 37 | case "picture": 38 | $("#markdown_picture_url").val(""); 39 | $("#markdown_alt_text").val(""); 40 | $("#markdown_insert_picture").modal("show"); 41 | break; 42 | case "indent-left": 43 | var selection_list = selection.split("\n"); 44 | var selection_list_result = ""; 45 | for (var i = 0; i < selection_list.length; i++) { 46 | selection_list_result += " " + selection_list[i] + "\n"; 47 | }; 48 | if (selection_list_result.length > 0) { 49 | selection_list_result = selection_list_result.substring(0, selection_list_result.length - 1); 50 | } 51 | $(_textarea).selection("replace", {text: selection_list_result}); 52 | break; 53 | case "indent-right": 54 | var selection_list = selection.split("\n"); 55 | var selection_list_result = ""; 56 | for (var i = 0; i < selection_list.length ; i++) { 57 | selection_list_result += selection_list[i].trim() + "\n"; 58 | }; 59 | if (selection_list_result.length > 0) { 60 | selection_list_result = selection_list_result.substring(0, selection_list_result.length - 1); 61 | } 62 | $(_textarea).selection("replace", {text: selection_list_result}); 63 | break; 64 | }; 65 | 66 | }); 67 | 68 | $(".add_link").click(function () { 69 | var selection = $(_textarea).selection(); 70 | var text = $("#markdown_link_text").val(); 71 | var url = $("#markdown_url").val(); 72 | var link = "[" + text + "](" + url + ")"; 73 | $(_textarea).selection("replace", {text: link}); 74 | $("#markdown_insert_link").modal("hide") 75 | }); 76 | 77 | $(".add_picture").click(function () { 78 | var selection = $(_textarea).selection(); 79 | var url = $("#markdown_picture_url").val(); 80 | var alt = $("#markdown_alt_text").val(); 81 | var picture = "![" + alt + "](" + url + ")"; 82 | $(_textarea).selection("replace", {text: picture}); 83 | $("#markdown_insert_picture").modal("hide") 84 | }); 85 | 86 | }; 87 | }); -------------------------------------------------------------------------------- /static/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /static/js/picture.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | var jcrop_api, 4 | boundx, 5 | boundy, 6 | xsize = 200, 7 | ysize = 200; 8 | 9 | $("#crop-picture").Jcrop({ 10 | aspectRatio: xsize / ysize, 11 | onSelect: updateCoords, 12 | setSelect: [0, 0, 200, 200] 13 | },function(){ 14 | var bounds = this.getBounds(); 15 | boundx = bounds[0]; 16 | boundy = bounds[1]; 17 | jcrop_api = this; 18 | }); 19 | 20 | function updateCoords(c) { 21 | $("#x").val(c.x); 22 | $("#y").val(c.y); 23 | $("#w").val(c.w); 24 | $("#h").val(c.h); 25 | }; 26 | 27 | $("#btn-upload-picture").click(function () { 28 | $("#picture-upload-form input[name='picture']").click(); 29 | }); 30 | 31 | $("#picture-upload-form input[name='picture']").change(function () { 32 | $("#picture-upload-form").submit(); 33 | }); 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /static/js/questions.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | $(".question .panel-body").click(function () { 3 | var question_id = $(this).closest(".question").attr("question-id"); 4 | location.href = "/questions/" + question_id; 5 | }); 6 | 7 | $(".accept").click(function () { 8 | var span = $(this); 9 | alert($(this)) 10 | var question = $(".question").attr("question-id"); 11 | var answer = $(this).closest(".answer").attr("answer-id"); 12 | var csrf = $("input[name='csrfmiddlewaretoken']", $(this).closest(".answer")).val(); 13 | alert(csrf) 14 | $.ajax({ 15 | url: '/questions/answer/accept/', 16 | data: { 17 | 'question': question, 18 | 'answer': answer, 19 | 'csrfmiddlewaretoken': csrf 20 | }, 21 | type: 'post', 22 | cache: false, 23 | success: function (data) { 24 | $(".accept").removeClass("accepted"); 25 | $(".accept").prop("title", "采纳该答案."); 26 | $(span).addClass("accepted"); 27 | $(span).prop("title", "不采纳该答案."); 28 | } 29 | }); 30 | }); 31 | 32 | $(".vote").click(function () { 33 | var span = $(this); 34 | var answer = $(this).closest(".answer").attr("answer-id"); 35 | var csrf = $("input[name='csrfmiddlewaretoken']", $(this).closest(".answer")).val(); 36 | var vote = ""; 37 | if ($(this).hasClass("voted")) { 38 | var vote = "R"; 39 | } 40 | else if ($(this).hasClass("up-vote")) { 41 | vote = "U"; 42 | } 43 | else if ($(this).hasClass("down-vote")) { 44 | vote = "D"; 45 | } 46 | $.ajax({ 47 | url: '/questions/answer/vote/', 48 | data: { 49 | 'answer': answer, 50 | 'vote': vote, 51 | 'csrfmiddlewaretoken': csrf 52 | }, 53 | type: 'post', 54 | cache: false, 55 | success: function (data) { 56 | var options = $(span).closest('.options'); 57 | $('.vote', options).removeClass('voted'); 58 | if (vote == 'U' || vote == 'D') { 59 | $(span).addClass('voted'); 60 | } 61 | $('.votes', options).text(data); 62 | } 63 | }); 64 | }); 65 | 66 | $(".favorite").click(function () { 67 | var span = $(this); 68 | var question = $(this).closest(".question").attr("question-id"); 69 | var csrf = $("input[name='csrfmiddlewaretoken']", $(this).closest(".question")).val(); 70 | 71 | $.ajax({ 72 | url: '/questions/favorite/', 73 | data: { 74 | 'question': question, 75 | 'csrfmiddlewaretoken': csrf 76 | }, 77 | type: 'post', 78 | cache: false, 79 | success: function (data) { 80 | if ($(span).hasClass("favorited")) { 81 | $(span).removeClass("glyphicon-star") 82 | .removeClass("favorited") 83 | .addClass("glyphicon-star-empty"); 84 | } 85 | else { 86 | $(span).removeClass("glyphicon-star-empty") 87 | .addClass("glyphicon-star") 88 | .addClass("favorited"); 89 | } 90 | $(".favorite-count").text(data); 91 | } 92 | }); 93 | 94 | }); 95 | }); -------------------------------------------------------------------------------- /static/js/webchat.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $(".chat-msg-sendbox").delegate('input','keydown',function(e){ 3 | if(e.which ==13){ 4 | var msg_text = $("#input-msg").val(); 5 | if($.trim(msg_text).length>0){ 6 | // SendMsg(msg_text); 7 | console.log(msg_text); 8 | } 9 | AddSentMsgIntoBox(msg_text); 10 | $("#input-msg").val(''); 11 | } 12 | });//end delegate 13 | });//end document ready 14 | 15 | function AddSentMsgIntoBox(msg_text){ 16 | var d = new Date(); 17 | var send_time = d.toGMTString() 18 | var username = {{user.username}} 19 | console.log(username) 20 | var msg_ele = "
  • "+ 21 | " "+ 22 | "
    "+msg_text+"
    "+{{user.username}}+"|"+ send_time+"
  • " 23 | $(".chat-content").append(msg_ele) 24 | } -------------------------------------------------------------------------------- /static/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /static/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /static/upload_imgs/2015-05-24_235051_的屏幕截图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/upload_imgs/2015-05-24_235051_的屏幕截图.png -------------------------------------------------------------------------------- /static/upload_imgs/2015-06-27_200851_的屏幕截图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/upload_imgs/2015-06-27_200851_的屏幕截图.png -------------------------------------------------------------------------------- /static/vimeo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/vimeo.ico -------------------------------------------------------------------------------- /static/vimeo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/static/vimeo.png -------------------------------------------------------------------------------- /templates/admin/base_site.html: -------------------------------------------------------------------------------- 1 | {% extends "admin/base.html" %} 2 | 3 | {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} 4 | 5 | {% block branding %} 6 |

    Nomovie

    7 | {% endblock %} 8 | 9 | {% block nav-global %}{% endblock %} 10 | -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html'%} 2 | {% block title%} 首页 {% endblock %} 3 | 4 | {% block slideshow %} 5 | 6 | 7 | 51 | 52 | 53 | {% endblock %} 54 | 55 | -------------------------------------------------------------------------------- /templates/markdown_editor.html: -------------------------------------------------------------------------------- 1 | {% load staticfiles %} 2 | 3 | 4 | 5 |
    6 | 30 | 54 | 70 |
    71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
    80 | 81 |
    82 | -------------------------------------------------------------------------------- /templates/paginator.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /webchat/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/__init__.py -------------------------------------------------------------------------------- /webchat/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/__init__.pyc -------------------------------------------------------------------------------- /webchat/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from . import models 3 | # Register your models here. 4 | admin.site.register(models.ChatGroup) -------------------------------------------------------------------------------- /webchat/admin.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/admin.pyc -------------------------------------------------------------------------------- /webchat/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('webuser', '0004_auto_20160426_1936'), 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='ChatGroup', 16 | fields=[ 17 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 18 | ('name', models.CharField(max_length=64)), 19 | ('memberlimits', models.IntegerField(default=200)), 20 | ('admins', models.ManyToManyField(related_name='group_admins', to='webuser.Webuser', blank=True)), 21 | ('founder', models.ForeignKey(to='webuser.Webuser')), 22 | ('members', models.ManyToManyField(related_name='group_members', to='webuser.Webuser', blank=True)), 23 | ], 24 | ), 25 | ] 26 | -------------------------------------------------------------------------------- /webchat/migrations/0001_initial.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/migrations/0001_initial.pyc -------------------------------------------------------------------------------- /webchat/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/migrations/__init__.py -------------------------------------------------------------------------------- /webchat/migrations/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/migrations/__init__.pyc -------------------------------------------------------------------------------- /webchat/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from webuser.models import Webuser 3 | # Create your models here. 4 | class ChatGroup(models.Model): 5 | name = models.CharField(max_length=64) 6 | founder = models.ForeignKey(Webuser) 7 | members = models.ManyToManyField(Webuser,blank=True,related_name='group_members') 8 | admins = models.ManyToManyField(Webuser,blank=True,related_name='group_admins') 9 | memberlimits = models.IntegerField(default=200) 10 | 11 | 12 | def __unicode__(self): 13 | return self.name 14 | -------------------------------------------------------------------------------- /webchat/models.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/models.pyc -------------------------------------------------------------------------------- /webchat/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /webchat/urls.py: -------------------------------------------------------------------------------- 1 | __author__ = 'hadoop' 2 | from django.conf.urls import url 3 | from . import views 4 | urlpatterns = [ 5 | url(r'^webchat/$',views.webchat,name='webchat'), 6 | url(r'^contacts/$',views.contacts,name='load_contact_list'), 7 | url(r'^newmsg/$',views.newmsg,name='send_msg'), 8 | url(r'^newmsg/$',views.newmsg,name='get_new_msgs'), 9 | 10 | ] -------------------------------------------------------------------------------- /webchat/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/urls.pyc -------------------------------------------------------------------------------- /webchat/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render,HttpResponse 2 | import json,Queue,datetime 3 | from webuser.models import Webuser 4 | from django.contrib.auth.decorators import login_required 5 | # Create your views here. 6 | from .models import ChatGroup 7 | 8 | GLOBAL_MQ = { 9 | 10 | } 11 | @login_required 12 | def webchat(request): 13 | return render(request,'webchat/webchat.html') 14 | 15 | def contacts(request): 16 | contact_dic={} 17 | contacts = request.user.webuser.friends.select_related().values('id','user__username','online') 18 | 19 | for i in contacts: 20 | webuser = Webuser.objects.get(pk=i['id']) 21 | i["pictures"] = webuser.get_picture() 22 | print contacts 23 | contact_dic['contact_list'] = list(contacts) 24 | groups = request.user.webuser.chatgroup_set.select_related().values('id','name','memberlimits') 25 | print groups 26 | contact_dic['group_list'] = list(groups) 27 | print contact_dic 28 | 29 | return HttpResponse(json.dumps(contact_dic)) 30 | 31 | def newmsg(request): 32 | if request.method == 'POST': 33 | data = json.loads(request.POST.get('data')) 34 | send_to = data['to'] 35 | if send_to not in GLOBAL_MQ: 36 | GLOBAL_MQ[send_to] = Queue.Queue() 37 | data['timestamp'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") 38 | GLOBAL_MQ[send_to].put(data) 39 | print GLOBAL_MQ 40 | print GLOBAL_MQ[send_to] 41 | return HttpResponse(GLOBAL_MQ[send_to].qsize()) 42 | else: 43 | request_user_id = str(request.user.webuser.id) 44 | msg_list = [] 45 | if request_user_id in GLOBAL_MQ: 46 | stored_ms_nums = GLOBAL_MQ[request_user_id].qsize() 47 | if stored_ms_nums == 0: 48 | try: 49 | msg_list.append(GLOBAL_MQ[request_user_id].get(timeout=15)) 50 | except Exception as e: 51 | print "ERROR",e 52 | for i in range(stored_ms_nums): 53 | msg_list.append(GLOBAL_MQ[request_user_id].get()) 54 | else: 55 | GLOBAL_MQ[request_user_id]=Queue.Queue() 56 | print msg_list 57 | return HttpResponse(json.dumps(msg_list)) -------------------------------------------------------------------------------- /webchat/views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webchat/views.pyc -------------------------------------------------------------------------------- /webuser/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/__init__.py -------------------------------------------------------------------------------- /webuser/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/__init__.pyc -------------------------------------------------------------------------------- /webuser/admin.py: -------------------------------------------------------------------------------- 1 | #-*-coding:utf-8 -*- 2 | from django.contrib import admin 3 | import models 4 | # Register your models here. 5 | admin.site.register(models.Webuser) -------------------------------------------------------------------------------- /webuser/admin.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/admin.pyc -------------------------------------------------------------------------------- /webuser/celery_log.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/celery_log.txt -------------------------------------------------------------------------------- /webuser/forms.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/forms.pyc -------------------------------------------------------------------------------- /webuser/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ] 13 | 14 | operations = [ 15 | migrations.CreateModel( 16 | name='web_user', 17 | fields=[ 18 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 19 | ('photo', models.ImageField(upload_to=b'upload_imgs/')), 20 | ('signature', models.CharField(default=b'lazy guy, got nothing left here...', max_length=150)), 21 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), 22 | ], 23 | ), 24 | ] 25 | -------------------------------------------------------------------------------- /webuser/migrations/0001_initial.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/0001_initial.pyc -------------------------------------------------------------------------------- /webuser/migrations/0002_auto_20160316_1253.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | import datetime 6 | from django.utils.timezone import utc 7 | 8 | 9 | class Migration(migrations.Migration): 10 | 11 | dependencies = [ 12 | ('webuser', '0001_initial'), 13 | ] 14 | 15 | operations = [ 16 | migrations.RemoveField( 17 | model_name='web_user', 18 | name='photo', 19 | ), 20 | migrations.RemoveField( 21 | model_name='web_user', 22 | name='signature', 23 | ), 24 | migrations.AddField( 25 | model_name='web_user', 26 | name='job_title', 27 | field=models.CharField(max_length=50, null=True, blank=True), 28 | ), 29 | migrations.AddField( 30 | model_name='web_user', 31 | name='likestyle', 32 | field=models.CharField(max_length=50, null=True, blank=True), 33 | ), 34 | migrations.AddField( 35 | model_name='web_user', 36 | name='location', 37 | field=models.CharField(max_length=50, null=True, blank=True), 38 | ), 39 | migrations.AddField( 40 | model_name='web_user', 41 | name='registerday', 42 | field=models.DateTimeField(default=datetime.datetime(2016, 3, 16, 12, 53, 8, 934838, tzinfo=utc), auto_now_add=True), 43 | preserve_default=False, 44 | ), 45 | migrations.AddField( 46 | model_name='web_user', 47 | name='sex', 48 | field=models.IntegerField(default=1), 49 | ), 50 | migrations.AddField( 51 | model_name='web_user', 52 | name='url', 53 | field=models.CharField(max_length=50, null=True, blank=True), 54 | ), 55 | ] 56 | -------------------------------------------------------------------------------- /webuser/migrations/0002_auto_20160316_1253.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/0002_auto_20160316_1253.pyc -------------------------------------------------------------------------------- /webuser/migrations/0003_auto_20160317_0031.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('webuser', '0002_auto_20160316_1253'), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='Webuser', 18 | fields=[ 19 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 20 | ('location', models.CharField(max_length=50, null=True, blank=True)), 21 | ('url', models.CharField(max_length=50, null=True, blank=True)), 22 | ('likestyle', models.CharField(max_length=50, null=True, blank=True)), 23 | ('job_title', models.CharField(max_length=50, null=True, blank=True)), 24 | ('registerday', models.DateTimeField(auto_now=True)), 25 | ('sex', models.IntegerField(default=1)), 26 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), 27 | ], 28 | ), 29 | migrations.RemoveField( 30 | model_name='web_user', 31 | name='user', 32 | ), 33 | migrations.DeleteModel( 34 | name='web_user', 35 | ), 36 | ] 37 | -------------------------------------------------------------------------------- /webuser/migrations/0003_auto_20160317_0031.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/0003_auto_20160317_0031.pyc -------------------------------------------------------------------------------- /webuser/migrations/0004_auto_20160426_1936.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('webuser', '0003_auto_20160317_0031'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AddField( 15 | model_name='webuser', 16 | name='friends', 17 | field=models.ManyToManyField(related_name='friends_rel_+', to='webuser.Webuser'), 18 | ), 19 | migrations.AddField( 20 | model_name='webuser', 21 | name='online', 22 | field=models.IntegerField(default=False), 23 | ), 24 | ] 25 | -------------------------------------------------------------------------------- /webuser/migrations/0004_auto_20160426_1936.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/0004_auto_20160426_1936.pyc -------------------------------------------------------------------------------- /webuser/migrations/0005_webuser_views.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('webuser', '0004_auto_20160426_1936'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AddField( 15 | model_name='webuser', 16 | name='views', 17 | field=models.ForeignKey(default=b'alex', to='webuser.Webuser'), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /webuser/migrations/0005_webuser_views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/0005_webuser_views.pyc -------------------------------------------------------------------------------- /webuser/migrations/0006_remove_webuser_views.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('webuser', '0005_webuser_views'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='webuser', 16 | name='views', 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /webuser/migrations/0006_remove_webuser_views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/0006_remove_webuser_views.pyc -------------------------------------------------------------------------------- /webuser/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/__init__.py -------------------------------------------------------------------------------- /webuser/migrations/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/migrations/__init__.pyc -------------------------------------------------------------------------------- /webuser/models.py: -------------------------------------------------------------------------------- 1 | #-*-coding:utf-8 -*- 2 | from django.db import models 3 | from django.contrib.auth.models import User 4 | from django.conf import settings as django_settings 5 | from questions.models import Notification 6 | from django.db.models.signals import post_save 7 | import urllib, hashlib,os,datetime 8 | # Create your models here. 9 | 10 | class Webuser(models.Model): 11 | user = models.OneToOneField(User) 12 | location = models.CharField(max_length=50, null=True, blank=True) 13 | url = models.CharField(max_length=50,null=True,blank=True) 14 | likestyle = models.CharField(max_length=50,null=True,blank=True) 15 | job_title = models.CharField(max_length=50,null=True,blank=True) 16 | registerday =models.DateTimeField(auto_now=True,blank=True) 17 | sex = models.IntegerField(default=1) 18 | friends = models.ManyToManyField("self") 19 | online = models.IntegerField(default=False) 20 | 21 | def __unicode__(self): 22 | return self.user.username 23 | 24 | def get_url(self): 25 | url = self.url 26 | if "http://" not in self.url and "https://" not in self.url and len(self.url)>0: 27 | url ="http://"+str(self.url) 28 | return url 29 | def get_picture(self): 30 | no_picture = 'http://localhost:8000/static/img/user.png' 31 | try: 32 | filename = django_settings.MEDIA_ROOT+'/webuser_pictures/'+self.user.username+'.jpg' 33 | picture_url = django_settings.MEDIA_URL+'webuser_pictures/'+self.user.username+'.jpg' 34 | if os.path.isfile(filename): 35 | return picture_url 36 | else: 37 | # gravatar_url = u'http://www.gravatar.com/avatar/{0}?{1}'.format( 38 | # hashlib.md5(self.user.email.lower()).hexdigest(), 39 | # urllib.urlencode({'d':no_picture, 's':'256'}) 40 | # ) 41 | gravatar_url='http://localhost:8000/static/img/user1.png' 42 | return gravatar_url 43 | except Exception, e: 44 | return no_picture 45 | 46 | def get_screen_name(self): 47 | try: 48 | if self.user.get_full_name(): 49 | return self.user.get_full_name() 50 | else: 51 | return self.user.username 52 | except: 53 | return self.user.username 54 | def notify_favorited(self, question): 55 | if self.user != question.user: 56 | Notification(notification_type=Notification.FAVORITED, 57 | from_user=self.user, 58 | to_user=question.user, 59 | question=question).save() 60 | 61 | def unotify_favorited(self, question): 62 | if self.user != question.user: 63 | Notification.objects.filter(notification_type=Notification.FAVORITED, 64 | from_user=self.user, 65 | to_user=question.user, 66 | question=question).delete() 67 | 68 | def notify_answered(self, question): 69 | if self.user != question.user: 70 | Notification(notification_type=Notification.ANSWERED, 71 | from_user=self.user, 72 | to_user=question.user, 73 | question=question).save() 74 | 75 | def notify_accepted(self, answer): 76 | if self.user != answer.user: 77 | Notification(notification_type=Notification.ACCEPTED_ANSWER, 78 | from_user=self.user, 79 | to_user=answer.user, 80 | answer=answer).save() 81 | 82 | def unotify_accepted(self, answer): 83 | if self.user != answer.user: 84 | Notification.objects.filter(notification_type=Notification.ACCEPTED_ANSWER, 85 | from_user=self.user, 86 | to_user=answer.user, 87 | answer=answer).delete() 88 | 89 | def create_user_profile(sender, instance, created, **kwargs): 90 | if created: 91 | Webuser.objects.create(user=instance) 92 | 93 | def save_user_profile(sender, instance, **kwargs): 94 | instance.webuser.save() 95 | 96 | # post_save.connect(create_user_profile, sender=User) 97 | # post_save.connect(save_user_profile, sender=User) -------------------------------------------------------------------------------- /webuser/models.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/models.pyc -------------------------------------------------------------------------------- /webuser/tasks.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | from celery import shared_task 3 | from celery.utils.log import get_task_logger 4 | import requests,os,random,string,time,sys,MySQLdb,requesocks 5 | from lxml import etree 6 | from multiprocessing.dummy import Pool as ThreadPool 7 | reload(sys) 8 | sys.setdefaultencoding('utf8') 9 | uaList = ['Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+TencentTraveler)', 10 | 'Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729)', 11 | 'Mozilla/5.0+(Windows+NT+5.1)+AppleWebKit/537.1+(KHTML,+like+Gecko)+Chrome/21.0.1180.89+Safari/537.1', 12 | 'Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1)', 13 | 'Mozilla/5.0+(Windows+NT+6.1;+rv:11.0)+Gecko/20100101+Firefox/11.0', 14 | 'Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+SV1)', 15 | 'Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+GTB7.1;+.NET+CLR+2.0.50727)', 16 | 'Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+KB974489)'] 17 | headers = {'User-Agent':random.choice(uaList)} 18 | from django.contrib.auth.models import User 19 | from movie.models import Movie 20 | logger = get_task_logger(__name__) 21 | @shared_task 22 | def add(x,y): 23 | logger.info("start task") 24 | logger.info(x+y) 25 | return x+y 26 | #获得爱奇异播放链接 27 | def getbtnfromqiyi(moviename): 28 | search_url = "http://so.iqiyi.com/so/q_"+moviename 29 | response = requests.get(search_url,headers=headers) 30 | selector = etree.HTML(response.text) 31 | qiyibtn = selector.xpath('//a[@class="info_play_btn"]/@href') 32 | if qiyibtn: 33 | qiyibtn= qiyibtn[0] 34 | else: 35 | qiyibtn="" 36 | return qiyibtn 37 | #每天定时去看爱奇异看有没有播放链接 38 | @shared_task 39 | def GetMovieAddressFromAiQiYi(): 40 | movielistwithnoaddress = Movie.object.filter(movieaddress__isnull=True) 41 | i = 0 42 | for movie in list(movielistwithnoaddress): 43 | movieaddress = getbtnfromqiyi(movie.moviename) 44 | movie.movieaddress = movieaddress 45 | movie.save() 46 | i=i+1 47 | file = open("./celery_log.txt",'a') 48 | file.write(u'昨晚共更新了:'+str(i)+'\n') 49 | file.close() 50 | return i 51 | 52 | #从豆瓣爬取最新的电影 53 | 54 | -------------------------------------------------------------------------------- /webuser/tasks.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/tasks.pyc -------------------------------------------------------------------------------- /webuser/templates/webuser/addmovie.html: -------------------------------------------------------------------------------- 1 | {% extends 'webuser/person_home_page.html' %} 2 | {% block title %}个人主页个人资料页面{% endblock %} 3 | {% block person_home_content %} 4 |
    5 |

    电影资料

    6 | 7 | {% if messages %} 8 | {% for message in messages %} 9 |
    10 | 11 | {{ message }} 12 |
    13 | {% endfor %} 14 | {% endif %} 15 | 16 |
    17 | {% csrf_token %} 18 |
    19 | {% for field in form.visible_fields %} 20 |
    21 | 22 | {{ field }} 23 | {% if field.help_text %} 24 | {{ field.help_text|safe }} 25 | {% endif %} 26 | {% for error in field.errors %} 27 | 28 | {% endfor %} 29 |
    30 | {% endfor %} 31 |
    32 | 33 |
    34 |
    35 | 36 | 37 |
    38 |
    39 |
    40 | 41 |
    42 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/changeemail.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}修改邮箱{% endblock %} 3 | {% block page_content %} 4 | 5 |
    6 |
    7 |

    修改邮箱

    8 |
    9 | {% if messages %} 10 | {% for message in messages %} 11 |
    12 | 13 | {{ message }} 14 |
    15 | {% endfor %} 16 | {% endif %} 17 |
    18 | {% csrf_token %} 19 | {{form.id}} 20 |
    21 | {% for field in form.visible_fields %} 22 |
    23 | 24 | {{ field }} 25 | {% if field.help_text %} 26 | {{ field.help_text|safe }} 27 | {% endif %} 28 | {% for error in field.errors %} 29 | 30 | {% endfor %} 31 |
    32 | {% endfor %} 33 | 34 |
    35 | 36 |
    37 |
    38 | 39 |
    40 |
    41 |
    42 | 43 |
    44 | 45 |
    46 |
    47 | 48 | 49 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/cover.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load staticfiles %} 3 | {% load i18n %} 4 | 5 | {% block head %} 6 | 7 | {% endblock head %} 8 | 9 | {% block body %} 10 | Fork me on GitHub 11 |
    12 |

    Bootcamp

    13 | {% if form.non_field_errors %} 14 | {% for error in form.non_field_errors %} 15 |
    16 | 17 | {{ error }} 18 |
    19 | {% endfor %} 20 | {% endif %} 21 | 45 |
    46 | {% endblock body %} 47 | -------------------------------------------------------------------------------- /webuser/templates/webuser/login.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}登录{% endblock %} 3 | {% block page_content %} 4 | 5 |
    6 |
    7 |

    登录

    8 |
    9 |
    10 | {% csrf_token %} 11 |
    12 | {% for field in form.visible_fields %} 13 |
    14 | 15 | {{ field }} 16 | {% if field.help_text %} 17 | {{ field.help_text|safe }} 18 | {% endif %} 19 | {% for error in field.errors %} 20 | 21 | {% endfor %} 22 |
    23 | {% endfor %} 24 | 25 |
    26 | 27 |
    28 |
    29 | 30 | 31 |
    32 |
    33 |
    34 | 35 |
    36 | 37 |
    38 |
    39 | 40 | 41 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/password.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}修改密码{% endblock %} 3 | {% block page_content %} 4 | 5 |
    6 |
    7 |

    修改密码

    8 |
    9 | {% if messages %} 10 | {% for message in messages %} 11 |
    12 | 13 | {{ message }} 14 |
    15 | {% endfor %} 16 | {% endif %} 17 |
    18 | {% csrf_token %} 19 | {{form.id}} 20 |
    21 | {% for field in form.visible_fields %} 22 |
    23 | 24 | {{ field }} 25 | {% if field.help_text %} 26 | {{ field.help_text|safe }} 27 | {% endif %} 28 | {% for error in field.errors %} 29 | 30 | {% endfor %} 31 |
    32 | {% endfor %} 33 | 34 |
    35 | 36 |
    37 |
    38 | 39 |
    40 |
    41 |
    42 | 43 |
    44 | 45 |
    46 |
    47 | 48 | 49 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/person_home_page.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html"%} 2 | {% block title%} 个人主页 {% endblock%} 3 | 4 | 5 | {% block page_content %} 6 | 7 |
    8 |
    9 |
    10 |
    11 | 23 |
    24 | 25 | 26 |
    27 |
    28 | {%block person_home_content%} 29 | 30 | 31 | {%endblock%} 32 |
    33 |
    34 | 35 |
    36 | 37 |
    38 |
    39 | 40 | 41 | 42 | {% endblock%} 43 | -------------------------------------------------------------------------------- /webuser/templates/webuser/person_home_page_info.html: -------------------------------------------------------------------------------- 1 | {% extends 'webuser/person_home_page.html' %} 2 | {% block title %}个人主页个人资料页面{% endblock %} 3 | {% block person_home_content %} 4 |
    5 |

    个人资料

    6 | 7 | {% if messages %} 8 | {% for message in messages %} 9 |
    10 | 11 | {{ message }} 12 |
    13 | {% endfor %} 14 | {% endif %} 15 | 16 |
    17 | {% csrf_token %} 18 |
    19 | {% for field in form.visible_fields %} 20 |
    21 | 22 | {{ field }} 23 | {% if field.help_text %} 24 | {{ field.help_text|safe }} 25 | {% endif %} 26 | {% for error in field.errors %} 27 | 28 | {% endfor %} 29 |
    30 | {% endfor %} 31 |
    32 | 33 |
    34 |
    35 | 36 | 37 |
    38 |
    39 |
    40 | 41 |
    42 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/personal.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% block title %}登录后跳转页面个人资料{% endblock %} 3 | 4 | {% block page_content %} 5 |
    6 |

    您好,{{user.username}},你是我们网站的第{{user.id}}个用户.

    7 |

    登录后,我们不再推荐已看完的电影,但是你可以在历史记录中重温.

    8 |

    完善资料后,我们可以为你提供更好的推荐电影服务.

    9 |

    完善资料

    10 |
    11 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/picture.html: -------------------------------------------------------------------------------- 1 | {% extends 'webuser/person_home_page.html' %} 2 | {% load staticfiles %} 3 | {% load i18n %} 4 | {% load static %} 5 | {% block title %}上传头像{% endblock %} 6 | {% block head %} 7 | 8 | 9 | 10 | {% endblock %} 11 | 12 | 13 | {% block person_home_content %} 14 |
    15 | 16 | 17 | {% if messages %} 18 | {% for message in messages %} 19 |
    20 | 21 | {{ message }} 22 |
    23 | {% endfor %} 24 | {% endif %} 25 |

    更改头像

    26 | 27 |
    28 | {% csrf_token%} 29 |
    30 | 31 |
    32 | {% if uploaded_picture %} 33 |
    34 | {%csrf_token%} 35 | 65 |
    66 | {% endif %} 67 | 68 | 69 | 70 |
    71 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/register.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}NOMOVIE-Register {% endblock %} 3 | {% block page_content %} 4 | 5 |
    6 |
    7 |

    注册

    8 |
    9 |
    10 | {% csrf_token %} 11 |
    12 | {% for field in form.visible_fields %} 13 |
    14 | 15 | {{ field }} 16 | {% if field.help_text %} 17 | {{ field.help_text|safe }} 18 | {% endif %} 19 | {% for error in field.errors %} 20 | 21 | {% endfor %} 22 |
    23 | {% endfor %} 24 | 25 |
    26 | 27 |
    28 |
    29 | 30 | 31 |
    32 |
    33 |
    34 |
    35 |
    36 |
    37 | {% endblock %} -------------------------------------------------------------------------------- /webuser/templates/webuser/userinfo.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load staticfiles %} 3 | {% load i18n %} 4 | {% load static %} 5 | {% block title %}个人主页{% endblock %} 6 | {% block head %} 7 | 8 | 29 | {% endblock %} 30 | {% block page_content %} 31 | 32 |
    33 |
    34 | 35 |
    36 | {% csrf_token %} 37 |
    38 | 国民 39 |
    40 | 41 |
    42 |

    {{user.username}}

    43 |

    {{user.webuser.url}}

    44 |

    {{user.webuser.job_title}}

    45 |
    46 | 47 |
    48 |

    49 |

    50 |
    51 | 52 |
    53 |
    54 |
    55 | 56 | 57 | {% endblock %} -------------------------------------------------------------------------------- /webuser/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /webuser/urls.py: -------------------------------------------------------------------------------- 1 | __author__ = 'hadoop' 2 | from django.conf.urls import url 3 | from . import views 4 | urlpatterns = [ 5 | url(r'^index/$',views.index,name='index'), 6 | url(r'^register/$',views.register, name='register'), 7 | url(r'^weblogin/$',views.weblogin,name='weblogin'), 8 | url(r'^settings/$',views.settings,name='settings'), 9 | url(r'^settings/picture/$',views.picture,name='picture'), 10 | url(r'^settings/upload_picture/$',views.upload_picture,name='upload_picture'), 11 | url(r'^settings/save_uploaded_picture/$',views.save_uploaded_picture,name='save_uploaded_picture'), 12 | url(r'^password/$',views.password,name='password'), 13 | url(r'^changeemail/$',views.changeemail,name='changeemail'), 14 | url(r'^getuserinfo/(?P\d+)/$',views.getuserinfo,name='getuserinfo'), 15 | url(r'^addfriends/$',views.addfriends,name='addfriends'), 16 | url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'), 17 | ] -------------------------------------------------------------------------------- /webuser/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/urls.pyc -------------------------------------------------------------------------------- /webuser/views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/webuser/views.pyc -------------------------------------------------------------------------------- /weixin/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/weixin/__init__.py -------------------------------------------------------------------------------- /weixin/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /weixin/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pureYun/dnomovie/cc16cf2150b7cdbd744cf29f41647e2fafe927c6/weixin/migrations/__init__.py -------------------------------------------------------------------------------- /weixin/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /weixin/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /weixin/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | --------------------------------------------------------------------------------