And thank you for posting back it worked!
Regards,
Olrik
Edited by Artellos, 11 June 2008 - 11:46 PM.
Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!
Edited by Artellos, 11 June 2008 - 11:46 PM.
import os import sys import time from django.core.management import call_command import threading import thread from django.core.management.commands.runserver import Command import webbrowser sys.path += [r'c:\dev'] sys.path += [r'p:\Hazard_Inventory'] os.environ['DJANGO_SETTINGS_MODULE'] = 'incidents.settings' #t = thread.start_new_thread(os.system, (u'C:\\Python25\\python C:\\dev\\\\incidents\\manage.py runserver > nul', )) class RunDevServer(threading.Thread): def run(self): s = Command() s.execute(use_reloader=False) def start_dev_server(): t = RunDevServer() t.setDaemon(False) t.start() time.sleep(.2) start_dev_server() webbrowser.open('http://127.0.0.1:8000/admin/base/incident/add/')
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.pyo", line 486, in __bootstrap_inner
File "pyweb.py", line 20, in run
File "django\core\management\base.pyo", line 81, in execute
File "django\utils\translation\__init__.pyo", line 73, in activate
File "django\utils\translation\__init__.pyo", line 43, in delayed_loader
File "django\utils\translation\trans_real.pyo", line 211, in activate
File "django\utils\translation\trans_real.pyo", line 200, in translation
File "django\utils\translation\trans_real.pyo", line 183, in _fetch
AttributeError: 'module' object has no attribute 'auth'
from distutils.core import setup import py2exe import sys if len(sys.argv) == 1: sys.argv.append("py2exe") setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1, "bundle_files": 1}}, zipfile = None, windows = [{"script": 'pyweb.py'}])
0 members, 1 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.