Hmm seems that the error is just part of working with the development
server.
I shall work on trying to put this into production mode
Cheers


On Fri, Apr 11, 2014 at 10:31 AM, Adam Teale <adamte...@gmail.com> wrote:

> Hi Guys,
>
> If someone has the time to take a look at this i'd really appreciate it.
>
> I am in the process of developing a small django app to manage some
> aspects of our production company - users, projects etc...
>
> I am in a moment where I would like to get some people on the local
> network to start playing around with it and be able to view video and audio
> files from our server's project directory (for the moment i am just using
> dummy files from a directory on my local machine).
>
> I have set up my machine to allow for users to access the django app via
> my ip address and seems to work - they can login and see pages.
> Eventually this will run on our server.
> The app us running out of my user folder (mac os x 10.9 installed).
> I have django working with an mysql db.
> I think i have mod_wsgi installed ok.
>
>
> So what I am hoping to achieve is that users on the local network, and
> eventually out of the building on their telephones, can view projects
> through the django app and preview proxy versions of the media - such as
> mp4 video files.
>
> This seems to work ok - but I am getting errors when pages with media that
> are visited.
> The media is served though in some caes - in this case mp4 files.
> But devices on wifi don't seem to be able to see the media.
>
> Either way i get errors
>
> I imagine that it is because I need to implement Apache and mod_wsgi. So I
> am trying to follow this:
> https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/
>
> I am hoping someone out there can just give me some ideas or comments
> about what I am doing, if I am making some obvious mistakes, and if you can
> help me work out this error.
>
> Many thanks!
>
>
> Adam
>
>
> error:
>
> [11/Apr/2014 13:21:43] "GET /proyectos/1/ HTTP/1.1" 200 7411
>
> [11/Apr/2014 13:21:43] "GET
> /Users/admin/Dropbox/mstudio/code/mBrain/mbrain/mbrain/static/css/bootstrap.css
> HTTP/1.1" 304 0
>
> [11/Apr/2014 13:21:43] "GET
> /Users/admin/Dropbox/mstudio/code/mBrain/mbrain/mbrain/static/0124_Entel/edit/export/20140401/2053_canal13_marzo_20140408_1720.m4v
> HTTP/1.1" 200 4709
>
> Traceback (most recent call last):
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py",
> line 86, in run
>
>     self.finish_response()
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py",
> line 128, in finish_response
>
>     self.write(data)
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py",
> line 217, in write
>
>     self._write(data)
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
> line 324, in write
>
>     self.flush()
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
> line 303, in flush
>
>     self._sock.sendall(view[write_offset:write_offset+buffer_size])
>
> error: [Errno 32] Broken pipe
>
> *[11/Apr/2014 13:21:43] "GET
> /Users/admin/Dropbox/mstudio/code/mBrain/mbrain/mbrain/static/0124_Entel/edit/export/20140401/2053_canal13_marzo_20140408_1720.m4v
> HTTP/1.1" 500 59*
>
> ----------------------------------------
>
> Exception happened during processing of request from ('192.168.1.143',
> 59968)
>
> Traceback (most recent call last):
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
> line 593, in process_request_thread
>
>     self.finish_request(request, client_address)
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
> line 334, in finish_request
>
>     self.RequestHandlerClass(request, client_address, self)
>
>   File
> "/Users/admin/Dropbox/mstudio/code/mBrain/venv/lib/python2.7/site-packages/django/core/servers/basehttp.py",
> line 126, in __init__
>
>     super(WSGIRequestHandler, self).__init__(*args, **kwargs)
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
> line 651, in __init__
>
>     self.finish()
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
> line 710, in finish
>
>     self.wfile.close()
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
> line 279, in close
>
>     self.flush()
>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
> line 303, in flush
>
>     self._sock.sendall(view[write_offset:write_offset+buffer_size])
>
> error: [Errno 32] Broken pipe
>
> ----------------------------------------
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/HYt7eCGxF6w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e8df8126-651f-4527-aa6b-a66e88bf0206%40googlegroups.com<https://groups.google.com/d/msgid/django-users/e8df8126-651f-4527-aa6b-a66e88bf0206%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMse0Zi_Ji262-jx9%2B9tvAteRNcw_EoFVt3%2BwW%3DRP3_JOh44_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to