Commits

danjac  committed 46155a1

Change names of bin files to ensure correct project name

  • Participants
  • Parent commits aa767c9

Comments (0)

Files changed (9)

 
 Download/checkout django-bootstrap-template to your local filesystem. Then create a new project:
 
-`django-admin.py myproject --template=/path/to/django-bootstrap-template/template`
+`django-admin.py startproject myproject --template=/path/to/django-bootstrap-template/template`
 
 Set up your database and settings (PostgreSQL is assumed as default, modify accordingly) and you should be good to go.
 

File template/bin/develop

-#!/usr/bin/env python
-import os, sys
-
-if __name__ == "__main__":
-    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
-
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.development")
-
-    from django.core.management import execute_from_command_line
-
-    execute_from_command_line(sys.argv)

File template/bin/develop.py

+#!/usr/bin/env python
+import os, sys
+
+if __name__ == "__main__":
+    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
+
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.development")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)

File template/bin/production

-#!/usr/bin/env python
-import os, sys
-
-if __name__ == "__main__":
-    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
-
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.production")
-
-    from django.core.management import execute_from_command_line
-
-    execute_from_command_line(sys.argv)

File template/bin/production.py

+#!/usr/bin/env python
+import os, sys
+
+if __name__ == "__main__":
+    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
+
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.production")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)

File template/bin/runtests

-#!/usr/bin/env python
-import os, sys
-
-if __name__ == "__main__":
-    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
-
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.testing")
-
-    from django.core.management import call_command
-    from django.conf import settings
-
-    apps_for_testing = [app[16:] for app in settings.INSTALLED_APPS
-            if app.startswith("{{ project_name }}.apps")]
-
-    call_command("test", *apps_for_testing)

File template/bin/runtests.py

+#!/usr/bin/env python
+import os, sys
+
+if __name__ == "__main__":
+    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
+
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.testing")
+
+    from django.core.management import call_command
+    from django.conf import settings
+
+    apps_for_testing = [app[16:] for app in settings.INSTALLED_APPS
+            if app.startswith("{{ project_name }}.apps")]
+
+    call_command("test", *apps_for_testing)

File template/bin/staging

-#!/usr/bin/env python
-import os, sys
-
-if __name__ == "__main__":
-    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
-
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.staging")
-
-    from django.core.management import execute_from_command_line
-
-    execute_from_command_line(sys.argv)

File template/bin/staging.py

+#!/usr/bin/env python
+import os, sys
+
+if __name__ == "__main__":
+    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
+
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.staging")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)