| 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-- |
| 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'), |
| 4 | 22 |
|
23 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
| 9 | 24 |
url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
| 4 | 25 |
# Uncomment the next line to enable the admin: |
| 9 | 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 | 30 |
) |
| 17 | 31 |
urlpatterns += staticfiles_urlpatterns() |
32 |
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |