Quellcode durchsuchen

Fixed a few typos to get the admin panel to work

master
David Winterbottom vor 15 Jahren
Ursprung
Commit
d9a1c08733
4 geänderte Dateien mit 17 neuen und 12 gelöschten Zeilen
  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 Datei anzeigen

@@ -8,5 +8,10 @@ Do the following from your workspace folder:
8 8
     mkdir oscar
9 9
 	cd oscar
10 10
     mkvirtualenv --no-site-packages oscar
11
-After download your fork, install all dependencies:
11
+After checking out your fork, install all dependencies:
12 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 Datei anzeigen

@@ -1,8 +1,8 @@
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 6
 from django.contrib import admin
7 7
 
8 8
 class AttributeInline(admin.TabularInline):

+ 2
- 2
settings.py Datei anzeigen

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

+ 4
- 4
urls.py Datei anzeigen

@@ -1,16 +1,16 @@
1 1
 from django.conf.urls.defaults import *
2 2
 
3 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 7
 urlpatterns = patterns('',
8 8
     # Example:
9
-    # (r'^peterson/', include('peterson.foo.urls')),
9
+    # (r'^oscar/', include('oscar.foo.urls')),
10 10
 
11 11
     # Uncomment the admin/doc line below to enable admin documentation:
12 12
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
13 13
 
14 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
 )

Laden…
Abbrechen
Speichern