Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 manage.py copy_templates fails #555

Closed
reillychase opened this issue Mar 30, 2018 · 1 comment
Closed

python3 manage.py copy_templates fails #555

reillychase opened this issue Mar 30, 2018 · 1 comment

Comments

@reillychase
Copy link

Issue Summary

(hostifinetenv) rchase@hostifi:~/hostifinet$ python3 manage.py copy_templates
Traceback (most recent call last):
  File "manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/home/rchase/hostifinetenv/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/home/rchase/hostifinetenv/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/rchase/hostifinetenv/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/rchase/hostifinetenv/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/home/rchase/hostifinetenv/lib/python3.6/site-packages/pinax/templates/management/commands/copy_templates.py", line 37, in handle
    for f in glob.glob(os.path.join(base, path)):
  File "/home/rchase/hostifinetenv/lib/python3.6/posixpath.py", line 92, in join
    genericpath._check_arg_types('join', a, *p)
  File "/home/rchase/hostifinetenv/lib/python3.6/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
(hostifinetenv) rchase@hostifi:~/hostifinet$

Steps to Reproduce

python3 manage.py copy_templates

What were you expecting to happen?

templates copied to app for editing

What actually happened?

error

@paltman
Copy link
Contributor

paltman commented Aug 4, 2018

I could provide a better message from the command.

There is a --path argument here

Try:

python3 manage.py copy_templates --path=pinax/stripe/*

@paltman paltman closed this as completed Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants