Changing the IP rtd runs on in dev

18 views
Skip to first unread message

Leon Johnson

unread,
May 7, 2015, 4:51:07 PM5/7/15
to read-t...@googlegroups.com
Hello,
I've just recently installed rtd on a test server. Everything starts fine but I can't find where to change the server's listening IP:port.

Where would I change 127.0.0.1:8000 to the all interfaces:80?

May 07, 2015 - 15:44:33
Django version 1.6.11, using settings 'settings.sqlite'
Starting development server at http://127.0.0.1:8000/

I haven't found any documentation that speaks to this.

Leon Johnson

unread,
May 8, 2015, 8:41:04 AM5/8/15
to read-t...@googlegroups.com
I've got rtd running on a different port
./manage.py runserver 0.0.0.0:8000

But now all I get is the following message.

A server error occurred. Please contact the administrator.

with this on the command line:

(rtd)[root@vtdevse-aion01 readthedocs]# ./manage.py runserver 0.0.0.0:8000
Validating models...

0 errors found
May 08, 2015 - 07:23:50

Django version 1.6.11, using settings 'settings.sqlite'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Traceback (most recent call last):
 
File "/usr/lib64/python2.6/wsgiref/handlers.py", line 93, in run
   
self.result = application(self.environ, self.start_response)
 
File "/opt/rtd/lib/python2.6/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
   
return self.application(environ, start_response)
 
File "/opt/rtd/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
   
self.load_middleware()
 
File "/opt/rtd/lib/python2.6/site-packages/django/core/handlers/base.py", line 47, in load_middleware
    mw_instance
= mw_class()
 
File "/opt/rtd/lib/python2.6/site-packages/django/middleware/locale.py", line 24, in __init__
   
for url_pattern in get_resolver(None).url_patterns:
 
File "/opt/rtd/lib/python2.6/site-packages/django/core/urlresolvers.py", line 365, in url_patterns
    patterns
= getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
 
File "/opt/rtd/lib/python2.6/site-packages/django/core/urlresolvers.py", line 360, in urlconf_module
   
self._urlconf_module = import_module(self.urlconf_name)
 
File "/opt/rtd/lib/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__
(name)
 
File "/opt/rtd/checkouts/readthedocs.org/readthedocs/urls.py", line 11, in <module>
   
from core.views import HomepageView, SearchView
 
File "/opt/rtd/checkouts/readthedocs.org/readthedocs/core/views.py", line 29, in <module>
   
from projects.tasks import remove_dir, update_imported_docs
 
File "/opt/rtd/checkouts/readthedocs.org/readthedocs/projects/tasks.py", line 33, in <module>
   
from restapi.utils import index_search_request
 
File "/opt/rtd/checkouts/readthedocs.org/readthedocs/restapi/utils.py", line 81
     ret_val
= {obj.slug for obj in to_delete_qs}
                           
^
 
SyntaxError: invalid syntax

I'm not sure how to beging troubleshooting this. Any ideas?
Reply all
Reply to author
Forward
0 new messages