2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-26 01:01:53 +00:00

FIx base template so admin link, expoweb link work and use consistent base URL

This commit is contained in:
expo 2012-08-05 02:33:48 +02:00
parent 8040b746b4
commit 9654e5da1c
2 changed files with 8 additions and 8 deletions

View File

@ -29,18 +29,18 @@ FILES = REPOS_ROOT_PATH + 'expoimages'
PYTHON_PATH = '/home/expo/expofiles/troggle/' PYTHON_PATH = '/home/expo/expofiles/troggle/'
#URL_ROOT = 'http://127.0.0.1:8000' #URL_ROOT = 'http://127.0.0.1:8000'
URL_ROOT = "http://expobox/" URL_ROOT = "http://expoweb/"
DIR_ROOT = ''#this should end in / if a value is given DIR_ROOT = ''#this should end in / if a value is given
EXPOWEB_URL = 'http://expobox/' EXPOWEB_URL = '/'
SURVEYS_URL = 'http://expobox/survey_scans/' SURVEYS_URL = '/survey_scans/'
MEDIA_URL = URL_ROOT + DIR_ROOT + '/site_media/' MEDIA_URL = URL_ROOT + DIR_ROOT + '/site_media/'
MEDIA_ROOT = '/home/expo/expofiles/troggle/media/' MEDIA_ROOT = '/home/expo/expofiles/troggle/media/'
MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/' MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/'
TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/' TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/'
TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + 'tinymce_media/' TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + '/tinymce_media/'
TEMPLATE_DIRS = ( TEMPLATE_DIRS = (
"/home/expo/expofiles/troggle/templates", "/home/expo/expofiles/troggle/templates",

View File

@ -16,10 +16,9 @@
<body onLoad="contentHeight();"> <body onLoad="contentHeight();">
<div id="header"> <div id="header">
<h1>CUCC Expeditions to Austria: 1976 - 2009</h1> <h1>CUCC Expeditions to Austria: 1976 - 2012</h1>
<div id="editLinks"> {% block loginInfo %} <div id="editLinks"> {% block loginInfo %}
<a href="{{ settings.EXPOWEB_URL }}/index.htm">ExpoWeb</a> | <a href="{{ settings.EXPOWEB_URL }}">Expoweb</a> |
<a href="{{ settings.URL_ROOT }}">Home</a> |
{% if user.username %} {% if user.username %}
You are logged in as {{ user.username }} You are logged in as {{ user.username }}
{% if user.person %}(<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>) {% if user.person %}(<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>)
@ -42,7 +41,8 @@
<a href="{% url expedition 2009 %}">Expo2009</a> | <a href="{% url expedition 2009 %}">Expo2009</a> |
<a href="{% url expedition 2010 %}">Expo2010</a> | <a href="{% url expedition 2010 %}">Expo2010</a> |
<a href="{% url expedition 2011 %}">Expo2011</a> | <a href="{% url expedition 2011 %}">Expo2011</a> |
<a href="/admin">Django admin</a>
<a href="/admin/">Django admin</a>
</div> </div>
<div id="nav"> <div id="nav">