src/egonomy/urls.py
author Anthony Ly <anthonyly.com@gmail.com>
Thu, 13 Jun 2013 11:24:40 +0200
changeset 115 a88246833732
parent 110 4732fcfd3a76
child 159 b98558f8d2c1
permissions -rw-r--r--
setup integration header
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'),
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
    # Uncomment the admin/doc line below to enable admin documentation:
9
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
    24
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
    # Uncomment the next line to enable the admin:
9
aee87529a698 first views with empty templates
cavaliet
parents: 4
diff changeset
    26
    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
    27
    # 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
    28
    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
    29
    url(r'^logout/', 'django.contrib.auth.views.logout', name='logout'),
4
0587d6556969 +add virtualenv creation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
)
17
38611b2c2782 upgrade home template with thumbnail.
cavaliet
parents: 15
diff changeset
    31
urlpatterns += staticfiles_urlpatterns()
38611b2c2782 upgrade home template with thumbnail.
cavaliet
parents: 15
diff changeset
    32
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)