-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
58 lines (46 loc) · 1.38 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
CST25 Website
--------------
Introduction
CST25 Website is based on HTML5, CSS3, Javascript and Django. It
serves as a classwide portal for announcements, activities, photos,
resources and chats.
--------------
For developers
Read INTERFACES, please.
INTERFACES defines the structures python views use to render a HTML
page.
If you have installed Django in your machine and want to test the
website, please modify the following settings in file
cst25/settings.py:
# Modification One:
ADMINS = (
# Do not modify my information, but you should add your
information. Like this:
('Your Name', 'Your Email Address'),
)
# Modification Two:
DATABASE = {
'default' : {
'NAME': 'The absolute path of file db',
# For example, '/home/sb/websites/cst25/db'
# Or 'C:/users/sb/jobs/cst25/db'. Even in Windows,
# you should use slash '/' rather than backslash
# '\'.
# 'db' is the file in the root directory of cst25.
# You can see it.
}
}
# Modification Three:
MEDIA_ROOT = '<The absolute path of directory media/>'
# The rules is like NAME in DATABASE.
# And do not omit / at the end.
# Modification Four:
TEMPLATE_DIRS = (
# All the directories should be modified as before.
)
# Modification Five:
STATICFILES_DIRS = (
# Directories should be modified.
)
# If you are Li Haoda or StrengthMan, you should create a superuser
# for yourself, too.