src/egonomy/urls.py
author cavaliet
Mon, 01 Jul 2013 17:38:34 +0200
changeset 211 35aca8206b40
parent 191 d7b30914607d
child 212 2cca82dd0e79
permissions -rw-r--r--
collection parameters with title, delete collection, ajax add item
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17
38611b2c2782 upgrade home template with thumbnail.
cavaliet
parents: 15
diff changeset
     1
from django.conf import settings
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from django.conf.urls import patterns, include, url
17
38611b2c2782 upgrade home template with thumbnail.
cavaliet
parents: 15
diff changeset
     3
from django.conf.urls.static import static
9
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
     4
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
# Uncomment the next two lines to enable the admin:
9
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
     7
from django.contrib import admin
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
     8
admin.autodiscover()
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
urlpatterns = patterns('',
9
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
    11
    url(r'^$', 'egonomy.views.home', name='home'),
23
bb7819c8d7c2 first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents: 19
diff changeset
    12
    url(r'^annotate/(?P<image_id>.*)/$', 'egonomy.views.annotate_picture', name='annotate_picture'),
bb7819c8d7c2 first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents: 19
diff changeset
    13
    url(r'^viewfragment/(?P<fragment_pk>.*)/$', 'egonomy.views.view_fragment', name='view_fragment'),
71
14c40542dfbb modify segment. export xml corrected.
cavaliet
parents: 67
diff changeset
    14
    url(r'^createfragment/(?P<image_id>.*)/(?P<fragment_pk>.*)/$', 'egonomy.views.create_fragment', name='create_fragment'),
14c40542dfbb modify segment. export xml corrected.
cavaliet
parents: 67
diff changeset
    15
    url(r'^createfragment/(?P<image_id>.*)/', 'egonomy.views.create_fragment', name='create_fragment'),
19
e00c68158187 save fragment first step
cavaliet
parents: 17
diff changeset
    16
    url(r'^savefragment/$', 'egonomy.views.save_fragment', name='save_fragment'),
27
daaafc916dc4 Debug in templates. All fragments page added. Language files updated.
cavaliet
parents: 24
diff changeset
    17
    url(r'^allpictures/$', 'egonomy.views.all_pictures', name='all_pictures'),
daaafc916dc4 Debug in templates. All fragments page added. Language files updated.
cavaliet
parents: 24
diff changeset
    18
    url(r'^allfragments/$', 'egonomy.views.all_fragments', name='all_fragments'),
67
a085d708c407 user fragment page and enhance pertimm display.
cavaliet
parents: 27
diff changeset
    19
    url(r'^userfragments/(?P<username>.*)/$', 'egonomy.views.user_fragments', name='user_fragments'),
85
4d320fbfc550 Prepare front for Senseetive api.
cavaliet
parents: 71
diff changeset
    20
    url(r'^senseetiveapi/$', 'egonomy.views.senseetive_api', name='senseetive_api'),
110
4732fcfd3a76 new feature : delete fragment.
cavaliet
parents: 85
diff changeset
    21
    url(r'^deletefragment/$', 'egonomy.views.delete_fragment', name='delete_fragment'),
159
b98558f8d2c1 collection first step
cavaliet
parents: 110
diff changeset
    22
    url(r'^allcollections/$', 'egonomy.views.all_collections', name='all_collections'),
b98558f8d2c1 collection first step
cavaliet
parents: 110
diff changeset
    23
    url(r'^usercollections/(?P<username>.*)/$', 'egonomy.views.user_collections', name='user_collections'),
211
35aca8206b40 collection parameters with title, delete collection, ajax add item
cavaliet
parents: 191
diff changeset
    24
    url(r'^savecollection/$', 'egonomy.views.save_collection', name='save_collection'),
35aca8206b40 collection parameters with title, delete collection, ajax add item
cavaliet
parents: 191
diff changeset
    25
    url(r'^deletecollection/$', 'egonomy.views.delete_collection', name='delete_collection'),
159
b98558f8d2c1 collection first step
cavaliet
parents: 110
diff changeset
    26
    url(r'^viewcollection/(?P<collection_pk>.*)/$', 'egonomy.views.view_collection', name='view_collection'),
168
c90576d18319 argumentaire/list collection view
cavaliet
parents: 159
diff changeset
    27
    url(r'^additem/$', 'egonomy.views.add_item_to_collection', name='add_item'),
191
d7b30914607d enhance collection and add slideshow with images and fragments.
cavaliet
parents: 168
diff changeset
    28
    url(r'^embedslideshow/(?P<collection_pk>.*)/$', 'egonomy.views.embed_slideshow', name='embed_slideshow'),
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
    # Uncomment the admin/doc line below to enable admin documentation:
9
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
    31
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
    # Uncomment the next line to enable the admin:
9
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
    33
    url(r'^admin/', include(admin.site.urls)),
23
bb7819c8d7c2 first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents: 19
diff changeset
    34
    # login logout view
bb7819c8d7c2 first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents: 19
diff changeset
    35
    url(r'^login/', 'django.contrib.auth.views.login', name='login'),
bb7819c8d7c2 first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents: 19
diff changeset
    36
    url(r'^logout/', 'django.contrib.auth.views.logout', name='logout'),
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
)
17
38611b2c2782 upgrade home template with thumbnail.
cavaliet
parents: 15
diff changeset
    38
urlpatterns += staticfiles_urlpatterns()
38611b2c2782 upgrade home template with thumbnail.
cavaliet
parents: 15
diff changeset
    39
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)