Re: dates DateQuerySet includes time
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: > > 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 %} > {{ d }} > {% endfor %} > > Oct. 13, 2013, 5 p.m. > > The documentation says dates is supposed to return a datetime.date object, > so there should not be any time. So where does the 5 p.m. come from? Also > I'm assuming the day difference is due to time zone which comes with time. > So am I using the dates method correctly? > > Thanks, > Chad > -- 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/c754f176-5a07-4350-b0fd-08621b4407b5%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
dates DateQuerySet includes time
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 %} {{ d }} {% endfor %} Oct. 13, 2013, 5 p.m. The documentation says dates is supposed to return a datetime.date object, so there should not be any time. So where does the 5 p.m. come from? Also I'm assuming the day difference is due to time zone which comes with time. So am I using the dates method correctly? Thanks, Chad -- 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/c722d981-c1d3-4aa6-954b-42a64e4af918%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: django-celery connects to localhost but not by ip
I wasn't running celerycam, but now I am. I also wasn't using the -E -B flags. The result is still False though but in the Django Admin, the task has a state of SUCCESS. I don't know if it matters or not, but this is how I am starting my workers, celerycam through Fabric: sudo('ps auxww | grep celerycam | grep -v "grep" | awk \'{print $2}\' | xargs kill') # Kill existing workers sudo('ps auxww | grep "celery worker" | grep -v "grep" | awk \'{print $2}\' | xargs kill') with cd('/usr/local/Cellar/daemonize/1.7.4/sbin'): # Create new workers sudo('daemonize -u pipeadmin %s/manage.py celery worker -E -B' % siteDir) # Create new celerycam sudo('rm celerycam.pid', warn_only=True) sudo('python %s/manage.py celerycam --detach --pidfile=celerycam.pid' % siteDir) On Friday, September 20, 2013 8:47:44 AM UTC-7, Celso Providelo wrote: > > Hi Chad, > > Are you running a celery worker instance ? (`manage.py celery worker -E > -B`) > > You also have to run `manage.py celerycam` in order to see celery > action/history in the django admin interface > > I use the following makefile rule in order to activate djcelery in > development environments: > {{{ > run-celery: > > $(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 going on. > > [] > > > On Fri, Sep 20, 2013 at 1:23 AM, Chad Vernon > > wrote: > >> Thanks, I found the issue after checking the logs. >> >> I saw in the log that it listed the AMQP connection that it accepts: >> >> =INFO REPORT 19-Sep-2013::20:52:57 === >> accepting AMQP connection <0.403.0> (127.0.0.1:59930 -> 127.0.0.1:5672) >> >> So if that is stating the obvious, I assumed it was blocking all other >> ips. So I found this page >> http://superuser.com/questions/464311/open-port-5672-tcp-for-access-to-rabbitmq-on-mac >> and removed NODE_IP_ADDRESS from rabbitmq-env.conf and that seems to >> work. But I guess my first assumption was incorrect about what the log >> displayed because when I run the command again, the log just says my >> machine connected and displays the port range of that ip address. >> >> However, one issue that still is strange is that the ASyncResult returned >> from the task always seems to return False from the .ready() method even >> though it seems to have completed the task. Any ideas on that? >> >> >> On Thursday, September 19, 2013 7:36:41 PM UTC-7, John DeRosa (work) >> wrote: >> >>> First things to check: >>> >>> Check the firewall on the RabbitMQ server. Can you access that server? >>> >>> Did you set up the vhost and account on the RabbitMQ server? >>> >>> 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 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. But >>> to test first I am doing it all on the same machine. But as I said it >>> doesn't seem to work when I change from localhost to the machine ip. I just >>> get socket.error: [Errno 61] Connection refused. >>> >>> Any ideas? >>> >>> Thanks, >>> Chad >>> >>> -- >>> 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...@**googlegroups.com. >>> To post to this group, send email to django...@googlegroups.com. >>> >>> Visit this group at >>> http://groups.google.com/**group/django-users<http://groups.google.com/group/django-users> >>> . >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>>
Re: django-celery connects to localhost but not by ip
Thanks, I found the issue after checking the logs. I saw in the log that it listed the AMQP connection that it accepts: =INFO REPORT 19-Sep-2013::20:52:57 === accepting AMQP connection <0.403.0> (127.0.0.1:59930 -> 127.0.0.1:5672) So if that is stating the obvious, I assumed it was blocking all other ips. So I found this page http://superuser.com/questions/464311/open-port-5672-tcp-for-access-to-rabbitmq-on-mac and removed NODE_IP_ADDRESS from rabbitmq-env.conf and that seems to work. But I guess my first assumption was incorrect about what the log displayed because when I run the command again, the log just says my machine connected and displays the port range of that ip address. However, one issue that still is strange is that the ASyncResult returned from the task always seems to return False from the .ready() method even though it seems to have completed the task. Any ideas on that? On Thursday, September 19, 2013 7:36:41 PM UTC-7, John DeRosa (work) wrote: > > First things to check: > > Check the firewall on the RabbitMQ server. Can you access that server? > > Did you set up the vhost and account on the RabbitMQ server? > > 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 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. But > to test first I am doing it all on the same machine. But as I said it > doesn't seem to work when I change from localhost to the machine ip. I just > get socket.error: [Errno 61] Connection refused. > > Any ideas? > > Thanks, > Chad > > -- > 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...@googlegroups.com . > To post to this group, send email to django...@googlegroups.com > . > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
django-celery connects to localhost but not by ip
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. But to test first I am doing it all on the same machine. But as I said it doesn't seem to work when I change from localhost to the machine ip. I just get socket.error: [Errno 61] Connection refused. Any ideas? Thanks, Chad -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Calling ffmpeg doesn't work on apache server
The issue turns on to be a bug in Python regarding sub-interpreters: http://stackoverflow.com/questions/8309465/popen-does-not-work-anymore-with-apache-wsgi-and-python-2-7-2 Adding this to my http conf fixed it: WSGIApplicationGroup %{GLOBAL} On Thursday, June 20, 2013 4:51:10 PM UTC-7, 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.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 here I'm calling >> check_call >> response = subprocess.check_call(['ffmpeg', '-i', self.file.path], >> stderr=fh) >> >> # actual path taken out for brevity >> Command '['ffmpeg', '-i', u'...']' returned non-zero exit status -6 >> >> > Can you pastebin de output, when use ffmpeg as subprocess (i did it) you > can get in output what happens, check_output can help you if you want > output in response var. > > Regards, > > >> I've verified that the video path is correct. >> >> Any suggestions? >> >> Thanks! >> Chad >> >> -- >> 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...@googlegroups.com . >> To post to this group, send email to django...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/django-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Cristian Salamea > @ovnicraft > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Calling ffmpeg doesn't work on apache server
Hi John, Yes I am restarting apache after all changes I do. How do I check what workers I have running? Thanks, Chad On Wednesday, June 19, 2013 4:57:00 PM UTC-7, John wrote: > > Chad, > > Are you restarting apache after each change? It sounds like you have the > default 2 workers and you are getting two different 'versions' alternately. > Apache needs to be restarted if you change something (or there's some magic > touch you can do with wsgi that I forget). > > Otherwise it does look like permissions, or running in the wrong > directory, 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 full path to ffmpeg (/usr/local/bin/ffmpeg). Even when I do > that the function runs every other time. So 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: >> >> 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'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 here I'm calling >>> check_call >>> response = subprocess.check_call(['ffmpeg', '-i', self.file.path], >>> stderr=fh) >>> >>> # actual path taken out for brevity >>> Command '['ffmpeg', '-i', u'...']' returned non-zero exit status -6 >>> >>> I've verified that the video path is correct. >>> >>> Any suggestions? >>> >>> Thanks! >>> Chad >>> >> -- > 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...@googlegroups.com . > To post to this group, send email to django...@googlegroups.com > . > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Calling ffmpeg doesn't work on apache server
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 full path to ffmpeg (/usr/local/bin/ffmpeg). Even when I do that the function runs every other time. So 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: > > 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'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 here I'm calling >> check_call >> response = subprocess.check_call(['ffmpeg', '-i', self.file.path], >> stderr=fh) >> >> # actual path taken out for brevity >> Command '['ffmpeg', '-i', u'...']' returned non-zero exit status -6 >> >> I've verified that the video path is correct. >> >> Any suggestions? >> >> Thanks! >> Chad >> > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Calling ffmpeg doesn't work on apache server
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'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 here I'm calling > check_call > response = subprocess.check_call(['ffmpeg', '-i', self.file.path], > stderr=fh) > > # actual path taken out for brevity > Command '['ffmpeg', '-i', u'...']' returned non-zero exit status -6 > > I've verified that the video path is correct. > > Any suggestions? > > Thanks! > Chad > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Calling ffmpeg doesn't work on apache server
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 here I'm calling check_call response = subprocess.check_call(['ffmpeg', '-i', self.file.path], stderr=fh) # actual path taken out for brevity Command '['ffmpeg', '-i', u'...']' returned non-zero exit status -6 I've verified that the video path is correct. Any suggestions? Thanks! Chad -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Announcing new django project
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. > > More informations, including demos and docs here: > http://editlive.motion-m.ca > > Feedback would be appreciated. > > -- > > Maxime Haineault > Consultant Web / Associé > > ∞ Motion Média >http://motion-m.ca >m...@motion-m.ca >(450) 747-0862 > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: F function?
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/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 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
F function?
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 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
get_absolute_url goes to ../../../r/14/1/
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 admin page for that instance, the View on Site link points to: ../../../r/14/1/ which is not very useful. I was following the documentation here: https://docs.djangoproject.com/en/1.4/ref/models/instances/#get-absolute-url and nothing more is listed than what I just did. Am I missing another step? Thank you, Chad -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
jquery multi file uploads in single post
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 single check-in. The uploader has a singleFileUploads option that is supposed to do just this, but in my view, the request.FILES always has just one value. Does anyone have any experience with this or have any suggestions? Thank you, Chad -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/EDthZAV_fR4J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Access local network locations
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 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 > apache server running on my machine: > > if not os.path.exists(kProjectTemplateDir): > raise RuntimeError('%s does not exist' % kProjectTemplateDir) > > However when I run it through a shell, I can access it just fine. The > apache server is running through my user verified through > ps aux | grep apache > > Is there a setting I need to set in django or is this an apache issue? > I'm new to both so please excuse my ignorance. > > Thank you, > Chad > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ynUYmYVzCTcJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Access local network locations
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 apache server running on my machine: if not os.path.exists(kProjectTemplateDir): raise RuntimeError('%s does not exist' % kProjectTemplateDir) However when I run it through a shell, I can access it just fine. The apache server is running through my user verified through ps aux | grep apache Is there a setting I need to set in django or is this an apache issue? I'm new to both so please excuse my ignorance. Thank you, Chad -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
RE: Django asset management and dynamically created databases
Yes the single database was my original and preferred design. I will try to push for that design. I think there was concern about reliability and performance of everything in one database but I don't think that will be an issue given our needs. Thanks, Chad From: Mike Dewhirst Sent: 12/23/2012 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 would want each show to have its own > database, however we would want functionality to search for assets > across all shows. It would *much* simpler to put it all in a single database. In my personal opinion, there would need to be a strong business case for multiple databases to justify the added complexity. I am exploring the use of django as the main > framework for this system as it would provide a nice front and back end > interface that is easy to build upon. Is it possible in django to > dynamically create a new show database when a new show is created in the > admin interface of the main database? How would I then get the > settings.py to pick this up dynamically? Yes it is possible and indeed easy provided you don't want a separate database per show. Much easier to add a separate record in a "show" table. > > The only reference I've found is this which seems to go against the > advice of the django devs: > http://stackoverflow.com/questions/6585373/django-multiple-and-dynamic-databases Always go with the flow rather than try and make something work against the design. Good luck Mike > > Is django appropriate for this purpose? Am I approaching this all > wrong? Thanks for your help and please forgive my limited django knowledge. > > Chad > > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/z58OGDKAXCoJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django asset management and dynamically created databases
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 this system as it would provide a nice front and back end interface that is easy to build upon. Is it possible in django to dynamically create a new show database when a new show is created in the admin interface of the main database? How would I then get the settings.py to pick this up dynamically? The only reference I've found is this which seems to go against the advice of the django devs: http://stackoverflow.com/questions/6585373/django-multiple-and-dynamic-databases Is django appropriate for this purpose? Am I approaching this all wrong? Thanks for your help and please forgive my limited django knowledge. Chad -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/z58OGDKAXCoJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.