Statistics
| Branch: | Tag: | Revision:

root / snf-okeanos-site / okeanos_site / urls.py @ 2ce0636e

History | View | Annotate | Download (746 Bytes)

1
import os
2

    
3
from django.conf.urls.defaults import *
4
from django.conf import settings
5

    
6
urlpatterns = patterns('',
7

    
8
    # change app url from root (/) to (/ui)
9
    url(r'^ui$', 'synnefo.ui.views.home', name='index'),
10

    
11
    # intro page is now the root
12
    url(r'^$', 'okeanos_site.views.intro', name='okeanos_intro'),
13
    # intro view also as /intro to avoid appending root (/) to the AAI_SKIP_LIST
14
    url(r'^intro$', 'okeanos_site.views.intro', name='okeanos_intro'),
15

    
16
    # video/info page
17
    url(r'^about$', 'okeanos_site.views.index', name='okeanos_index'),
18
)
19

    
20
urlpatterns += patterns('',
21
    url(r'^okeanos_static/(.*)$', 'django.views.static.serve',
22
    {'document_root': os.path.join(os.path.dirname(__file__), 'static/okeanos_static')}),
23
)