Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made the manage.py work for the docs site too.

  • Loading branch information...
commit 95d533ed9b9e8535584b0cda93652bbddd95b18d 1 parent c9bad01
Jacob Kaplan-Moss jacobian authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 manage.py
9 manage.py
View
@@ -4,6 +4,11 @@
import sys
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
-import django_website.settings.www
+if '--docs' in sys.argv:
+ import django_website.settings.docs as settings
+ sys.argv.remove('--docs')
+else:
+ import django_website.settings.www as settings
+
from django.core.management import execute_manager
-execute_manager(django_website.settings.www)
+execute_manager(settings)
Please sign in to comment.
Something went wrong with that request. Please try again.