Django asset management and dynamically created databases

2012-12-23 Thread Chad Vernon
Hi there, I'm designing a database for an animation studio to track assets across multiple shows. We potentially would want each show to have its own database, however we would want functionality to search for assets across all shows. I am exploring the use of django as the main framework for

RE: Django asset management and dynamically created databases

2012-12-23 Thread Chad Vernon
012 4:59 PM To: django-users@googlegroups.com Subject: Re: Django asset management and dynamically created databases On 24/12/2012 8:10am, Chad Vernon wrote: > Hi there, > I'm designing a database for an animation studio to track assets across > multiple shows. We potentially woul

Access local network locations

2013-01-07 Thread Chad Vernon
Hello! I'm working on a local django site and I've set up a post-save signal where when an entry is initially saved, I want to copy a template directory structure somewhere. This template directory structure lives on a local network location. However I can't seem to access it through my local ap

Re: Access local network locations

2013-01-07 Thread Chad Vernon
Never mind. I think it's a permissions issue. Thanks! On Monday, January 7, 2013 5:04:06 PM UTC-8, Chad Vernon wrote: > > Hello! > > I'm working on a local django site and I've set up a post-save signal > where when an entry is initially saved, I want to copy a t

jquery multi file uploads in single post

2013-01-14 Thread Chad Vernon
I'm creating an asset management system with Django and I'm using this jquery multi-file uploader: http://blueimp.github.com/jQuery-File-Upload/ I want to be able to get all uploaded files in a single POST request instead of each file having it's own request so I can count all the files as a si

get_absolute_url goes to ../../../r/14/1/

2013-01-21 Thread Chad Vernon
I'm implementing the get_absolute_url method on one of my models. @models.permalink def get_absolute_url(self): return ('viewProject', (), {'projectSlug' : self.slug}) My url has: url(r'^(?P[-\w]+)/$', 'assetlibrary.views.viewProject', name='viewProject'), However, in the a

F function?

2013-01-31 Thread Chad Vernon
I was looking at this snippet: http://djangosnippets.org/snippets/1560/#comments And on this line: ReportField.objects.filter(order__range=range).update(order=F('order')+shift) What is the F in F('order')? Thanks! Chad -- You received this message because you are subscribed to the Google Grou

Re: F function?

2013-01-31 Thread Chad Vernon
Nevermind, found it! Was having a hard time searching for "F" :) https://docs.djangoproject.com/en/1.4/topics/db/queries/#query-expressions On Thursday, January 31, 2013 9:10:39 PM UTC-8, Chad Vernon wrote: > > I was looking at this snippet: > > http://djangosnippets.org/s

Re: Announcing new django project

2013-01-31 Thread Chad Vernon
Very nice! I'll probably try it out in my current project. On Thursday, January 31, 2013 9:25:06 PM UTC-8, h3 wrote: > > Hi everybody, > > I would like to introduce you my latest project: django-editlive > > It can make any database object editable in template with a simple > template tag. > > M

Calling ffmpeg doesn't work on apache server

2013-06-19 Thread Chad Vernon
I'm trying to use ffmpeg to generate a thumbnail for a video. It works just fine when I call it from a python shell and when I test it in "python manage.py shell". However when I try to run from the apache server running locally, I get an error: # normally I call subprocess.call, but for debug h

Re: Calling ffmpeg doesn't work on apache server

2013-06-19 Thread Chad Vernon
Looks like it has something to do with calling subprocess from the server because this gives the same error: response = subprocess.check_output(['which', 'ls']) Anyone have any suggestions? On Wednesday, June 19, 2013 4:01:30 PM UTC-7, Chad Vernon wrote: > > I

Re: Calling ffmpeg doesn't work on apache server

2013-06-19 Thread Chad Vernon
o I'm totally confused now. I'm an apache/django beginner so bear with me please! On Wednesday, June 19, 2013 4:12:02 PM UTC-7, Chad Vernon wrote: > > Looks like it has something to do with calling subprocess from the server > because this gives the same error: > > resp

Re: Calling ffmpeg doesn't work on apache server

2013-06-20 Thread Chad Vernon
ry, or such like. > > John > > On 20/06/13 00:48, Chad Vernon wrote: > > One last observation: > > I think it has something to do with the apache user permissions. I'm > running the mod_wsgi daemon process with myself as the user and I need to > specify the f

Re: Calling ffmpeg doesn't work on apache server

2013-07-15 Thread Chad Vernon
, ovnicraft wrote: > > > > > On Wed, Jun 19, 2013 at 6:01 PM, Chad Vernon > > wrote: > >> I'm trying to use ffmpeg to generate a thumbnail for a video. It works >> just fine when I call it from a python shell and when I test it in "python >> manage.p

django-celery connects to localhost but not by ip

2013-09-19 Thread Chad Vernon
I am using djcelery and rabbitmq. Everything runs fine when the BROKER_HOST is localhost but when I change it to the ip of the machine it no longer runs. Basically I am trying to be able to run python commands on a separate machine to be picked up by the RabbitMQ server on a different machine. B

Re: django-celery connects to localhost but not by ip

2013-09-19 Thread Chad Vernon
t; Look in the RabbitMQ logs. Did the request make it to RabbitMQ? > > John > > On Sep 19, 2013, at 7:34 PM, Chad Vernon > > wrote: > > I am using djcelery and rabbitmq. Everything runs fine when the > BROKER_HOST is localhost but when I change it to the ip of the mac

Re: django-celery connects to localhost but not by ip

2013-09-20 Thread Chad Vernon
$(PYTHON) $(MANAGER) celerycam -l debug --detach \ > --pidfile=celerycam.pid > $(PYTHON) $(MANAGER) celery worker -l debug -E -B -n > 'local-worker' \ > --pidfile=celeryworker.pid > }}} > > It is highly verbose, but might help you to visualize what is

dates DateQuerySet includes time

2013-10-15 Thread Chad Vernon
I'm trying to use the dates QuerySet method but I am getting different values in the template: view: timecards = Timecard.objects.all() dates = Timecard.objects.dates('date', 'day', order='DESC') template: {% for tc in timecards %} {{ tc.date }} {% endfor %} Oct. 14, 2013 {% for d in dates

Re: dates DateQuerySet includes time

2013-10-15 Thread Chad Vernon
I'm using django 1.5.1 and I guess in in 1.5, the dates method returns datetime objects. So nevermind! On Tuesday, October 15, 2013 5:56:01 PM UTC-7, Chad Vernon wrote: > > I'm trying to use the dates QuerySet method but I am getting different > values in the template: &g