标签:
1 2 import os 3 import sys 4 5 djangopath = "D:/Python27/Lib/site-packages/django/bin" 6 if djangopath not in sys.path: 7 sys.path.append(djangopath) 8 9 projectpath = ‘D:/workspace/MyDjangoProject‘ 10 if projectpath not in sys.path: 11 sys.path.append(projectpath) 12 13 apppath = ‘D:/workspace/MyDjangoProject/MyDjangoProject‘ 14 if apppath not in sys.path: 15 sys.path.append(apppath) 16 os.environ[‘DJANGO_SETTINGS_MODULE‘]=‘MyDjangoProject.settings‘ 17 18 from django.core.wsgi import get_wsgi_application 19 application = get_wsgi_application()
1 LoadModule wsgi_module modules/mod_wsgi.so 2 WSGIScriptAlias / "D:/workspace/MyDjangoProject/django.wsgi" 3 <Directory "D:/workspace/MyDjangoProject/"> 4 Options FollowSymLinks 5 AllowOverride None 6 Order deny,allow 7 Allow from all 8 </Directory>
1 The translation infrastructure cannot be initialized before the apps registry is ready
Python & PyCharm & Django 搭建web开发环境(续)
标签:
原文地址:http://www.cnblogs.com/benshan/p/4445980.html