| author | cavaliet |
| Mon, 01 Jul 2013 17:38:34 +0200 | |
| changeset 211 | 35aca8206b40 |
| parent 191 | d7b30914607d |
| child 212 | 2cca82dd0e79 |
| permissions | -rw-r--r-- |
| 17 | 1 |
from django.conf import settings |
| 4 | 2 |
from django.conf.urls import patterns, include, url |
| 17 | 3 |
from django.conf.urls.static import static |
| 9 | 4 |
from django.contrib.staticfiles.urls import staticfiles_urlpatterns |
| 4 | 5 |
|
6 |
# Uncomment the next two lines to enable the admin: |
|
| 9 | 7 |
from django.contrib import admin |
8 |
admin.autodiscover() |
|
| 4 | 9 |
|
10 |
urlpatterns = patterns('', |
|
| 9 | 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 | 14 |
url(r'^createfragment/(?P<image_id>.*)/(?P<fragment_pk>.*)/$', 'egonomy.views.create_fragment', name='create_fragment'), |
15 |
url(r'^createfragment/(?P<image_id>.*)/', 'egonomy.views.create_fragment', name='create_fragment'), |
|
| 19 | 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 | 19 |
url(r'^userfragments/(?P<username>.*)/$', 'egonomy.views.user_fragments', name='user_fragments'), |
| 85 | 20 |
url(r'^senseetiveapi/$', 'egonomy.views.senseetive_api', name='senseetive_api'), |
| 110 | 21 |
url(r'^deletefragment/$', 'egonomy.views.delete_fragment', name='delete_fragment'), |
| 159 | 22 |
url(r'^allcollections/$', 'egonomy.views.all_collections', name='all_collections'), |
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 | 26 |
url(r'^viewcollection/(?P<collection_pk>.*)/$', 'egonomy.views.view_collection', name='view_collection'), |
| 168 | 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 | 29 |
|
30 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
| 9 | 31 |
url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
| 4 | 32 |
# Uncomment the next line to enable the admin: |
| 9 | 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 | 37 |
) |
| 17 | 38 |
urlpatterns += staticfiles_urlpatterns() |
39 |
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |