Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
~~~~~~~
Python 3.X
~~~~~~~
For Python 3.X

~~~~~~~
Introduction
~~~~~~~
This app does all the groundwork needed to get an app up and running..
Usage:

Expand Down
8 changes: 4 additions & 4 deletions django-groundwork/management/commands/groundwork.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.core.management.base import BaseCommand, CommandError
from django.db import models
from placeholders import *
from .placeholders import *# [for Python 3.x]add "." in front of "placeholders"
import os

class Command(BaseCommand):
Expand Down Expand Up @@ -74,8 +74,8 @@ def handle(self, *args, **options):
if not os.path.exists(template_dir):
os.makedirs(template_dir)

print "Generate base template? [Y/N]?"
yn = raw_input()
print("Generate base template? [Y/N]?")# [for Python 3.x]print()
yn = input()# [for Python 3.x]
if yn.lower() == 'y':
f = open(os.path.join(TEMPLATE_DIR, 'base.html') , 'w')
f.write(TEMPLATES_BASE)
Expand Down Expand Up @@ -104,5 +104,5 @@ def handle(self, *args, **options):
f.close()

except:
print "Usage : manage.py groundwork <app> <model>"
print("Usage : manage.py groundwork <app> <model>")# [for Python 3.x]print()