Skip to content

Commit b5ff647

Browse files
author
Resolver Developers
committed
Additional styling added directly to template. By Hansel.
1 parent 8f2f230 commit b5ff647

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

content/django.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ account. Go and sign up if you don't already have one then come back here.
1616

1717

1818

19-
.. image:: http://www.pythonanywhere.com/static/anywhere/images/favicon.ico
19+
2020

2121

2222

@@ -192,6 +192,16 @@ serving a page that tells you the time.
192192
The gruesome details for beginners
193193
=================================================================================
194194

195+
The main web tab at Python Anywhere looks like this:
196+
197+
.. image:: http://www.pythonanywhere.com/static/anywhere/images/tutorial/django/pa_web_dashboard.jpg
198+
199+
To edit your wsgi.py file you click the link with that name. Every time you
200+
make a change to the files on the Python Anywhere servers you need to click the
201+
"Reload web app" button. This reloads the web server so that it notices the
202+
changes you have made.
203+
204+
195205

196206
Starting a new django project
197207
---------------------------------------------------------------------------------

server/renderer/templates/tutorial_base.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<link rel="icon" href="http://www.pythonanywhere.com/static/anywhere/images/favicon.ico" type="image/x-icon">
1010
<link rel="shortcut icon" href="http://www.pythonanywhere.com/static/anywhere/images/favicon.ico" type="image/x-icon">
1111

12+
<style type="text/css">
13+
img {border: 1px; color:grey; align: center;}
14+
</style>
15+
1216
<script type="text/javascript">
1317
parent.setHash({{ pagenum }});
1418

@@ -28,12 +32,15 @@
2832

2933
</head>
3034

31-
<body>
35+
<body style="margin:50px 0px; padding:0px; text-align:center;">
36+
<div style="width:900px; margin:0px auto; text-align:left;">
37+
3238
{% autoescape off %}
3339
<h1 id="id_tutorial_title">{{ title }}</h1>
3440

3541
{{ body }}
3642
{% endautoescape %}
43+
</div>
3744
</body>
3845
</html>
3946

0 commit comments

Comments
 (0)