Commits

Doug Tyler  committed 3e32452

Change to explicit relative imports

  • Participants
  • Parent commits 92e12ae

Comments (0)

Files changed (4)

File user_stories/stories/admin.py

 from django.contrib.sites.models import Site
 from django.contrib.auth.models import Group
 
-from user_stories.stories.models import Role, Priority, UserStory
+from .stories.models import Role, Priority, UserStory
 
 
 # class PriorityInline(admin.TabularInline):

File user_stories/stories/templates/stories/index.html

 <head>
 <title>User Stories</title>
 <style type="text/css">
-/*body {background-color:yellow;}*/
-/*p {color:blue;}*/
 .priority {
     border: 1px solid #aaa;
     padding: 1px;

File user_stories/stories/views.py

 from django.shortcuts import render
-from models import UserStory
+
+from .models import UserStory
+
 
 def home(request):
     context = {'stories': UserStory.objects.all()}

File user_stories/urls.py

 from django.conf.urls import patterns, include, url
-
 from django.contrib import admin
-admin.autodiscover()
 
+admin.autodiscover()
 urlpatterns = patterns(
     '',
     url(r'^$', 'user_stories.stories.views.home', name='home'),