Questions tagged [cookiecutter]

A command-line utility that creates projects from cookiecutters (project templates), e.g. creating a Python package project from a Python package project template.

A command-line utility that creates projects from cookiecutters (project templates), e.g. creating a Python package project from a Python package project template.

enter image description here

Project home.

132 questions
0
votes
1 answer

ModuleNotFoundError - poetry / cookiecutter

I'm trying to run commands through poetry and keep getting this error: Traceback (most recent call last): File "manage.py", line 30, in execute_from_command_line(sys.argv) File…
Suki
  • 177
  • 3
  • 12
0
votes
1 answer

How to automatically pass multiple inputs to prompts in circleci?

I am trying to apply a cookiecutter template. When I run the command "cookiecutter private_git_repo", it asks if I want to use overlays or not? So, I need to pass "yes" to that. Later, it gives multiple options to ask which overlay I want to use.…
loadbox
  • 646
  • 14
  • 34
0
votes
2 answers

How do I call a cache busting function inside request.static_url() in my layout.pt chameleon template

I'm using a Cookiecutter Pyramid web development framework. This has three linked files: utils.py - defines the random cache string to add to an url views.py - passes utils functions to chameleon template layout.pt - chameleon template calling…
thunt
  • 89
  • 1
  • 11
0
votes
1 answer

Running Python Cookiecutter to get template from GitHub results in subprocess.CalledProcessError, returned non-zero exit status 128

While running Cookiecutter, I encountered the following error message: C:\Users\Al>cookiecutter https://github.com/asweigart/cookiecutter-basicpythonproject You've downloaded C:\Users\Al\.cookiecutters\cookiecutter-basicpythonproject before. Is it…
Al Sweigart
  • 11,566
  • 10
  • 64
  • 92
0
votes
1 answer

If statement with cookiecutter has bad syntax

I'm trying to use cookiecutter as the first time in my django project in order to create project skeleton. In my cookiecutter.project_slug, I have a base.py settings file with this part at the end: import cookiecutter {% if cookiecutter.use_celery…
Essex
  • 6,042
  • 11
  • 67
  • 139
0
votes
2 answers

cookiecutter error in django

I installed a cookie cutter using pip. Then I ran this $ cookiecutter But this doesn't work. This is the traceback: Traceback (most recent call last): File "/home/choco/.local/bin/cookiecutter", line 7, in from cookiecutter.main import main …
user9890549
0
votes
0 answers

Flask shell isn't finding submodule of directory, raises AttributeError

Using cookiecutter-flask, I created a new blueprint/submodule called site that is modeled after the user submodule across all the relevant files, tests, etc. Tests are passing, DB created, and flask run works, but when I try to enter flask shell I…
Tyler_1
  • 176
  • 1
  • 2
  • 11
0
votes
1 answer

How to include a cookiecutter template with a bdist/conda package?

I am maintaining an internal python package with a number of utility functions. As part of this package, I included a project generator console_script which calls cookiecutter using a custom template that is shipped with the package. This works fine…
Christoph
  • 5,480
  • 6
  • 36
  • 61
0
votes
1 answer

pyramid subprocess call STDERR and STDOUT trapping logging

I am using a views.py subprocess os call which fails with non-zero return code and I need to trap what is going wrong. I would also like to log everything and have struggled to follow instructions…
Craig
  • 3
  • 3
0
votes
1 answer

How should I render YAML arrays neatly with cookiecutter?

I have a cookiecutter template that I want to render a YAML file based on some options. As a simple example, suppose a rendered YAML file could look like this: supported_databases: - mysql - postgres And my cookiecutter JSON looked like…
Chris
  • 6,076
  • 11
  • 48
  • 62
0
votes
1 answer

django cookiecutter extending base.html wipes out my web page

I am working on a project that I started in June 2017 with the cookiecutter I had just installed. At the time, with respect to django, I was an absolute beginner. (I am a bit more advanced by now, but just a bit.) Cookiecutter put a base.html in…
Rick Graves
  • 517
  • 5
  • 11
0
votes
0 answers

'pipenv install -r' is not working

Excuted this : 'pipenv install -r requirements/local.txt' D:\doc\jaeeongram> pipenv install -r requirements/local.txt Requirements file provided! Importing into Pipfile… Pipfile.lock not found, creating… Locking [dev-packages] dependencies… Locking…
Tony Jin
  • 19
  • 6
0
votes
2 answers

Python cookiecutter without remote git repository

I have recently discovered cookiecutter and would like to try the structure for some of my work projects, but we can't always push code to a remote repo (even a private one). I often use git locally just to track changes for my own purposes. Is…
elz
  • 5,338
  • 3
  • 28
  • 30
0
votes
1 answer

Problems with catching eval() SyntaxError using cookiecutter

I have a problem in Python (2.7) - I have a cookiecutter project that prompts for input (via CLI) and then generates my project based on that input. One of my fields is a description, and I've seen that adding quote marks in, i.e. 'Hello this is…
Connor Cartwright
  • 385
  • 2
  • 3
  • 14
0
votes
1 answer

Flask-cookiecutter how to change the default ip and port in dev

I am trying to use flask-cookiecutter, https://github.com/konstantint/cookiecutter-flask , to build a website/learn flask and webdev. I have the dev env setup on a mac and I want to run it from a Centos VM on my mac. My problem is how do I set the…
ms4720
  • 327
  • 1
  • 11
1 2 3
8
9