make imports more explicit
This commit is contained in:
parent
f48c316f39
commit
f9f1c89a01
|
@ -3,8 +3,9 @@ from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
|
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
from .models import (Article, Order, OrderPosition, Person, City, Picture,
|
from webshop.models import (Article, Order, OrderPosition,
|
||||||
OrderOfGoods, Category, Option, Setting)
|
Person, City, Picture, OrderOfGoods,
|
||||||
|
Category, Option, Setting)
|
||||||
|
|
||||||
|
|
||||||
class PersonInline(admin.StackedInline):
|
class PersonInline(admin.StackedInline):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
|
|
||||||
from . import views
|
from webshop import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', views.index, name='index'),
|
url(r'^$', views.index, name='index'),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from django.shortcuts import get_object_or_404, render
|
from django.shortcuts import get_object_or_404, render
|
||||||
from .models import Article, Category, ArticleStatus
|
from webshop.models import Article, Category, ArticleStatus
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue