首先设定 Web Server,详细参见文档《Webserver Setup》。
安装 Django:
root001@ubuntu001:~$ tar xzvf Django-1.1.1.tar.gz ... root001@ubuntu001:~$ cd Django-1.1.1 root001@ubuntu001:~/Django-1.1.1$ sudo python setup.py install ...安装 django-registration:
root001@ubuntu001:~$ sudo easy_install django-registration ...安装 Python Imaging Library:
root001@ubuntu001:~$ tar zxvf Imaging-1.1.7.tar.gz ... root001@ubuntu001:~$ cd Imaging-1.1.7/ root001@ubuntu001:~/Imaging-1.1.7$ sudo python setup.py install ...安装 python-zeroc-ice:
root001@ubuntu001:~$ sudo dpkg -i python-zeroc-ice_3.3.1-6_amd64.deb ...安装、配置 Mumble-Django:
root001@ubuntu001:~$ sudo hg clone http://bitbucket.org/Svedrin/mumble-django/ ...
设定 SLICE_VERSION = (1, 2, 0) in mumble-django/pyweb/settings.py
root001@ubuntu001:~/mumble-django/pyweb$ sudo python manage.py syncdb /usr/local/lib/python2.6/dist-packages/django_registration-0.7-py2.6.egg/registration/models.py:4: DeprecationWarning: the sha module is deprecated; use the hashlib module instead Creating table auth_permission Creating table auth_group Creating table auth_user Creating table auth_message Creating table django_admin_log Creating table django_content_type Creating table django_session Creating table django_site Creating table registration_registrationprofile Creating table mumble_mumble Creating table mumble_mumbleuser You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes Username (Leave blank to use 'root'): E-mail address: greatfoolbear@gmail.com Password: Password (again): Superuser created successfully. --- Murmur connection info --- 1) DBus -- net.sourceforge.mumble.murmur 2) ICE -- Meta:tcp -h 127.0.0.1 -p 6502 Enter 1 or 2 for the defaults above, nothing to skip Server detection, and if the defaults do not fit your needs, enter the correct string. Whether to use DBus or ICE will be detected automatically from the string's format. Service string: Be sure to run "python manage.py syncdb" with Murmur running before trying to use this app! Otherwise, existing Murmur servers won't be configurable! Installing index for auth.Permission model Installing index for auth.Message model Installing index for admin.LogEntry model Installing index for mumble.MumbleUser model
root001@ubuntu001:~/mumble-django/pyweb$ python manage.py runserver 0.0.0.0:8000 Validating models... /usr/local/lib/python2.6/dist-packages/django_registration-0.7-py2.6.egg/registration/models.py:4: DeprecationWarning: the sha module is deprecated; use the hashlib module instead 0 errors found Django version 1.1.1, using settings 'pyweb.settings' Development server is running at http://0.0.0.0:8000/ Quit the server with CONTROL-C.
没有评论 :
发表评论