awesto / cookiecutter-django-shop

Cookiecutter django-SHOP is a blueprint for an e-commerce site based on django-CMS.
126 stars 58 forks source link

djangoshop_stripe not automatically installed #11

Open ML-Chen opened 4 years ago

ML-Chen commented 4 years ago

Using the Cookiecutter template for Django Shop 1.1, it seems that the default Pipfile doesn't include djangoshop_stripe even though I said yes to use_stripe (which is the default). I used the default settings except for saying yes to use_pycharm and saying no to use_sendcloud. I'm using Command Prompt on Windows 10 v1903 with Python 3.6.8.

cookiecutter https://github.com/awesto/cookiecutter-django-shop --checkout releases/1.1
npm install
pipenv install --sequential

When I ran pipenv run python manage.py initialize_shop_demo, I got:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Users\micha\.virtualenvs\my-shop-GPP5EAjA\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "C:\Users\micha\.virtualenvs\my-shop-GPP5EAjA\lib\site-packages\django\core\management\__init__.py", line 338, in execute
    django.setup()
  File "C:\Users\micha\.virtualenvs\my-shop-GPP5EAjA\lib\site-packages\django\__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Users\micha\.virtualenvs\my-shop-GPP5EAjA\lib\site-packages\django\apps\registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "C:\Users\micha\.virtualenvs\my-shop-GPP5EAjA\lib\site-packages\django\apps\config.py", line 94, in create
    module = import_module(entry)
  File "C:\Users\micha\.virtualenvs\my-shop-GPP5EAjA\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'shop_stripe'

Running pipenv install djangoshop_stripe solved the issue.

> pipenv install djangoshop_stripe
Installing djangoshop_stripe…
Adding djangoshop_stripe to Pipfile's [packages]…
Installation Succeeded