cookiecutter Questions

5

Solved

I am attempting to set up a website on cookeicutter, I created a new app called "bots" and added a class called Trade within models that lists 2 parameters, "titles" and "units". After migrating an...
Agamogenesis asked 11/10, 2017 at 19:58

2

Is there a way to machine-generate some values, after the user has supplied some their values for the variables in cookiecutter.json? The reason I ask is that: one of the values I need to prompt...
Dispatcher asked 2/5, 2016 at 15:22

1

I'm wondering, if it's possible to skip prompt for chosen parameters in cookiecutter.json based on value of other parameter? For example for cookiecutter.json: { "ask_for_more": ["y", "n"], "som...
Aerial asked 18/11, 2016 at 15:24

3

I would like to have a file that is optionally added in my python cookiecutter project. An example would be in cookiecutter.json have the variable {"settings_file": true} which would create a f...
Phenomenon asked 26/1, 2016 at 0:34

1

Solved

I am creating a cookiecutter template and would like to add a folder (and the files it contains) only if a variable has a given value. For example cookiecutter.json: { "project_slug":&qu...
Sioux asked 25/11, 2020 at 18:23

3

I'm working on creating my first cookiecutter. By and large, this has gone well, but I now want to add a jinja2 filter of my own. In line with the comments in this issue, I've created a new Jinja2...
Bushwhacker asked 10/1, 2018 at 10:1

2

Solved

I just deployed my Django site with Heroku and it works at example.herokuapp.com just fine. The problem I'm having is when I go to example.com, I get Bad Request (400). I've looked at the Django d...
Retread asked 9/4, 2016 at 18:7

0

I have a cookiecuttern json like below { "variable1": "Test variable 1 - mandatory", "variable2": "Test variable 2" } Is there any way to specify to the u...
Shovelhead asked 19/2, 2021 at 21:30

0

I am using pre-commit with black and flake8 hooks. I got this error: cannot format when trying to black-format the following code from {{cookiecutter.project_name}} import my_module Is there anywa...
Palikar asked 29/6, 2020 at 23:49

1

Solved

Is there anything that offers replay-type functionality, by pointing at a predefined prompt-answer file? What works and what I'd like to achieve. Let's take an example, using a cookiecutter to prep...
Glenine asked 28/2, 2020 at 19:53

1

Solved

cookiecutters are template generators that are massively useful in generating projects in a range of languages. However, I was wondering if there's a way to consistently test them? I want to genera...
Paviour asked 20/10, 2018 at 12:0

1

Solved

I am trying to loop over all items in a Python cookiecutter json list and run a bash command based on each item. Setup I have the following cookiecutter.json: { "directory_name": "df-sharp", "...
Deloris asked 24/11, 2017 at 4:3

1

Solved

I'm pretty new to Postgres and Docker, but I am building a webapp with Django that runs inside a docker with a postgresql database. I am trying to view my Postgres database via the command prompt o...
Punjabi asked 25/10, 2017 at 17:10

1

Solved

I'm working in win 10 with git bash and I want to create a scrapy spider from a cookiecutter template. I'm looking at https://cookiecutter.readthedocs.io/en/latest/overview.html and https://cooki...
Hebron asked 29/6, 2017 at 20:34

2

Solved

I am using cookiecutter to create a tornado project, using this template (it has several bugs, so you'll probably won't be able to use it out of the box). I have hit a problem which I do not know h...
Diakinesis asked 25/8, 2016 at 6:43

1

Solved

I've tried everything suggested so far but nothing seems to work. I've created a new Django project with Cookiecutter. I'm able to run it locally and via my Docker machine but for some reason I can...

2

Solved

I have a nested git repository structure, as below: outer_repository/ |-- outer_dummy_file |-- .git `-- inner_repository |-- .git `-- inner_dummy_file Is it possible to make inner_repository/...
Jujutsu asked 24/7, 2016 at 20:47

1

Solved

The command: cookiecutter https://github.com/pydanny/cookiecutter-django/ will clone the lastest version of cookiecutter-django, which is aimed for Django 1.9. There is a Stable section in the ...
Euripides asked 24/3, 2016 at 18:0

1

Solved

I created a django project using cookiecutter as reccomended by Two scoops of Django 1.8. It's called icecreamratings_project I use the git cmd prompt and use 'cd icecreamratings_project'. When ...
Ego asked 17/9, 2015 at 4:46

0

how can I add a custom filter to be used in a jinja template used by cookiecutter? I tried adding using a pre_gen_project hook, it's called, but I can't find a way to make my python functions visi...
Incertitude asked 29/4, 2015 at 19:59
1

© 2022 - 2024 — McMap. All rights reserved.