Re: video app

2013-07-11 Thread Michael Hernandez
, 2013 at 12:12 PM, Michael Hernandez < michael.hernandez1...@gmail.com> wrote: > There is no package in the world that will do your work for you. > What are you trying to do. Limit the scope of your question and then ask > for help? > > Heres some help though. > > First,

Re: video app

2013-07-11 Thread Michael Hernandez
There is no package in the world that will do your work for you. What are you trying to do. Limit the scope of your question and then ask for help? Heres some help though. First, divide up your application into high level segments. 1. Chat Application ( if there is text based chat on top of

Re: Problem uplaod

2013-04-22 Thread Michael Hernandez
Hi, Miranda I tried to help you in your other thread. Are you getting errors. Can you paste them. What is the problem right now? On Monday, April 22, 2013 5:43:26 AM UTC-4, Hélio Miranda wrote: > > I'm trying to make a simple upload as follows: > http://plnkr.co/edit/neqmvI13prMySMtHQHta > >

Re: How to link different kinds of objects?

2013-04-22 Thread Michael Hernandez
Sorry I am late to this thread I started typing up a response yesterday but never got around to sending it. Let me first reviews Problem scope. 1. You have a Feed, which is an object. 2. A feed can be created by any user. 3. A user can create an object. Is this object premade and they are just

Re: css for flatpages

2013-04-21 Thread Michael Hernandez
Sorry what do you mean by flat. Do you mean that they dont import css files into them. As in mobile optimized? You would just create file in a templates directory and include it in any flat pages. It would be fully rendered on the server side, and no extra browser calls to grab the files. On

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread Michael Hernandez
, Michael Hernandez wrote: > > Sorry darn phone changed daemon to farmingn > On Apr 21, 2013 9:39 AM, "Michael Hernandez" < > michael.hernandez1...@gmail.com> wrote: > >> I have been working with heavy reporting and analytics lately. I would >> suggest use thre

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread Michael Hernandez
Sorry darn phone changed daemon to farming On Apr 21, 2013 9:39 AM, "Michael Hernandez" < michael.hernandez1...@gmail.com> wrote: > I have been working with heavy reporting and analytics lately. I would > suggest use thread queuing with many farming threads. I use python

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread Michael Hernandez
I have been working with heavy reporting and analytics lately. I would suggest use thread queuing with many farming threads. I use python thread but Greenlets it some else should be better On Apr 21, 2013 5:48 AM, "sparky" wrote: > One last thing to add, the task it's self

Re: How many workers do you run on one machine using django celery?

2013-04-20 Thread Michael Hernandez
RabbitMQ with Celery is a distributed asynchronous code execution service. Keyword Distributed. The best thing to do in run several instances per machine of djcelery behind a supervisord. When you start encountering performance hits start by adding more services on the machine with

IDE to practice django template language

2013-04-20 Thread Michael Hernandez
Emacs???. IM not being a smart ### . I just feel it has everything you need. Like terminal Shell. It is bad for multiethnic files like html with Javascript in it. Unless you customize it further -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: defining guid, permalink for feeds and site

2013-04-20 Thread Michael Hernandez
Yes that is a great idea. create a base model that inherits from models.Model add the method into it. Any model that can be slugified and access directly should inherit from this Make sure to use model.pk in building the slug, it will always be the primary key, rather than model.id which

Re: Can't enter admin site

2013-04-20 Thread Michael Hernandez
Tom is right URL regexp is one of the more difficult aspects a feel for beginners. ^ means to match the following characters at the start of the haystack r"^" will properly match "/admin" "/static" "/joogabooga/realm/1?x=1" however if you are having trouble with figuring out the regexp there

Re: Add user to authors on model save in admin form

2013-04-20 Thread Michael Hernandez
I do not think having Author = model.ManyToMany will work. A user is an author. An author is a user. This is a one to one a.k.a models.ForeignKey(User) A blog has many authors, of which each is a user. And Many Authors can write on a blog Blog.author = models.ManyToMany(Author) On Friday,

Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Michael Hernandez
Yes. Proper root referencing requires the preceeding / in /a/b The django way i have seen is to generally create a /static/ directory Put /static in your static settings rather than /static/assets place your files in respectively named directories such as /static/js /static/css /static/images

Re: Upload Image

2013-04-20 Thread Michael Hernandez
Grr i accidentally pressed enter before finishing the message Since its in the database it is not available in your filesystem or for immediate display. to check if its there ./manage.py shell import yourmodel as Document print Document.objects.all() i would suggest researching pythons

Re: Upload Image

2013-04-20 Thread Michael Hernandez
Hi Miranda, If I understand correctly. Your code is working now but you cannot find the Image??? The image is currently being sent to the database. It is being store in a record in the table. On Friday, April 19, 2013 3:21:02 PM UTC-4, Hélio Miranda wrote: > > Gives no error > But do

Re: How to translate database content?

2013-04-20 Thread Michael Hernandez
Can you clarify. I wouldnt recommend using dbgettext implentation seems way too complex for your needs currently and it is only in 0.1 according to readthedocs. One I might suggest that looks simple enough in implementation is vinaigrette https://github.com/ecometrica/django-vinaigrette Very