summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/build/base.py5
-rw-r--r--cron/full_build.py5
-rwxr-xr-xcron/full_build.sh2
-rw-r--r--templates/base.html2
-rw-r--r--templates/bin/map_entry_list.html4
5 files changed, 12 insertions, 6 deletions
diff --git a/apps/build/base.py b/apps/build/base.py
index afcc8f8..f6df69d 100644
--- a/apps/build/base.py
+++ b/apps/build/base.py
@@ -172,7 +172,10 @@ class BuildContact(Build):
def build(self):
c = Client()
response = c.get('/contact/')
- fpath = '%scontact/index.html' %(settings.BAKED_ROOT)
+ path = '%scontact/' %(settings.BAKED_ROOT)
+ if not os.path.isdir(path):
+ os.makedirs(path)
+ fpath = '%sindex.html' %(path)
self.write_file(fpath,str(response.content))
class BuildProjects(Build):
diff --git a/cron/full_build.py b/cron/full_build.py
index da305ac..e52d005 100644
--- a/cron/full_build.py
+++ b/cron/full_build.py
@@ -9,7 +9,7 @@ sys.path.append(PROJECT_ROOT+'/lib')
sys.path.append('/home/luxagraf/webapps/django1_3/lib/python2.7/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
-from build.base import BuildWriting,BuildMap,BuildPhotos,BuildAbout,BuildProjects,BuildSitemap
+from build.base import BuildWriting,BuildMap,BuildPhotos,BuildAbout,BuildProjects,BuildSitemap,BuildContact
b = BuildWriting()
b.build()
@@ -27,4 +27,7 @@ b = BuildProjects()
b.build()
b = BuildSitemap()
+b.build()
+
+b = BuildContact()
b.build() \ No newline at end of file
diff --git a/cron/full_build.sh b/cron/full_build.sh
index c298c25..c065d48 100755
--- a/cron/full_build.sh
+++ b/cron/full_build.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-python2.7 /home/luxagraf/webapps/django1_3/luxagraf/cron/full_build.py \ No newline at end of file
+python2.7 /home/luxagraf/webapps/django/luxagraf/cron/full_build.py \ No newline at end of file
diff --git a/templates/base.html b/templates/base.html
index 0f43c81..a836845 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -22,7 +22,7 @@
href="{{MEDIA_URL}}css/ie.css"
media="screen">
<![endif]-->
- <script>var _gaq=[['_setAccount','UA-1186171-1'],['_trackPageview']];(function(d,t){ var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.async=1;g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'))</script>
+ <script>var _gaq=[['_setAccount','UA-1186171-1'],['_trackPageview'],['_trackPageLoadTime']];(function(d,t){ var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.async=1;g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'))</script>
{%block extrahead%}{%endblock%}
</head>
<body {%block bodyid%}{%endblock%}{%block bodyevents%}{%endblock%}>
diff --git a/templates/bin/map_entry_list.html b/templates/bin/map_entry_list.html
index 11dc1da..a58de05 100644
--- a/templates/bin/map_entry_list.html
+++ b/templates/bin/map_entry_list.html
@@ -31,13 +31,13 @@ var map;
function initialize() {
//custom marker
- var image = new google.maps.MarkerImage('http://media.luxagraf.net/img/marker-entry.png',
+ var image = new google.maps.MarkerImage('http://luxagraf.net/media/img/marker-entry.png',
new google.maps.Size(15, 26),
new google.maps.Point(0, 0),
new google.maps.Point(7, 26)
);
//custom marker shadow
- var shadow = new google.maps.MarkerImage('http://media.luxagraf.net/img/shadow.png',
+ var shadow = new google.maps.MarkerImage('http://luxagraf.net/media/img/shadow.png',
new google.maps.Size(37, 34),
new google.maps.Point(0,0),
new google.maps.Point(8, 34)