Skip to content

Commit

Permalink
Fix issue with pip project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dusty Phillips committed Nov 25, 2010
1 parent 7a8dc6b commit db07637
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions greatbigcrane/project/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ def buildout(self):
return sections

def is_django(self):
sections = self.buildout()
for name, section in sections.items():
if 'recipe' in section and section['recipe'] == 'djangorecipe':
return True
return False
if not self.pipproject:
sections = self.buildout()
for name, section in sections.items():
if 'recipe' in section and section['recipe'] == 'djangorecipe':
return True
return False
else:
return 'Django' in self.pipproject.requirements

def github_url(self):
'''If our repo is a github repo, provide a link to the
Expand Down

0 comments on commit db07637

Please sign in to comment.