-from core.models import *
+from plstackapi.core.models import *
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.forms import widgets
from rest_framework import serializers
-from models import *
+from plstackapi.core.models import *
class SliceSerializer(serializers.HyperlinkedModelSerializer):
# Create your views here.
-from models import Site
+from plstackapi.core.models import Site
from serializers import *
from rest_framework import generics
from rest_framework.decorators import api_view
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
-ROOT_URLCONF = 'planetstack.urls'
+ROOT_URLCONF = 'plstackapi.planetstack.urls'
# Python dotted path to the WSGI application used by Django's runserver.
-WSGI_APPLICATION = 'planetstack.wsgi.application'
+WSGI_APPLICATION = 'plstackapi.planetstack.wsgi.application'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
-from core import views
-from core.views import api_root
-from core.models import Site
+from plstackapi.core import views
+from plstackapi.core.views import api_root
+from plstackapi.core.models import Site
from rest_framework import generics
admin.autodiscover()
# if running multiple sites in the same mod_wsgi process. To fix this, use
# mod_wsgi daemon mode with each site in its own daemon process, or use
# os.environ["DJANGO_SETTINGS_MODULE"] = "planetstack.settings"
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "planetstack.settings")
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION