Skip to content

Commit 97059c6

Browse files
committed
no message
1 parent d196d39 commit 97059c6

File tree

6 files changed

+60
-1
lines changed

6 files changed

+60
-1
lines changed

mysite2/blog/__init__.pyc

0 Bytes
Binary file not shown.

mysite2/blog/models.pyc

0 Bytes
Binary file not shown.

mysite2/index/__init__.pyc

0 Bytes
Binary file not shown.

mysite2/index/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ def __unicode__(self):
2929

3030

3131

32-
3332
# Create your models here.

mysite2/index/views.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,21 @@ def SiteMap(request):
199199
else:
200200
return render_to_response("sitemap.html", {'user':request.user})
201201

202+
def MyCourse(request):
203+
if request.user.username =="":
204+
return HttpResponseRedirect("/mysite2")
205+
else:
206+
MyProfile = Profile.objects.get(User=request.user)
207+
RecommendPage=[]
208+
LikePage=[]
209+
UserBoard = Course_Evaluation.objects.filter(CreatedID = MyProfile)
210+
for Board1 in UserBoard:
211+
RecommendPage.append(Total_Evaluation.objects.get(CourseName = Board1.Course))
212+
for Board2 in UserBoard:
213+
LikePage.append(Total_Evaluation.objects.get(CourseName = Board2.Course))
214+
215+
216+
return render_to_response("mycourses.html", {'user':request.user, 'RecommendPage':RecommendPage,})
202217

203218
# def Search(request): #전체 검색 기능
204219
# if request.user.username =="":

sftp-config-alt.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
// The tab key will cycle through the settings when first created
3+
// Visit http://wbond.net/sublime_packages/sftp/settings for help
4+
5+
// sftp, ftp or ftps
6+
"type": "sftp",
7+
8+
"save_before_upload": true,
9+
"upload_on_save": true,
10+
"sync_down_on_open": false,
11+
"sync_skip_deletes": false,
12+
"sync_same_age": true,
13+
"confirm_downloads": false,
14+
"confirm_sync": true,
15+
"confirm_overwrite_newer": false,
16+
17+
"host": "54.64.148.172",
18+
"user": "ubuntu",
19+
//"password": "password",
20+
//"port": "22",
21+
22+
"remote_path": "/home/bitnami/apps/django/django_projects/darkzero",
23+
"ignore_regexes": [
24+
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
25+
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
26+
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
27+
],
28+
//"file_permissions": "664",
29+
//"dir_permissions": "775",
30+
31+
//"extra_list_connections": 0,
32+
33+
"connect_timeout": 30,
34+
//"keepalive": 120,
35+
//"ftp_passive_mode": true,
36+
//"ftp_obey_passive_host": false,
37+
//"ssh_key_file": "~/.ssh/id_rsa",
38+
//"sftp_flags": ["-F", "/path/to/ssh_config"],
39+
40+
//"preserve_modification_times": false,
41+
//"remote_time_offset_in_hours": 0,
42+
//"remote_encoding": "utf-8",
43+
//"remote_locale": "C",
44+
//"allow_config_upload": false,
45+
}

0 commit comments

Comments
 (0)