]> git.parisson.com Git - mezzo.git/commitdiff
TinyMCE : error 500 on links button, related to unresolvable url of Products
authorEmilie <zawadzki@ircam.fr>
Thu, 15 Sep 2016 08:40:40 +0000 (10:40 +0200)
committerEmilie <zawadzki@ircam.fr>
Thu, 15 Sep 2016 08:40:40 +0000 (10:40 +0200)
app/organization/products/urls.py
app/organization/products/views.py
app/organization/urls.py

index 75e2f1564edc2a038420013ae414fcb0db0c51f3..3676a1b80f3d007189fc75d5c36158f6201d3e8e 100644 (file)
@@ -7,8 +7,8 @@ from django.conf.urls.i18n import i18n_patterns
 from mezzanine.core.views import direct_to_template
 from mezzanine.conf import settings
 
-from organization.projects.views import *
+from organization.products.views import *
 
 urlpatterns = [
-    # url("^project/detail/(?P<slug>.*)/$", ProjectDetailView.as_view(), name='organization-project-detail'),
+    url("^product/(?P<slug>.*)/$", ProductDetailView.as_view(), name='shop_product'),
 ]
index 44b18f22f5050f7a94ad610c95f0a1123be5f1d7..d338301c5d0a1486e64f7b6f856005fa5bc4ba48 100644 (file)
@@ -15,3 +15,8 @@ from organization.core.views import *
 #     model = Project
 #     template_name='projects/project_detail.html'
 #     context_object_name = 'project'
+
+
+class ProductDetailView(SlugMixin, DetailView):
+
+    pass
index 5ed30ea180ca33c3aec94da2b546ca542c0919c5..4ae90e119b0b73777f610569d4925a0f8855cbb6 100644 (file)
@@ -21,4 +21,5 @@ urlpatterns = [
     url("^", include('organization.network.urls')),
     url("^", include('organization.agenda.urls')),
     url("^", include('organization.job.urls')),
+    url("^", include('organization.products.urls')),
 ]