fix TypeError
diff --git a/plstackapi/core/api/users.py b/plstackapi/core/api/users.py
index 09384f2..18a68c7 100644
--- a/plstackapi/core/api/users.py
+++ b/plstackapi/core/api/users.py
@@ -13,7 +13,7 @@
if sites:
site = sites[0]
if not site:
- raise Exception, "No such site", fields['site']
+ raise Exception, "No such site: %s" % fields['site']
return site
def add_user(auth, fields):
diff --git a/plstackapi/core/urls.py b/plstackapi/core/urls.py
index 985fd48..5d9df50 100644
--- a/plstackapi/core/urls.py
+++ b/plstackapi/core/urls.py
@@ -10,7 +10,7 @@
from plstackapi.core.views.images import ImageListCreate, ImageRetrieveUpdateDestroy
from plstackapi.core.views.flavors import FlavorListCreate, FlavorRetrieveUpdateDestroy
from plstackapi.core.models import Site
-from plstackapi.planetstack.api_root import api_root
+from plstackapi.core.api_root import api_root
from rest_framework import generics
admin.autodiscover()
@@ -26,7 +26,7 @@
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
- #url(r'^plstackapi/$', api_root),
+ url(r'^plstackapi/$', api_root),
url(r'^plstackapi/roles/$', RoleListCreate.as_view(), name='role-list'),
url(r'^plstackapi/roles/(?P<pk>[a-zA-Z0-9]+)/$', RoleRetrieveUpdateDestroy.as_view(), name='role-detail'),