浏览代码

Fixed a few typos to get the admin panel to work

master
David Winterbottom 15 年前
父节点
当前提交
d9a1c08733
共有 4 个文件被更改,包括 17 次插入12 次删除
  1. 6
    1
      README.md
  2. 5
    5
      oscar/product/admin.py
  3. 2
    2
      settings.py
  4. 4
    4
      urls.py

+ 6
- 1
README.md 查看文件

8
     mkdir oscar
8
     mkdir oscar
9
 	cd oscar
9
 	cd oscar
10
     mkvirtualenv --no-site-packages oscar
10
     mkvirtualenv --no-site-packages oscar
11
-After download your fork, install all dependencies:
11
+After checking out your fork, install all dependencies:
12
 	pip install -r requirements.txt
12
 	pip install -r requirements.txt
13
+
14
+## Aims of project
15
+* To be a portable Django application that provides ecommerce functionality.  
16
+* To comprise a set of loosely coupled apps that can be overridden in projects (interdependence is on interfaces only)
17
+* To allow core objects (eg products, orders) to be extended within a specific project

+ 5
- 5
oscar/product/admin.py 查看文件

1
-from product.models import AttributeType
2
-from product.models import Type
3
-from product.models import Item
4
-from product.models import Attribute
5
-from product.models import AttributeTypeMembership
1
+from oscar.product.models import AttributeType
2
+from oscar.product.models import Type
3
+from oscar.product.models import Item
4
+from oscar.product.models import Attribute
5
+from oscar.product.models import AttributeTypeMembership
6
 from django.contrib import admin
6
 from django.contrib import admin
7
 
7
 
8
 class AttributeInline(admin.TabularInline):
8
 class AttributeInline(admin.TabularInline):

+ 2
- 2
settings.py 查看文件

1
-# Django settings for peterson project.
1
+# Django settings for oscar project.
2
 
2
 
3
 DEBUG = True
3
 DEBUG = True
4
 TEMPLATE_DEBUG = DEBUG
4
 TEMPLATE_DEBUG = DEBUG
75
     'django.contrib.messages.middleware.MessageMiddleware',
75
     'django.contrib.messages.middleware.MessageMiddleware',
76
 )
76
 )
77
 
77
 
78
-ROOT_URLCONF = 'peterson.urls'
78
+ROOT_URLCONF = 'urls'
79
 
79
 
80
 TEMPLATE_DIRS = (
80
 TEMPLATE_DIRS = (
81
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
81
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".

+ 4
- 4
urls.py 查看文件

1
 from django.conf.urls.defaults import *
1
 from django.conf.urls.defaults import *
2
 
2
 
3
 # Uncomment the next two lines to enable the admin:
3
 # Uncomment the next two lines to enable the admin:
4
-# from django.contrib import admin
5
-# admin.autodiscover()
4
+from django.contrib import admin
5
+admin.autodiscover()
6
 
6
 
7
 urlpatterns = patterns('',
7
 urlpatterns = patterns('',
8
     # Example:
8
     # Example:
9
-    # (r'^peterson/', include('peterson.foo.urls')),
9
+    # (r'^oscar/', include('oscar.foo.urls')),
10
 
10
 
11
     # Uncomment the admin/doc line below to enable admin documentation:
11
     # Uncomment the admin/doc line below to enable admin documentation:
12
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
12
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
13
 
13
 
14
     # Uncomment the next line to enable the admin:
14
     # Uncomment the next line to enable the admin:
15
-    # (r'^admin/', include(admin.site.urls)),
15
+    (r'^admin/', include(admin.site.urls)),
16
 )
16
 )

正在加载...
取消
保存