Django 1.8 migrate - relation “django_content_type” already exists

2015-06-16 Thread Adam Teale
Hi Guys, Any idea why I would be getting this error when I try to migrate? django.db.utils.ProgrammingError: relation "django_content_type" I am using using django 1.8 & postgresql Thanks! Adam -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: ProgrammingError: relation "django_content_type" already exists

2015-06-16 Thread Adam Teale
Hey guys did you manage to get anywhere with this? On Tuesday, 24 March 2015 03:00:28 UTC-3, Mike Dewhirst wrote: > > This is my first stab at upgrading directly from Django 1.6.11 to 1.81c > to see what needs to be done. I thought I'd skip 1.7.x - is that a bad > idea? Is there some step in

looking for recommendations for django app for managing tv commercial post production

2014-02-20 Thread Adam Teale
Hi Guys, I'm someone might be able to give me a recommendation for an existing django application that we might be able to check out for our small company. We are 10 people working in tv commercial post production. We work with reasonable amount of data from video, photos, graphics, audio. I'

(1364, "Field 'id' doesn't have a default value") - mysql issue?

2014-04-09 Thread Adam Teale
Hi Guys I have been working on a django app that was going well using an sqlite db. I've moved it over to mysql and imported the database Everything looks good But when I try to use the django comment system that was working well on the sqlite db before I get: OperationalError at /comments/pos

Re: (1364, "Field 'id' doesn't have a default value") - mysql issue?

2014-04-10 Thread Adam Teale
d. Do you have access to that MySQL database to check, and or update that field definition? On Wed, Apr 9, 2014 at 2:42 PM, Adam Teale wrote: > Hi Guys > > I have been working on a django app that was going well using an sqlite db. > I've moved it over to mysql and imported the d

Re: (1364, "Field 'id' doesn't have a default value") - mysql issue?

2014-04-10 Thread Adam Teale
sorry I meant django.contrib.comments - not messages -- 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 g

Re: (1364, "Field 'id' doesn't have a default value") - mysql issue?

2014-04-10 Thread Adam Teale
ok, i just enabled auto increment to the comment id field Seems to work fine! Now is there any way that this could have been set automatically from django? So i don't have this issue in the future) Thanks! On Thu, Apr 10, 2014 at 9:47 AM, Adam Teale wrote: > sorry

Re: (1364, "Field 'id' doesn't have a default value") - mysql issue?

2014-04-10 Thread Adam Teale
hmmm it seems that anything in the database is not set to auto increment On Thu, Apr 10, 2014 at 11:04 AM, Adam Teale wrote: > ok, i just enabled auto increment to the comment id field > > Seems to work fine! > > Now is there any way that this could have been set automaticall

Apache, mod_wsgi and sharing videos to devices/machines

2014-04-11 Thread Adam Teale
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

Re: Apache, mod_wsgi and sharing videos to devices/machines

2014-04-11 Thread Adam Teale
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 wrote: > Hi Guys, > > If someone has the time to take a look at this i'd really appreciate i

django, mod_wsgi, apache and sharing media files (video) from a separate directory

2014-04-20 Thread Adam Teale
Hi Guys, I am building a django app that runs out of my /Users/me/Dropbox directory. Localhost is pointed at my /Users/me/Sites directory. mod_wsgi installed. apache installed django installed and app working fine in development mode I am trying to embed media in a template This media

django comment system - content_type

2014-04-22 Thread Adam Teale
Hi Guys, I'm attempting to replace the django.contrib comment app's "post_comment" using a view in views.py. I have it working but I would like to check that I am doing it in an ok django friendly way. The content_type that the request.POST['content_type'] returns is: `myapp.mymodel` When I

active/alive Calendar app options for Django

2014-05-08 Thread Adam Teale
Hi guys, Quick question, anyone using or know of a calendar app that is currently in active development that i could use in my django app? I've been trying to get django-swingtime and django_bootstrap_calendar but i've got errors that i can't seem to resolve and i think their dev on github mig

Re: active/alive Calendar app options for Django

2014-05-09 Thread Adam Teale
, 2014 at 1:55 AM, Adam Teale wrote: > >> Hi guys, >> >> Quick question, anyone using or know of a calendar app that is currently >> in active development that i could use in my django app? >> >> I've been trying to get django-swingtime and django_bootst

Re: active/alive Calendar app options for Django

2014-05-09 Thread Adam Teale
tips I'd really appreciate hearing them if you have the time. Cheers! On Fri, May 9, 2014 at 9:51 AM, Adam Teale wrote: > Thanks for confirming that django_bootstrap_calendar is going well, I > have it installed and just got some feedback on github with a problem i > had, so finger

Re: active/alive Calendar app options for Django

2014-05-09 Thread Adam Teale
- should I copy these into my static folder or will these be read from the django_bootstrap_calendar app's static folder. Perhaps I should drop these questions onto the github page On Fri, May 9, 2014 at 9:58 AM, Venkatraman S wrote: > > On Fri, May 9, 2014 at 7:26 PM, Adam Teale

safari ios 7 and django app - function not being called to serve video

2014-06-03 Thread Adam Teale
Hi Guys, I am in the process of building a web app with django. The app is running on apache and files/videos are served with the xsendfile apache module. The app is working fine on iphones, ipads and macs on the local network - when I access the site via a url like https://myapp.local When I v

Re: safari ios 7 and django app - function not being called to serve video

2014-06-05 Thread Adam Teale
From: django-users@googlegroups.com > >[mailto:django-users@googlegroups.com] On Behalf Of Adam Teale > >Sent: Wednesday, June 04, 2014 1:21 AM > >To: django-users@googlegroups.com > >Subject: safari ios 7 and django app - function not being called to serve > video > >

Re: safari ios 7 and django app - function not being called to serve video

2014-06-05 Thread Adam Teale
Ahh i just worked out the issue. The server is using SSL certification (https?) and for some reason on the iphone/ipad the serveAsset was not being called. So now to work out how to call the URL tag with SSL. Cheers! On Thu, Jun 5, 2014 at 10:33 AM, Adam Teale wrote: > Thanks

Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Adam Teale
Hi everyone, I am looking into Andrew Godwin's example project "channels-example" ( https://github.com/andrewgodwin/channels-examples). The multichat demo runs fine using the development/localhost server and now I am attempting to put it into production mode so I can access across our network and

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Adam Teale
t port to the WebSocket > source URL (by default it's trying the same port as the page it's served on) > > Andrew > > On Thu, Nov 10, 2016 at 12:24 PM, Adam Teale > wrote: > >> Hi everyone, >> >> I am looking into Andrew Godwin's example project

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Adam Teale
(8000 by default, but you can pick) > * Make your frontend webserver (sounds like Apache for you) proxy all > requests to this port > * Optionally: Make apache either proxy or use mod_wsgi based on path prefix > > Andrew > > On Thu, Nov 10, 2016 at 12:48 PM, Adam Teale > wr

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
Hi Andrew, I think I'm starting to get somewhere, I have edited one of the apache virtualhost conf files to include these lines: ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/ Now when I access the server I am getting some feedback in the steel running the

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
Also getting this error in the browser log: WebSocket connection to 'ws://alfred.local/chat/stream/' failed: Unexpected response code: 503 On Friday, 11 November 2016 11:24:25 UTC-3, Adam Teale wrote: > > Hi Andrew, > > I think I'm starting to get somewher

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
I think my grief may be coming from connecting over https/SSL. When I run the worker with the -v 2 option it shows: 2016-11-11 14:55:43,446 - DEBUG - worker - Got message on http.request (reply http.response!EKDQPeJsDRwU) 2016-11-11 14:55:43,447 - DEBUG - runworker - http.request 2016-11-11 1

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-11 Thread Adam Teale
I came across a post that suggested running Daphne like this: daphne multichat.asgi:channel_layer --port 8000 -v 2 The updated error: 2016-11-11 15:43:14,453 DEBUGHTTP GET request for http.response!KwJtQDgmoifR 2016-11-11 15:43:14,478 DEBUGHTTP 404 response started for http.resp

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-14 Thread Adam Teale
Unfortunately I haven't had any luck with it. I have the mod_proxy and mod_proxy_wstunnel Apache modules loaded and I the following proxies inside the virtual host for port 443 (SSL) ProxyPass /chat/stream/ wss://127.0.0.1:8000/chat/stream/ ProxyPassReverse /chat/stream/ wss://127.0.0.1:

Django Channels - WebSocket connection to 'wss://mysite.local/chat/stream/' failed: WebSocket is closed before the connection is established. response code: 200

2016-12-22 Thread Adam Teale
Hi everyone, I have a django app running on mac os x server via mod_wsgi (apache 2.4). I am using proxypass to point to daphne (running on port 8000). As far as I can tell things should be running ok. Daphne is being run via this command: daphne mysite.asgi:channel_layer -v2 -p 8000 When ever

Re: Django Channels - WebSocket connection to 'wss://mysite.local/chat/stream/' failed: WebSocket is closed before the connection is established. response code: 200

2016-12-22 Thread Adam Teale
rt WebSockets. If you want to > keep using Apache I would consider looking at mod_proxy_wstunnel. > > Andrew > > On Thu, Dec 22, 2016 at 2:24 PM, Adam Teale > wrote: > >> Hi everyone, >> >> I have a django app running on mac os x server via mod_wsgi (apache 2.4

At last! Django Channels / web sockets running on MacOS Server 5.2 (Apache 2.4.23)

2017-01-12 Thread Adam Teale
In case someone finds themselves in a similar situation here is how I got ​W eb ​S ocket connections working via Apache ​ in MacOS Server 5.2​ . And the solution ​i​ s simple. --- *The short version:​* ​I use MacOS Server 5.2 (ships with Apache 2.4.23) to

Clone formset

2017-01-18 Thread Adam Teale
Hi everyone, Is it possible to clone a formset (inlineformset_factory)? I'm not sure what would be the correct way to do so. I am able to clone the form by: form = self.get_form(form_class) form.instance.pk = None form.instance.save() When it comes to the formset I don't know the method. I thi