Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added django path for Windows.

  • Loading branch information...
commit d620a8d6121cf34d3b505f9c0e405fbd12aff48c 1 parent 8d1504b
Juha Autero authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  limuweb/manage.py
4  limuweb/manage.py
... ...
@@ -1,4 +1,8 @@
1 1
 #!/usr/bin/env python
  2
+import sys,os
  3
+if sys.platform=='win32':
  4
+    basedir=os.environ.get("BASEDIR","C:\\limu")
  5
+    sys.path.append(os.path.join(basedir,"submodules","django"))
2 6
 from django.core.management import execute_manager
3 7
 try:
4 8
     import settings # Assumed to be in the same directory.

1 note on commit d620a8d

Taneli Kaivola

Improvement would be to set basedir to something based on file.

I don't know if I should utter this uglyness: os.path.abspath( os.path.join( os.path.dirname( os.path.realpath( file ) ), "..") )

Taneli Kaivola

Manage.py hacks are ok. This might be better if it was multiplatform also.

Please sign in to comment.
Something went wrong with that request. Please try again.