Skip to content

Commit cf03782

Browse files
committed
init
0 parents  commit cf03782

File tree

20 files changed

+235
-0
lines changed

20 files changed

+235
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
__pycache__
3+
/static
4+
db.sqlite3

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM python:3.5
2+
ADD . /code
3+
WORKDIR /code
4+
RUN pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple && ./manage.py collectstatic --noinput
5+
CMD ./run_uwsgi.sh 8000

applications/__init__.py

Whitespace-only changes.

applications/demo/__init__.py

Whitespace-only changes.
1.12 KB
Binary file not shown.
34.4 KB
Loading
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body {
2+
margin: 0 auto;
3+
text-align: center;
4+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% load static %}
2+
<!doctype html>
3+
<html>
4+
<head>
5+
<title>demo</title>
6+
<meta charset="UTF-8" />
7+
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}">
8+
<link href="{% static 'styles/index.css' %}" rel="stylesheet" type="text/css" />
9+
</head>
10+
<body>
11+
<img src="{% static 'images/logo.png' %}">
12+
</body>
13+
</html>

applications/demo/urls.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from django.conf.urls import url
2+
3+
from applications.demo import views
4+
5+
urlpatterns = [
6+
url(r'^$', views.IndexView.as_view()),
7+
]

applications/demo/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.views.generic import TemplateView
2+
3+
4+
class IndexView(TemplateView):
5+
template_name = 'index.html'

0 commit comments

Comments
 (0)