Re: ServerArrangements Wiki Page

2012-06-02 Thread Russell Keith-Magee
On Sat, Jun 2, 2012 at 11:53 PM, Henrik Genssen wrote: > Hi, > > this page > https://code.djangoproject.com/wiki/ServerArrangements > seems a little outdated. Is this still the main source for listing, how to > run django in production? I wouldn't describe it as the

Re: Oracle schema not working

2012-06-02 Thread akaariai
On Jun 1, 12:58 pm, Jani Tiainen wrote: > > Hello. The user connecting to Oracle is an ordinary user and needs to > > prefix all tables with the schema name. > > I've tried crafting Meta.db_table like so: > >http://cd-docdb.fnal.gov/cgi-bin/RetrieveFile?docid=3156=1... > > >

Re: Django ModelForm user best practices

2012-06-02 Thread Peter of the Norse
https://docs.djangoproject.com/en/1.3/topics/forms/modelforms/#using-a-subset-of-fields-on-the-form has a highlighted note about this very issue. The way they recommend is: (based on #1 below) initial_notification = Notification(user=self.request.user, board=..., post=...) form =

Django CRM Tool

2012-06-02 Thread Zeeshan Syed
Hey everyone, I've been asked to create a CRM tool using Django. Just wondering what route I should take. Would it be wise to start from scratch? Should I play around with Django admin and mess around with that? I've looked at the django-crm project, has anyone had any experience with that? Any

Re: PyPm / Django 1.4?

2012-06-02 Thread Bill Freeman
Have you considered running under a virtualenv and pip installing exactly what you need? On Fri, Jun 1, 2012 at 5:28 PM, Aaron C. de Bruyn wrote: > I am not a Windows developer--but I was recently asked to port a very small > Django app (so it could be run locally using the

Re: Problem with Django Project

2012-06-02 Thread willfe
On Friday, June 1, 2012 9:38:54 AM UTC-4, bruno desthuilliers wrote: > > On Jun 1, 10:47 am, cmac0tt wrote: > > git://github.com/cmac0tt/wikicamp.git > > Some web-browsable link would have been more helpful (sorry, I'm not > going to clone your repo). > I think

ServerArrangements Wiki Page

2012-06-02 Thread Henrik Genssen
Hi, this page https://code.djangoproject.com/wiki/ServerArrangements seems a little outdated. Is this still the main source for listing, how to run django in production? 1. I thought mod_python would be deprecated (a hint would be useful) 2. Gunicorn [1] is missing (has native django support)

Re: Scaling django installation

2012-06-02 Thread Subhranath Chunder
On Sat, Jun 2, 2012 at 7:14 AM, Tim Chase wrote: > On 06/01/12 09:17, Subhranath Chunder wrote: > > (Given the fact that the server is deployed in Amazon EC2 > > Singapore location, as m1.xlarge with all it's network, memory > > constrains in place) > > A couple of

Re: Obtaining objects from a many-to-many relationship

2012-06-02 Thread Thomas Lockhart
On 12-06-02 1:15 AM, Kurtis Mullins wrote: Have you tried b.haveone.all()? Yes. Simplemindedly I wanted to try B.haveone.all() If I understand your suggestion, it would require iterating on instances of B to find all instances of A mentioned in B. that would be something like for b in

Re: Django session and Dojo dnd.

2012-06-02 Thread henzk
Hi, i haven't tested the code and never used dojo before, but sth. like this should work: var source1 = new dojo.dnd.Source("itemListNode"); var source2 = new dojo.dnd.Target("selectedListNode"); dojo.connect( source1, "onDndDrop", function(source, nodes, copy, target){ //gather

Re: How to upload Django/Python to FTP

2012-06-02 Thread Shayne
Hi Kurtis! Thanks for the quick reply. Anyway, me and my web dev are both using repository now to update our files.. from there (i guess) we will access and pull the files through SSH(?) Might try to ask over Stackoverflow. Thanks so much, Kurtis! -- You received this message because you are

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread kenneth gonsalves
On Sat, 2012-06-02 at 02:58 -0700, Houmie wrote: > The good news is the problem is solved. A friendly chap in > stackoverflow > actually bothered to look into it. > > The problem is as simple as the translation files couldn't be found. > For > some odd reason the important information about how

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread Houmie
> > Hi Kenneth, The good news is the problem is solved. A friendly chap in stackoverflow actually bothered to look into it. The problem is as simple as the translation files couldn't be found. For some odd reason the important information about how Django locates them is at the very last

Re: Obtaining objects from a many-to-many relationship

2012-06-02 Thread Kurtis Mullins
https://docs.djangoproject.com/en/dev/topics/db/queries/#many-to-many-relationshipsfor more information. (Unless I read your question wrong :)) On Sat, Jun 2, 2012 at 4:15 AM, Kurtis Mullins wrote: > Have you tried b.haveone.all()? > > > On Sat, Jun 2, 2012 at 12:36 AM,

Re: Obtaining objects from a many-to-many relationship

2012-06-02 Thread Kurtis Mullins
Have you tried b.haveone.all()? On Sat, Jun 2, 2012 at 12:36 AM, Thomas Lockhart wrote: > I've got two models with one having a many-to-many relationship with the > other: > > class A(models.Model): > name = models.CharField("name") > > class B(models.Model): > haveone

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread kenneth gonsalves
On Fri, 2012-06-01 at 10:58 -0700, Houmie wrote: > I would really appreciate it if somebody could help me with this. > Working on this since this morning and am totally stuck.. > > could you try with revision 17860 and see if it works. I have the same problem, and am stuck with 17860 -