Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasxlu committed Dec 2, 2018
1 parent 00c2926 commit 34f215b
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 6 deletions.
1 change: 1 addition & 0 deletions XCloud/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
urlpatterns = [
path('admin/', admin.site.urls),
path('cv/', include('cv.urls')),
path('dm/', include('dm.urls')),
path('nlp/', include('nlp.urls')),
]
7 changes: 4 additions & 3 deletions cv/templates/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pig Face Recognition</title>
<title>XCloud</title>
<script>

</script>
Expand All @@ -16,7 +16,8 @@
style="text-decoration: none">XCloud</a>, an AI
cloud platform maintained by <a
href="https://www.zhihu.com/people/xulu-0620/activities"
target="_blank" style="text-decoration: none">LucasX</a>.
target="_blank" style="text-decoration: none">LucasX</a>. You are
visiting CV module.
<hr>

<div align="center">
Expand All @@ -27,7 +28,7 @@
<div id="linkweb" style=" display:inline;"></div>
</div>

<footer>
<footer style="position: fixed; width: 100%; text-align: center; bottom: 0;">
<script>
setInterval("document.getElementById('linkweb').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
</script>
Expand Down
37 changes: 37 additions & 0 deletions dm/templates/welcome.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>XCloud</title>
<script>

</script>
</head>
<body>
<h2 align="center"
style="font-family: 'Consolas', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace">
XCloud</h2>
<div align="center">
Hello, this is <a href="https://github.com/lucasxlu/XCloud" target="_blank"
style="text-decoration: none">XCloud</a>, an AI
cloud platform maintained by <a
href="https://www.zhihu.com/people/xulu-0620/activities"
target="_blank" style="text-decoration: none">LucasX</a>. You are
visiting DM module.
<hr>

<div align="center">
<img src="https://raw.githubusercontent.com/lucasxlu/blog/master/source/about/LucasX.jpg"
alt="LucaX" align="center">
</div>

<div id="linkweb" style=" display:inline;"></div>
</div>

<footer style="position: fixed; width: 100%; text-align: center; bottom: 0;">
<script>
setInterval("document.getElementById('linkweb').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
</script>
</footer>
</body>
</html>
7 changes: 7 additions & 0 deletions dm/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.urls import path

from . import views

urlpatterns = [
path('welcome', views.welcome, name='welcome'),
]
9 changes: 9 additions & 0 deletions dm/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
from django.shortcuts import render


# Create your views here.

def welcome(request):
"""
welcome page for computer vision welcome
:param request:
:return:
"""
return render(request, 'welcome.html')
37 changes: 37 additions & 0 deletions nlp/templates/welcome.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>XCloud</title>
<script>

</script>
</head>
<body>
<h2 align="center"
style="font-family: 'Consolas', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace">
XCloud</h2>
<div align="center">
Hello, this is <a href="https://github.com/lucasxlu/XCloud" target="_blank"
style="text-decoration: none">XCloud</a>, an AI
cloud platform maintained by <a
href="https://www.zhihu.com/people/xulu-0620/activities"
target="_blank" style="text-decoration: none">LucasX</a>. You are
visiting NLP module.
<hr>

<div align="center">
<img src="https://raw.githubusercontent.com/lucasxlu/blog/master/source/about/LucasX.jpg"
alt="LucaX" align="center">
</div>

<div id="linkweb" style=" display:inline;"></div>
</div>

<footer style="position: fixed; width: 100%; text-align: center; bottom: 0;">
<script>
setInterval("document.getElementById('linkweb').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
</script>
</footer>
</body>
</html>
5 changes: 2 additions & 3 deletions nlp/views.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from django.shortcuts import render
from django.http import HttpResponse


# Create your views here.

def welcome(request):
"""
test page for computer vision welcome
welcome page for computer vision welcome
:param request:
:return:
"""
return HttpResponse("Hello, welcome to NLP section.")
return render(request, 'welcome.html')

0 comments on commit 34f215b

Please sign in to comment.