
from django import forms

from project.models import Project

class ProjectForm(forms.ModelForm):
    class Meta:
        model = Project

class DjangoRecipeForm(forms.Form):
    settings = forms.CharField()
    version = forms.ChoiceField(choices=[
        ("trunk", "trunk"),
        ("1.2", "1.2"),
        ("1.1.2", "1.1.2"),
        ("1.1", "1.1"),
        ("1.0.4", "1.04"),
        ("0.96", "0.96"),
        ])
    eggs = forms.CharField()
    project = forms.CharField()
    extra_paths = forms.CharField()
    fcgi = forms.BooleanField()
    wsgi = forms.BooleanField()

recipe_form_map = {
        'djangorecipe': DjangoRecipeForm
        }


from django import forms

from project.models import Project

class ProjectForm(forms.ModelForm):
    class Meta:
        model = Project

class DjangoRecipeForm(forms.Form):
    name = forms.CharField(initial="django")
    settings = forms.CharField()
    version = forms.ChoiceField(choices=[
        ("trunk", "trunk"),
        ("1.2", "1.2"),
        ("1.1.2", "1.1.2"),
        ("1.1", "1.1"),
        ("1.0.4", "1.04"),
        ("0.96", "0.96"),
        ])
    eggs = forms.CharField()
    project = forms.CharField()
    extra_paths = forms.CharField()
    fcgi = forms.BooleanField()
    wsgi = forms.BooleanField()

recipe_form_map = {
        'djangorecipe': DjangoRecipeForm
        }

Add a name for the recipe section
Add a name for the recipe section

  
  from django import forms
  
  from project.models import Project
  
  class ProjectForm(forms.ModelForm):
      class Meta:
          model = Project
  
  class DjangoRecipeForm(forms.Form):
+     name = forms.CharField(initial="django")
      settings = forms.CharField()
      version = forms.ChoiceField(choices=[
          ("trunk", "trunk"),
          ("1.2", "1.2"),
          ("1.1.2", "1.1.2"),
          ("1.1", "1.1"),
          ("1.0.4", "1.04"),
          ("0.96", "0.96"),
          ])
      eggs = forms.CharField()
      project = forms.CharField()
      extra_paths = forms.CharField()
      fcgi = forms.BooleanField()
      wsgi = forms.BooleanField()
  
  recipe_form_map = {
          'djangorecipe': DjangoRecipeForm
          }
  
Add a name for the recipe section
## Code Before:

from django import forms

from project.models import Project

class ProjectForm(forms.ModelForm):
    class Meta:
        model = Project

class DjangoRecipeForm(forms.Form):
    settings = forms.CharField()
    version = forms.ChoiceField(choices=[
        ("trunk", "trunk"),
        ("1.2", "1.2"),
        ("1.1.2", "1.1.2"),
        ("1.1", "1.1"),
        ("1.0.4", "1.04"),
        ("0.96", "0.96"),
        ])
    eggs = forms.CharField()
    project = forms.CharField()
    extra_paths = forms.CharField()
    fcgi = forms.BooleanField()
    wsgi = forms.BooleanField()

recipe_form_map = {
        'djangorecipe': DjangoRecipeForm
        }

## Instruction:
Add a name for the recipe section
## Code After:

from django import forms

from project.models import Project

class ProjectForm(forms.ModelForm):
    class Meta:
        model = Project

class DjangoRecipeForm(forms.Form):
    name = forms.CharField(initial="django")
    settings = forms.CharField()
    version = forms.ChoiceField(choices=[
        ("trunk", "trunk"),
        ("1.2", "1.2"),
        ("1.1.2", "1.1.2"),
        ("1.1", "1.1"),
        ("1.0.4", "1.04"),
        ("0.96", "0.96"),
        ])
    eggs = forms.CharField()
    project = forms.CharField()
    extra_paths = forms.CharField()
    fcgi = forms.BooleanField()
    wsgi = forms.BooleanField()

recipe_form_map = {
        'djangorecipe': DjangoRecipeForm
        }
