Open muyang opened 7 years ago
... ... setup( name='django-oscar-demo', version=version, url='https://github.com/muyang/django-oscar-demo.git', author='muyang muyang0828@gmail.com', description=('a demo'), long_description=open('README.md').read(), keywords='Oscar,django', license=open('LICENSE').read(), platforms=['linux'], packages=find_packages(exclude=['sandbox', 'tests']), include_package_data=True, install_requires=[ 'django>=1.8.8,<1.10', 'django-oscar>=1.1' ], ... ... I set the django version :+1: 'django>=1.8.8,<1.10',
now, error became
rm sandbox/db.sqlite
rm: cannot remove ‘sandbox/db.sqlite’: No such file or directory
make: [sandbox] Error 1 (ignored)
sandbox/manage.py migrate
Traceback (most recent call last):
File "sandbox/manage.py", line 10, in
remove pattern and ' ', change ( ) to [ ]
urlpatterns = pattern( '' url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^admin/', include(admin.site.urls)), url(r'^checkout/demo1/', include('demo1.urls')), url(r'^dashboard/demo1/', include(demo1_dashboard.urls)), url(r'^', include(application.urls)), ]
to urlpatterns = [ url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^admin/', include(admin.site.urls)), url(r'^checkout/demo1/', include('demo1.urls')), url(r'^dashboard/demo1/', include(demo1_dashboard.urls)), url(r'^', include(application.urls)), ]
then error ''ImportError: No module named south.v2'' came,
add django-extensions==1.6.7 in requirements.sandbox.txt or pip install django-extensions==1.6.7
and change pycountry==1.20 to pycountry==17.5.14
new error
CommandError: No fixture named 'order' found.
change name ~/sandbox/fixtures/orders.json to order.json
now server can run:
TemplateDoesNotExist at / debug_toolbar/base.html
I followed the demo, but there was an error when run make sandbox:
... ... Successfully installed rst2pdf-0.93.dev0 ./setup.py develop running develop running egg_info writing requirements to django_oscar_hooks.egg-info/requires.txt writing django_oscar_hooks.egg-info/PKG-INFO writing top-level names to django_oscar_hooks.egg-info/top_level.txt writing dependency_links to django_oscar_hooks.egg-info/dependency_links.txt reading manifest file 'django_oscar_hooks.egg-info/SOURCES.txt' writing manifest file 'django_oscar_hooks.egg-info/SOURCES.txt' running build_ext Creating /home/hmmm/.virtualenvs/django-oscar-hooks/lib/python2.7/site-packages/django-oscar-hooks.egg-link (link to .) django-oscar-hooks 0.1.0 is already the active version in easy-install.pth
Installed /home/hmmm/webapp/oscar-app/django-oscar-hooks Processing dependencies for django-oscar-hooks==0.1.0 error: Django 1.11.1 is installed but Django<1.11 is required by set(['django-haystack']) make: *** [install] Error 1