Browse files

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

  • Loading branch information...
1 parent c9bad01 commit 95d533ed9b9e8535584b0cda93652bbddd95b18d @jacobian jacobian committed Jan 27, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 manage.py
View
9 manage.py
@@ -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)

0 comments on commit 95d533e

Please sign in to comment.