Skip to content

Commit

Permalink
使用新版本tyadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
mtianyan committed Dec 4, 2020
1 parent 59def90 commit 07ee175
Show file tree
Hide file tree
Showing 526 changed files with 20 additions and 88,863 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,28 @@
[![Build Status](https://travis-ci.org/mtianyan/hexoBlog-Github.svg?branch=master)](https://travis-ci.org/mtianyan/hexoBlog-Github)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)

后台管理使用TyAdmin(现代化的Xadmin替代品)生成管理后台前后端,并自动对接,欢迎关注使用tyadmin。
使用TyAdmin(现代化的Xadmin替代品)生成管理后台前后端,并自动对接。✨ 强烈推荐使用:

>https://github.com/mtianyan/tyadmin_api_cli
📨 Tyadmin互动交流反馈QQ群: 304094780

# 前后台效果展示

![](http://cdn.pic.mtianyan.cn/blog_img/20201204233749.png)

![](http://cdn.pic.mtianyan.cn/blog_img/20201204233849.png)

>https://github.com/mtianyan/tyadmin_api_cli
- v2版前台体验地址: https://imooc.funpython.cn
- v2版在线体验地址: https://imooc.funpython.cn/xadmin

- 第一版(master分支)前台体验地址: https://mooc.funpython.cn
- 第一版(master分支)后台体验地址:: https://mooc.funpython.cn/xadmin
>账号: mtianyan
密码: admin2020

Vue前台代码地址: https://github.com/mtianyan/vue-mooc

>账号: mtianyan
密码: 123456
Vue前台代码原作者及文档: https://github.com/wangtunan/vue-mooc https://wangtunan.github.io/vue-mooc/

## 运行指南:

Expand Down
Empty file removed app_api/gen/__init__.py
Empty file.
7 changes: 0 additions & 7 deletions app_api/gen/gen_action.py

This file was deleted.

36 changes: 0 additions & 36 deletions app_api/gen/gen_ser_url.py

This file was deleted.

849 changes: 0 additions & 849 deletions app_api/migrations/0001_initial.py

This file was deleted.

2 changes: 1 addition & 1 deletion app_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.db import models


from tyadmin_api_cli.fileds import SImageField
from tyadmin_api_cli.fields import SImageField


class EmailVerifyRecord(models.Model):
Expand Down
24 changes: 0 additions & 24 deletions copy_static.py

This file was deleted.

2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'onlinemooc.settings.local')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'onlinemooc.settings.dev')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
2 changes: 1 addition & 1 deletion onlinemooc/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
'NAME': 'online_mooc', # 数据库名
'USER': 'root', # 用户名
'PASSWORD': 'mtianyanroot', # 密码
'HOST': 'mysql', # 链接id ,空为本地,可以设置绝对路径
'HOST': '127.0.0.1', # 链接id ,空为本地,可以设置绝对路径
'PORT': '3306', # 端口号
}
}
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion onlinemooc/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
from django.urls import path, include, re_path
from rest_framework.documentation import include_docs_urls
from django.conf import settings
from tyadmin_api.views import AdminIndexView

urlpatterns = [
path('api/xadmin/v1/', include('tyadmin_api.urls')),
path('api/v1/', include('app_api.urls')),
re_path('media/(?P<path>.*)', serve, {"document_root": settings.MEDIA_ROOT}),
# re_path('^xadmin/.*', AdminIndexView.as_view(), name="admin_index"),
re_path('^xadmin/.*', AdminIndexView.as_view(), name="admin_index"),
]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ sqlparse==0.3.1
tyadmin-api-cli==0.5.1
uritemplate==3.0.1
urllib3==1.25.10
tyadmin_api_cli
tyadmin_api_cli=0.8.0
1 change: 0 additions & 1 deletion tyadmin/README.md

This file was deleted.

Loading

0 comments on commit 07ee175

Please sign in to comment.