Skip to content

hello world #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
3 changes: 3 additions & 0 deletions .idea/dictionaries/lichangan.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/pythonweb-sample.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

737 changes: 737 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pythonweb-sample
可以使用bottle+mako+sqlalchemy搭建比较轻小型的网站,也可使用Django搭建功能比较完善的网站。
可以使用flask+sqlalchemy搭建比较轻小型的网站,也可使用Django搭建功能比较完善的网站。
3 changes: 3 additions & 0 deletions etc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
3 changes: 3 additions & 0 deletions etc/database/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
3 changes: 3 additions & 0 deletions open_src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
3 changes: 3 additions & 0 deletions open_src_ind/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
3 changes: 3 additions & 0 deletions script/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Empty file added src/__init__.py
Empty file.
19 changes: 19 additions & 0 deletions src/flask_reder_template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/python2
# -*- coding: utf-8 -*-


from flask import render_template, Flask, url_for

app = Flask(__name__)


@app.route("/")
@app.route("/login/<name>")
def login(name=None):
return render_template('login.html', name=name)


if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=8080)
# main()

93 changes: 93 additions & 0 deletions src/templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>Apricot v1.2</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<style type="text/css">
body {
overflow:hidden!important;
padding-top: 120px;
}
</style>
<!-- Le styles -->
<script type="text/javascript" src="assets/js/jquery.min.js"></script>

<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/loader-style.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/signin.css">
<link rel="stylesheet" href="assets/css/extra-pages.css">






<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="assets/ico/minus.png">
</head>

<body><div id="awwwards" class="right black"><a href="http://www.awwwards.com/best-websites/apricot-navigation-admin-dashboard-template" target="_blank">best websites of the world</a></div>
<!-- Preloader -->
<div id="preloader">
<div id="status">&nbsp;</div>
</div>


<div class="logo-error">
<h1>Apricot
<span>v1.0</span>
</h1>
</div>

<!-- Main content -->
<section class="page-error">

<div class="error-page">
<h2 class="headline text-info">404</h2>
<div class="error-content">
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
<p>
We could not find the page you were looking for. Meanwhile, you may <a class="error-link" href='index.html'>return to dashboard</a> or try using the search form.
</p>
<form class='search-form'>
<input type="text" name="search" class='form-control' placeholder="Search">
</form>
</div>
<!-- /.error-content -->
</div>
<!-- /.error-page -->

</section>








<!-- END OF PAPER WRAP -->




<!-- MAIN EFFECT -->
<script type="text/javascript" src="assets/js/preloader.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.js"></script>
<script type="text/javascript" src="assets/js/app.js"></script>
<script type="text/javascript" src="assets/js/load.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>


</body>

</html>
93 changes: 93 additions & 0 deletions src/templates/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>Apricot v1.2</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<style type="text/css">
body {
overflow:hidden!important;
padding-top: 120px;
}
</style>
<!-- Le styles -->
<script type="text/javascript" src="assets/js/jquery.min.js"></script>

<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/loader-style.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/signin.css">
<link rel="stylesheet" href="assets/css/extra-pages.css">






<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="assets/ico/minus.png">
</head>

<body><div id="awwwards" class="right black"><a href="http://www.awwwards.com/best-websites/apricot-navigation-admin-dashboard-template" target="_blank">best websites of the world</a></div>
<!-- Preloader -->
<div id="preloader">
<div id="status">&nbsp;</div>
</div>


<div class="logo-error">
<h1>Apricot
<span>v1.0</span>
</h1>
</div>

<!-- Main content -->
<section class="page-error">

<div class="error-page">
<h2 class="headline text-info">500</h2>
<div class="error-content">
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
<p>
We could not find the page you were looking for. Meanwhile, you may <a class="error-link" href='index.html'>return to dashboard</a> or try using the search form.
</p>
<form class='search-form'>
<input type="text" name="search" class='form-control' placeholder="Search">
</form>
</div>
<!-- /.error-content -->
</div>
<!-- /.error-page -->

</section>








<!-- END OF PAPER WRAP -->




<!-- MAIN EFFECT -->
<script type="text/javascript" src="assets/js/preloader.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.js"></script>
<script type="text/javascript" src="assets/js/app.js"></script>
<script type="text/javascript" src="assets/js/load.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>


</body>

</html>
Empty file added src/templates/__init__.py
Empty file.
Loading