@@ -1,7 +1,7 | |||
|
1 | 1 | from django.db import models No newline at end of file |
|
2 | 2 | from django.utils import timezone No newline at end of file |
|
3 | 3 | |
|
4 | No newline at end of file | |
|
4 | class profileAntenna(models.Model): No newline at end of file | |
|
5 | 5 | No newline at end of file |
|
6 | 6 | name = models.CharField(max_length=250) No newline at end of file |
|
7 | 7 | date_create = models.DateTimeField() No newline at end of file |
@@ -4,7 +4,8 | |||
|
4 | 4 | url(r'^$', 'index'), No newline at end of file |
|
5 | 5 | url(r'^new/$', 'new'), No newline at end of file |
|
6 | 6 | url(r'^save/$', 'save'), |
|
7 | No newline at end of file | |
|
7 | url(r'^(?P<profile_id>\d+)/$', 'detail'), No newline at end of file | |
|
No newline at end of file | ||
|
8 | #url(r'^(?P<profile_id>\d+)/$', 'detail'), No newline at end of file | |
|
8 | 9 | #url(r'^(?P<poll_id>\d+)/results/$', 'results'), No newline at end of file |
|
9 | 10 | #url(r'^(?P<poll_id>\d+)/vote/$', 'vote'), No newline at end of file |
|
10 | 11 | ) No newline at end of file |
@@ -1,21 +1,17 | |||
|
1 | from django.shortcuts import render_to_response | |
|
1 | from django.shortcuts import render_to_response, redirect | |
|
No newline at end of file | ||
|
2 | from django.http import HttpResponseRedirect | |
|
2 | from abscontrol.models import Profile No newline at end of file | |
|
No newline at end of file | ||
|
3 | from django.core.urlresolvers import reverse | |
|
No newline at end of file | ||
|
4 | from django.template import RequestContext | |
|
No newline at end of file | ||
|
5 | ||
|
No newline at end of file | ||
|
6 | from abscontrol.models import profileAntenna, patternAntenna, antennaUp, antennaDown No newline at end of file | |
|
7 | 3 | No newline at end of file |
|
8 | 4 | def index(request): No newline at end of file |
|
9 | 5 | #latest_poll_list = profileAntenna.objects.all().order_by('-pub_date')[:5] |
|
6 | No newline at end of file | |
|
10 | profile_list = profileAntenna.objects.all() No newline at end of file | |
|
11 | 7 | return render_to_response('abscontrol/index.html', {'profile_list': profile_list}) No newline at end of file |
|
12 | 8 | No newline at end of file |
|
13 | 9 | def new(request): |
|
10 | No newline at end of file | |
|
14 | #profile_list = profileAntenna.objects.all() | |
|
No newline at end of file | ||
|
11 | No newline at end of file | |
|
15 | return render_to_response('abscontrol/new.html', {}) No newline at end of file | |
|
16 | 12 | No newline at end of file |
|
17 | 13 | def save(request): |
|
14 | No newline at end of file | |
|
18 | try: No newline at end of file | |
|
19 | 15 |
|
|
20 | 16 |
|
|
21 | 17 |
|
@@ -1,3 +1,64 | |||
|
1 | @font-face { | |
|
No newline at end of file | ||
|
2 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
3 | font-style: normal; | |
|
No newline at end of file | ||
|
4 | font-weight: 300; | |
|
No newline at end of file | ||
|
5 | src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
|
No newline at end of file | ||
|
6 | } | |
|
No newline at end of file | ||
|
7 | @font-face { | |
|
No newline at end of file | ||
|
8 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
9 | font-style: normal; | |
|
No newline at end of file | ||
|
10 | font-weight: 400; | |
|
No newline at end of file | ||
|
11 | src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); | |
|
No newline at end of file | ||
|
12 | } | |
|
No newline at end of file | ||
|
13 | @font-face { | |
|
No newline at end of file | ||
|
14 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
15 | font-style: normal; | |
|
No newline at end of file | ||
|
16 | font-weight: 600; | |
|
No newline at end of file | ||
|
17 | src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSnhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
|
No newline at end of file | ||
|
18 | } | |
|
No newline at end of file | ||
|
19 | @font-face { | |
|
No newline at end of file | ||
|
20 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
21 | font-style: normal; | |
|
No newline at end of file | ||
|
22 | font-weight: 700; | |
|
No newline at end of file | ||
|
23 | src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzHhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
|
No newline at end of file | ||
|
24 | } | |
|
No newline at end of file | ||
|
25 | @font-face { | |
|
No newline at end of file | ||
|
26 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
27 | font-style: normal; | |
|
No newline at end of file | ||
|
28 | font-weight: 800; | |
|
No newline at end of file | ||
|
29 | src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/EInbV5DfGHOiMmvb1Xr-hnhCUOGz7vYGh680lGh-uXM.woff) format('woff'); | |
|
No newline at end of file | ||
|
30 | } | |
|
No newline at end of file | ||
|
31 | @font-face { | |
|
No newline at end of file | ||
|
32 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
33 | font-style: italic; | |
|
No newline at end of file | ||
|
34 | font-weight: 300; | |
|
No newline at end of file | ||
|
35 | src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxh_xHqYgAV9Bl_ZQbYUxnQU.woff) format('woff'); | |
|
No newline at end of file | ||
|
36 | } | |
|
No newline at end of file | ||
|
37 | @font-face { | |
|
No newline at end of file | ||
|
38 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
39 | font-style: italic; | |
|
No newline at end of file | ||
|
40 | font-weight: 400; | |
|
No newline at end of file | ||
|
41 | src: local('Open Sans Italic'), local('OpenSans-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBobN6UDyHWBl620a-IRfuBk.woff) format('woff'); | |
|
No newline at end of file | ||
|
42 | } | |
|
No newline at end of file | ||
|
43 | @font-face { | |
|
No newline at end of file | ||
|
44 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
45 | font-style: italic; | |
|
No newline at end of file | ||
|
46 | font-weight: 600; | |
|
No newline at end of file | ||
|
47 | src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxn5HxGBcBvicCpTp6spHfNo.woff) format('woff'); | |
|
No newline at end of file | ||
|
48 | } | |
|
No newline at end of file | ||
|
49 | @font-face { | |
|
No newline at end of file | ||
|
50 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
51 | font-style: italic; | |
|
No newline at end of file | ||
|
52 | font-weight: 700; | |
|
No newline at end of file | ||
|
53 | src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxjqR_3kx9_hJXbbyU8S6IN0.woff) format('woff'); | |
|
No newline at end of file | ||
|
54 | } | |
|
No newline at end of file | ||
|
55 | @font-face { | |
|
No newline at end of file | ||
|
56 | font-family: 'Open Sans'; | |
|
No newline at end of file | ||
|
57 | font-style: italic; | |
|
No newline at end of file | ||
|
58 | font-weight: 800; | |
|
No newline at end of file | ||
|
59 | src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxkCDe67GEgBv_HnyvHTfdew.woff) format('woff'); | |
|
No newline at end of file | ||
|
60 | } | |
|
No newline at end of file | ||
|
61 | No newline at end of file | |
|
1 | 62 | body {font-size: 11px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif} No newline at end of file |
|
2 | 63 | article, aside, figure, footer, header, hgroup, nav, section { display:block; } No newline at end of file |
|
3 | 64 | header {border: 1px solid #fcc; font-size: 2em; height: 50px; text-align: center; line-height: 50px} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now