Implemented dajax and moved models to media rather than static
This commit is contained in:
parent
88fe7b7e79
commit
59bab5fc10
106 changed files with 12547 additions and 12 deletions
12
three_d_viewer/urls.py
Normal file
12
three_d_viewer/urls.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls import patterns, url
|
||||
from three_d_viewer import views
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||
url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'),
|
||||
url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
|
||||
{'document_root': settings.MEDIA_ROOT}),
|
||||
)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue