RE: Limiting choices for ModelForm's ForeignKey/ManyToMany

2012-01-04 Thread michael.pimmer.ext
> I'm not sure if this will work, as the ModelForm's QuerySet for the choiceField cannot be changed dynamically during runtime, or can it? You can change the queryset directly in the view: http://stackoverflow.com/questions/291945/how-do-i-filter-foreignkey-choices- in-a-django-modelform

Re: Issues with "startproject"

2012-01-04 Thread JJ Zolper
Thank you both. I was on the right track with the path name because in windows I don't think it would work without it but you did point out something good JirkaV about the actual file name. Sorta stupid on my part there so good catch. I did not use yum or ap-get and I checked my file names and

Re: Error: No module named debug_toolbar

2012-01-04 Thread Denis Darii
Hi Alec, I'm pretty sure that there is something that doesn't consider your active environment so django try to find debug_toolbar in your global packages. To prove this, try to compare the list of your installed packages with and without virtualenv active. So do: (Pinax-env)

Re: How to format string on I18n

2012-01-04 Thread Krator Ado
msgid u"邀請已送到%(email)s" and add "# coding=utf-8" at the first line of your .py file. 2012/1/4 李 强 > Lack of a full stop,maybe. > > 在 2011-12-5,下午2:07, Tsung-Hsien 写道: > > > Hello > >I get the wrong message when type a string which needed to format > > such as > > > >

Re: Cheap Django hosting?

2012-01-04 Thread Praveen Krishna R
*Did you say $2 per month for an EC2 instance ?!! * On Tue, Jan 3, 2012 at 7:04 PM, Timothy Makobu wrote: > Hi, > > If you must have root (mybe Twisted is one of your dependancies? or you > need all 65535 ports?) Amazon EC2 is a prudent choice. For example, I pay 1 >

Re: code revision short job

2012-01-04 Thread pixelfields
Sure I am using debug toolbar. All queries are cached by django cache machine, otherwise I try to use johnny cache, but with similary result. Debug toolbar actually show me only 2 sql queries in 3 ms (queries storing referrer, agent and utm params for traffic analyzing). Has anybody experiences

mod_Wsgi Problem

2012-01-04 Thread Hassan
Dear ALL, i have my application in "C:/mysite" and i created a wsgi file in "C:/mysite" , that has : import os import sys path = 'C:/mysite' if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application

Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread Martin Tiršel
Hello, I have a list of items (from a model) I want to display with checkboxes (for deleting multiple objects at once). The same behaviour like in django admin (change list). I can do such thing in templates: {% for item in item_list %} {{ item }} {% endfor %} and in a view loop

Re: Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread kenneth gonsalves
On Wed, 2012-01-04 at 11:33 +0100, Martin Tiršel wrote: > and in a view loop through somename list I get from POST and delete > items. > Is there a better Django way I should do it or this approach I wrote > is > correct? I have been doing the same - would love to know if there was a better

Re: Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread Thorsten Sanders
I do it this way: and in the view: todel = request.POST.getlist('todelete') ItemWatchList.objects.filter(user=request.user,id__in=todel).delete() On 04.01.2012 11:33, Martin Tiršel wrote: Hello, I have a list of items (from a model) I want to display with checkboxes (for deleting

Pagination in ListView

2012-01-04 Thread Matt Stevens
Hi, I'm using a list view to show a list of my objects. === class MyListView(ListView): model = models.Post template_name = 'post_list.html' paginate_by = 10 === When a visitors goes to a

Re: mod_Wsgi Problem

2012-01-04 Thread Anurag Chourasia
Could you try changing your WSGIScriptAlias in httpd.conf From WSGIScriptAlias / "C:/mysite/django.wsgi" To WSGIScriptAlias /MYSITE "C:/mysite/django.wsgi" And then access http:localhost:port/MYSITE and tell is the results. Regards, Anurag On Jan 4, 2012 7:19 AM, "Hassan"

Re: mod_Wsgi Problem

2012-01-04 Thread kenneth gonsalves
On Wed, 2012-01-04 at 17:02 +0530, Anurag Chourasia wrote: > path = 'C:/mysite' try putting path = 'C:' (this would work in linux - should work for windows) -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: New Relic with Django

2012-01-04 Thread prabesh shrestha
I am trying to get started too with new relic. I did all the configurations and it looks like everything is properly set up. I am using gunicorn for my loca development. SO acc to the tutorial I can start the app with NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program python manage.py

Re: How to get current session user in models.py?

2012-01-04 Thread Waldek Herka
Indeed, it's clean and goes well with Django design principles.. However if I need to track just a few updates a day on a single model or admin form, the extra thousands or millions of calls generated by middleware(on every single request), it is really hard to chew.. at least one needs to be

Re: Limiting choices for ModelForm's ForeignKey/ManyToMany

2012-01-04 Thread Matt Schinckel
I've been playing around with a reusable/declarative syntax for doing this, as I seem to do it all of the time. https://bitbucket.org/schinckel/django-filtered-form You inherit from FilteredForm, and set either simple 'filters' or 'instance_filters' attributes on the form class: class

Interface implementation in python

2012-01-04 Thread huseyin yilmaz
Hi everybody, I want to implement interface functionality in python. I wrote following sample code https://gist.github.com/1559689 Here I use an abc as an interface. Couple of my models are implementing this interface and one of my consumer model is using those models. In this implementation,

Re: Pagination in ListView

2012-01-04 Thread Matt Stevens
I've found a solution, but I don't like it. This will show the last page, but - it doesn't do a redirect. === class MyListView(ListView):     model = models.Post     template_name = 'post_list.html'     paginate_by = 10         def

Re: Interface implementation in python

2012-01-04 Thread Donald Stufft
Why not use zone.interface On Wednesday, January 4, 2012 at 7:07 AM, huseyin yilmaz wrote: > Hi everybody, > > I want to implement interface functionality in python. I wrote > following sample code > > https://gist.github.com/1559689 > > Here I use an abc as an interface. > Couple of my

Re: Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread Martin Tiršel
Yes, this is the technique I described but I was asking if there is a Django way to do this. You can't forgot to sanitize the input in this case: id_list = request.GET.getlist('id_notification_list') id_list = [int(i) for i in id_list if i.isdigit()] notifications =

Re: Interface implementation in python

2012-01-04 Thread huseyin yilmaz
Could you direct me to an example (or documentation). I could not find any source about zone.interface. On Jan 4, 2:17 pm, Donald Stufft wrote: > Why not use zone.interface > > > > > > > > On Wednesday, January 4, 2012 at 7:07 AM, huseyin yilmaz wrote: > > Hi everybody,

Re: Interface implementation in python

2012-01-04 Thread Thomas Weholt
He probably meant zope.interface :-) Regards, Thomas On Wed, Jan 4, 2012 at 1:47 PM, huseyin yilmaz wrote: > Could you direct me to an example (or documentation). I could not find > any source about zone.interface. > > On Jan 4, 2:17 pm, Donald Stufft

Re: Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread Thorsten Sanders
I missunderstood due "and in a view loop through somename list" thought you mean you delete them 1 by 1 :P And the orm itself tries to convert the value to an int and throws an ValueError if it fails, so find it a bit double to check myself and let the orm do it again. On 04.01.2012 13:43,

Re: django/Data Base Advice

2012-01-04 Thread Andre Terra
I'm sorry, folks, but I'll have to *vehemently **disagree *with a lot of what has been said in this thread. To the OP, I'm sorry I didn't reply any sooner. No, you *don't need *to go reading about what MVC means. Django is a *MTV *framework, not *MVC*. There are similarities, but the differences

Re: mod_Wsgi Problem

2012-01-04 Thread Hassan
i tryed WSGIScriptAlias /mysite1 "C:/mysite/django.wsgi" and then http://localhost:8080/mysite1 but i keep geting this : Forbidden You don't have permission to access /mysite1 on this server. what is this , how can i fix it : -- You received this message because you are subscribed to the

Re: Thread synchronization

2012-01-04 Thread francescortiz
http://stackoverflow.com/questions/1123200/how-to-lock-a-critical-section-in-django On Jan 3, 7:28 pm, Pawel Rzeczewski wrote: > It won't work in forked processes. > > > > > > > > > Tried Google. > >http://effbot.org/zone/thread-synchronization.htm -- You received this

Re: django/Data Base Advice

2012-01-04 Thread Venkatraman S
On Wed, Jan 4, 2012 at 6:50 PM, Andre Terra wrote: > You won't need to write raw SQL in Django until you've reached a big > bottleneck, and one that can't be solved in any other way. Writing raw SQL > is exactly what Django wants you to *stop* doing. The ORM doesn't only >

Re: mod_Wsgi Problem

2012-01-04 Thread Anurag Chourasia
You will need to allow apache access to the folder where you have your wsgi script. Please add this in your httpd.conf and restart apache and see if it helps. Order deny,allow Allow from all Regards, Anurag On Wed, Jan 4, 2012 at 6:52 PM, Hassan wrote: > i tryed

Re: Interface implementation in python

2012-01-04 Thread huseyin yilmaz
I Checked the zope.interface implementation. It seems like this one does not do any validation at all. consider folowing code from zope import interface class IBase(interface.Interface): def my_method(self): pass class Child(): interface.implements(IBase) if __name__ ==

Re: mod_Wsgi Problem

2012-01-04 Thread Hassan
thnx now its working well , now i want to know how can i serve static files using apache , and i really still dont understand what is serving static files is ? Hope you can help me , -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Django/Data Base Advice

2012-01-04 Thread Andre Terra
On Wed, Jan 4, 2012 at 12:16 PM, Venkatraman S wrote: > SQL is highly flexible provided you know to write good sql (its like the > way Russell mentions 'It Depends' :P ); atleast i have been writing sqls > for the past 8 years and i find it easy to write them when the >

Re: mod_Wsgi Problem

2012-01-04 Thread Guddu
Glad that it helped. For serving static files, you could read through the Django documentation at https://docs.djangoproject.com/en/1.3/howto/static-files/ Regards, Guddu -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

admin interface error

2012-01-04 Thread Hassan
Dear ALL, i am using apache and mod_wsgi and its working fine and when i try to start the admin interface i get this :: DatabaseError at /admin/ no such table: django_session Request Method: GET Request URL:http://localhost:8080/mysite/admin/ Django Version: 1.3.1 Exception

Re: mod_Wsgi Problem

2012-01-04 Thread Hassan
but now i have another problem , i cant get the admin interface to work !!! whats missing ?? this is my httpd.conf : WSGIScriptAlias /mysite "C:/mysite/apache/django.wsgi" Order deny,allow Allow from all -- You received this message because you are subscribed to the Google Groups

Re: Cheap Django hosting?

2012-01-04 Thread creecode
Hello Praveen Krishna R, On Wednesday, January 4, 2012 1:53:00 AM UTC-8, Praveen Krishna R wrote: *Did you say $2 per month for an EC2 instance ?!!* > That is for the Micro instance which is suitable for some tasks but not all. Check out the pricing

Re: django/Data Base Advice

2012-01-04 Thread Javier Guerra Giraldez
On Wed, Jan 4, 2012 at 8:20 AM, Andre Terra wrote: > No, you don't need to go reading about what MVC means. Django is a MTV > framework, not MVC. There are similarities, but the differences are enough > to confuse your head if this is your first time with either one. I

Re: admin interface error

2012-01-04 Thread Guddu
Your WSGI must be having a DJANGO_SETTINGS_MODULE specified did you make sure that the database specified in that setting file was the one in use when you did your syncdb? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: Apache RewriteRule for django

2012-01-04 Thread Bob Kline
On Mon, Jan 2, 2012 at 12:47 PM, Bob Kline wrote: > So, when Apache was telling me (when the first version of the > AddHandler directive was in play) "The requested URL > "/appname.fcgi/admin was not found on this server" (the error message > leading me to the incorrect

Admin interface does not save routine object

2012-01-04 Thread Andy Oram
I am pasting in a pretty basic models.py here. It is fairly classic (I actually started with Poll tutorial example) and I have stripped out anything that looks questionable. Through the standard admin interface, I can create a User8, a Documentversion8, and a Document8. However, after I fill out

Users getting logged out frequently

2012-01-04 Thread arun.pbk
I have a Django app using Django social with session timeout set as SESSION_COOKIE_AGE = 60 * 60 *24 * 7 The session is being store in the db and rows are inserted for new sessions with correct session id and expire dates. Even though the session timeout is set to a week the users are

Re: Cheap Django hosting?

2012-01-04 Thread Timothy Makobu
Yeah, 2 bux. With Gentoo im able to squeeze out quite a bit out of that little thing. But I switch to c1.xlarge when it comes to running "# emerge --update --deep --with-bdeps=y --newuse world" and switch back to t1.micro immediately after. On Wed, Jan 4, 2012 at 6:21 PM, creecode

Re: Cheap Django hosting?

2012-01-04 Thread Javier Guerra Giraldez
On Tue, Jan 3, 2012 at 11:04 AM, Timothy Makobu wrote: > They charge me for only what I use, and their free quotas are generous. doesn't the free tier expire after one year? -- Javier -- You received this message because you are subscribed to the Google Groups

Testing Error Pages

2012-01-04 Thread Colin
Hi All, With the new static files app, is there a reasonable way to test error pages in development? Obviously my error template depends on some static files, but apparently the only way to see the error pages is to run with DEBUG = False, which stops the static files being served and therefore

Re: Admin interface does not save routine object

2012-01-04 Thread Brett Epps
Hi Andy, Could you send us a traceback from the 500 error page? (If you don't see one, you need to set DEBUG = True in settings.py.) Brett On 1/4/12 8:29 AM, "Andy Oram" wrote: >I am pasting in a pretty basic models.py here. It is fairly classic (I >actually started with

Re: Sample Application for using Google Docs API

2012-01-04 Thread Tom Evans
On Mon, Jan 2, 2012 at 7:10 AM, kapil Garg wrote: > Hi , > > I'm working on a web application and want to integrate Google docs with > that. Being new to Django and Web app, I'm finding it difficult to > understand the documentation provided for using Google Docs API . Is

Re: Cheap Django hosting?

2012-01-04 Thread Timothy Makobu
Ah yes. What's the average monthly bill of an EC2 small (more reasonable resources) instance running a Django on Postgres app handling an average of 200 requests per hour? Anyone have experience with this? (experience is better than the calculator I

Re: mod_Wsgi Problem

2012-01-04 Thread Tom Evans
On Wed, Jan 4, 2012 at 3:17 PM, Hassan wrote: > but now i have another problem , i cant get the admin interface to > work !!! whats missing ?? > Please raise a new thread for each separate issue, as this will allow people to help you more effectively, and the

Re: Pagination in ListView

2012-01-04 Thread Tom Evans
On Wed, Jan 4, 2012 at 12:09 PM, Matt Stevens wrote: > I've found a solution, but I don't like it. The canonical solution is included in the docs: https://docs.djangoproject.com/en/1.3/topics/pagination/#using-paginator-in-a-view Briefly: paginator =

Way to identify affected rows from a delete in the admin

2012-01-04 Thread diafygi
In the django admin site, it lists the entries that will be deleted via cascade if you want to delete something. I'm wondering if you can do something similar in the shell to identify the rows affected by a deletion. Is there such a function in django to show the list of casade deletes like in

Re: Cheap Django hosting?

2012-01-04 Thread Kenneth Reitz
You could easily run that on Heroku, and it would cost you $0. On Wednesday, January 4, 2012 at 12:15 PM, Timothy Makobu wrote: > Ah yes. > > What's the average monthly bill of an EC2 small (more reasonable resources) > instance running a Django on Postgres app handling an average of 200

Re: Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread DrBloodmoney
On Wed, Jan 4, 2012 at 5:33 AM, Martin Tiršel wrote: > Hello, > > I have a list of items (from a model) I want to display with checkboxes (for > deleting multiple objects at once). The same behaviour like in django admin > (change list). I can do such thing in templates: > >

Correct folder layout for a big Django application

2012-01-04 Thread IgorS
Can someone recommend a big existing Django application with the "right" folder layout? I would like to learn from some big application that has multiple model, test, view, template, .js, .css, image, utility, etc. files, which are nicely organized in different folders positioned below the

syncdb not creating join table

2012-01-04 Thread Brian Craft
I have two models. The second one has a ManyToMany to the first. Both are managed. If I drop both tables and run syncdb, only the two model tables are created. There's no join table. syncdb doesn't report any errors. "validate" shows 0 errors. Any ideas what the problem could be, or how to debug

Re: Correct folder layout for a big Django application

2012-01-04 Thread yati sagade
Not that I have done "big" apps, but placing all the static content in {{project_root}}/static/ under appropriate subdirs should do fine - e.g., /static/js, /static/css, /static/images etc. As for the other (dyanmic) parts, the django project and app layouts should be enough. I think if you hunt

Re: syncdb not creating join table

2012-01-04 Thread Brian Craft
I strongly suspect the problem I'm having has to do with database routers. It looks like under the hood django creates a model to represent the m2m relationship, and the router is blocking the syncdb for the generated model. I was using a class attribute on my models to control the routing, but I

Re: Correct folder layout for a big Django application

2012-01-04 Thread Waldek Herka
Hi, I'd recommend 'reviewboard' - code.google.com/p/reviewboard/ I learned great deal from this application. It is very mature and well thought through. Cheers, Waldek On Jan 4, 6:51 pm, IgorS wrote: > Can someone recommend a big existing Django application with the >

Re: syncdb not creating join table

2012-01-04 Thread Brian Craft
Looks like a m2m class can be identified by the ._meta.auto_created attribute, which also holds the class with the m2m field. So the router can check for attributes on that class. On Wed, Jan 4, 2012 at 11:49 AM, Brian Craft wrote: > I strongly suspect the problem I'm

Oracle's SP OUT param

2012-01-04 Thread Akira Kir
Hello. Im trying to get Oracle SPs working in django. Procedure recives in_param and out_param in get_data function i do [code] def get_data(self, in_param): cursor = connection.cursor() #out_param = ret=cursor.callproc("TEST_PKG", (in_param,out_param)) cursor.close() [/code]

Django Form Field: BoundField question

2012-01-04 Thread sassman
Hi, i'm using Django Version 1.3.1, can anyone say me why is the value function in BoundField (FormField) makes a check if the value is callable? def value(self): """ Returns the value for this BoundField, using the initial value if the form is not bound or the data

Re: Users getting logged out frequently

2012-01-04 Thread Cherian Thomas
Do you have the SESSION_COOKIE_NAME set correctly? Regards, Cherian On Wed, Jan 4, 2012 at 9:21 PM, arun.pbk wrote: > > I have a Django app using Django social with session timeout set as > SESSION_COOKIE_AGE = 60 * 60 *24 * 7 > The session is being store in the db and

Re: New Relic with Django

2012-01-04 Thread darinrs
Warning: I work at New Relic. Like Evan indicated we have quite a suite of free services. My advice is to give it a try. Graham Dumpleton has written up some very nice documentation on the usage of the python agent here: http://newrelic.com/docs/python/new-relic-for-python If you find something

Re: Using STATIC_URL in CSS/JS files?

2012-01-04 Thread Bill Freeman
Good point. But you can run into double braces in JS. On Tue, Jan 3, 2012 at 3:29 PM, Christophe Pettus wrote: > > On Jan 3, 2012, at 11:18 AM, Bill Freeman wrote: > >> This will be even morepainful if you use Django templates as the >> templating engine, since you will have

Re: Way to identify affected rows from a delete in the admin

2012-01-04 Thread Waldek Herka
Hi, here is the essence: from django.contrib.admin.util NestedObjects collector = NestedObjects(using=None) collector.collect(User.objects.all()) to_delete = collector.nested() It gives you a raw list of all the objects. For more friendly output see the usage of NestedObjects.nested with the

Re: Admin interface does not save routine object

2012-01-04 Thread Andy Oram
Thanks, Bill. I apologize for not including DEBUG output. Here is what seems relevant. It looks like the ForeignKey relationship filled in fields with the id's of the document and document version (which is what one would expect) and there was a problem converting it to a string. Request

Re: Admin interface does not save routine object

2012-01-04 Thread Brett Epps
Oh, I think the problem is in the __unicode__() method of your Quiz8 model. You're returning self.document, which is a Document8 object and not a unicode string. Try returning unicode(self.document) or something like '%d' % document.id. Brett On 1/4/12 5:07 PM, "Andy Oram"

Re: Pagination in ListView

2012-01-04 Thread J. Cliff Dyer
I've certainly seen blogs where I wished I could paginate negatively, where -1 would be the last page, -2 the second to last and so on. I was trying to work my way through a blog's archives from the beginning, but they kept adding new posts, so I never knew if the page I left off on was the page

Re: django/Data Base Advice

2012-01-04 Thread Chris Kavanagh
On Jan 3, 11:40 pm, Dennis Lee Bieber wrote: > On Tue, 3 Jan 2012 19:30:37 -0800 (PST), Chris Kavanagh > > wrote: > > >Well, I was referring to the database part, but really I need to learn > >more about web development too. I know HTML, CSS, JavaScript

Re: django/Data Base Advice

2012-01-04 Thread Chris Kavanagh
On Jan 4, 8:20 am, Andre Terra wrote: > I'm sorry, folks, but I'll have to *vehemently **disagree *with a lot of > what has been said in this thread. To the OP, I'm sorry I didn't reply any > sooner. > > No, you *don't need *to go reading about what MVC means. Django is a

Re: django/Data Base Advice

2012-01-04 Thread Chris Kavanagh
On Jan 4, 9:16 am, Venkatraman S wrote: > On Wed, Jan 4, 2012 at 6:50 PM, Andre Terra wrote: > > You won't need to write raw SQL in Django until you've reached a big > > bottleneck, and one that can't be solved in any other way. Writing raw SQL > > is

Re: django/Data Base Advice

2012-01-04 Thread Chris Kavanagh
On Jan 4, 10:36 am, Javier Guerra Giraldez wrote: > On Wed, Jan 4, 2012 at 8:20 AM, Andre Terra wrote: > > No, you don't need to go reading about what MVC means. Django is a MTV > > framework, not MVC. There are similarities, but the differences are

Re: New Relic with Django

2012-01-04 Thread Graham Dumpleton
On Jan 4, 10:40 pm, prabesh shrestha wrote: > I am trying to get started too with new relic. > I did all the configurations and it looks like everything is properly > set up. I am using gunicorn for my loca development. SO acc to the > tutorial I can start the app with >

Re: Cheap Django hosting?

2012-01-04 Thread Alec Taylor
On Thu, Jan 5, 2012 at 4:44 AM, Kenneth Reitz wrote: > You could easily run that on Heroku, and it would cost you $0. > I don't understand, why would it cost $0 on Heroku? I checked http://heroku.com/pricing and it seems to cost. -- You received this message because you

Re: Cheap Django hosting?

2012-01-04 Thread Alec Taylor
I just got my free (beta) invite to Epio: You set monthly limits on each resource, and we'll never charge you for more than that. Each app comes with a free dynamic instance, 5GB of free bandwidth and 2GB-months of free disk space. An instance is similar to a single system task — it could be a

Re: Users getting logged out frequently

2012-01-04 Thread Arun P
That’s a lot of education Dennis. Thanks. But, gmail is cookie login based and I don’t get logged out from Gmail. If this is case why different behaviors? On Wed, Jan 4, 2012 at 11:36 PM, Cherian Thomas wrote: > Do you have the SESSION_COOKIE_NAME set correctly? > >

Re: Users getting logged out frequently

2012-01-04 Thread Arun P
Also, as n FYI I don’t need to close the browser. It’s just refresh that takes me to the login page. Also the wifi login page does not come into play. When I check the cookies all I can see is 2 related to Django sessionid & csrf. And sessionid is just a unique long string On Thu, Jan 5, 2012

business integrity rule

2012-01-04 Thread Mike Dewhirst
How should I do this? Obj-1 <---[n:M]---> Obj-2 Obj-1 is in one table and Obj-2 is in a different table. The business rule is that a relationship must exist between two companies before there can be a link between Obj-1 and Obj-2. One company owns Obj-1 and the other company needs access

Re: Cheap Django hosting?

2012-01-04 Thread Kenneth Reitz
Heroku gives you 750 free "dyno hours" per month, per app for free. Essentially, they let any app run 24/7 (equivalent to a single server with 512MB of RAM and some pretty beefy processors). Scaling a process to multiple dynos is when the $0.05/hr charge starts (essentially adding another

Re: Cheap Django hosting?

2012-01-04 Thread Alec Taylor
Interesting, thanks. On Thu, Jan 5, 2012 at 4:47 PM, Kenneth Reitz wrote: > Heroku gives you 750 free "dyno hours" per month, per app for free. > > Essentially, they let any app run 24/7 (equivalent to a single server with > 512MB of RAM and some pretty beefy processors).

Re: django/Data Base Advice

2012-01-04 Thread kenneth gonsalves
On Wed, 2012-01-04 at 11:20 -0200, Andre Terra wrote: > I'm sorry, folks, but I'll have to vehemently disagree with a lot of > what has been said in this thread. To the OP, I'm sorry I didn't reply > any sooner. > > No, you don't need to go reading about what MVC means. Django is a MTV >

Re: business integrity rule

2012-01-04 Thread Mike Dewhirst
Got it sorted now thanks ... Mike On 5/01/2012 2:55pm, Mike Dewhirst wrote: How should I do this? Obj-1 <---[n:M]---> Obj-2 Obj-1 is in one table and Obj-2 is in a different table. The business rule is that a relationship must exist between two companies before there can be a link between