Re: image/file uploads, custom filenames, security

2007-10-17 Thread Mark Green
On Tue, 2007-10-16 at 10:18 -0400, Marty Alchin wrote: > I've done some work on FileField lately that address some of your concerns. > > On 10/16/07, Mark Green <[EMAIL PROTECTED]> wrote: > > * does django properly sanitize the filename or rather, use > > safe temp files? i wonder what would

Re: Need help selecting a Django hosting provider

2007-10-17 Thread Adam Fast
I would also recommend WebFaction. If you really want to be your own admin, SliceHost is good too -but you have to know how to run your own server. >From the managed perspective, WebFaction is the best. --~--~-~--~~~---~--~~ You received this message because you

Re: Need help selecting a Django hosting provider

2007-10-17 Thread panamared
I would absolutely recommend webfaction for django, its good service, and most importantly efficient and easy set up. On Oct 17, 4:57 pm, Greg <[EMAIL PROTECTED]> wrote: > Hello, > I am looking for a hosting provider that offers support for Django > apps. I've only worked with the developmental

Re: state of newforms, flux or stable?

2007-10-17 Thread Russell Keith-Magee
On 10/17/07, onno <[EMAIL PROTECTED]> wrote: > > I keep reading two things > Newforms is stable, use it !! > Newforms is in flux, will change a lot over time ... > > I have to build an application that uses newforms a lot! I use SVN > 0.97 version > > Should I expect that my code breaks al over

Re: dumpdata/loaddata on a large DB

2007-10-17 Thread Russell Keith-Magee
On 10/18/07, Densetsu no Ero-sennin <[EMAIL PROTECTED]> wrote: > > Unfortunately, dumpdata/loaddata won't work on large databases, because the > whole data collection is retrieved and stored in RAM before serialization or > after deserialization. This comment has been made before (by Adrian),

Re: Check box form

2007-10-17 Thread Michael
Hi Jacob, I had a similar situation. The key points that I wanted were: 1. Still use a normal Django newform that can validate itself etc. 2. Control of HTML remains in the template. The way I went about it was to: 1. Create a new form, say ManageRegistrationsForm that takes a result- set of

Re: 0.96 login issue with cookies

2007-10-17 Thread Mike
Hi Robert, I had the same problem. Since I switched from FCGI to mod_python the problem disappeared. I still don't know what was the _real_ reason for that. However, I noticed it was possible to get rid of the problem temporarily by clearing the browser cache (or cookies). I bet it was caused by

Re: Multiple Database Support

2007-10-17 Thread markg
Thanks Koen! I will try the patch. On Oct 17, 12:03 am, koenb <[EMAIL PROTECTED]> wrote: > Hi Mark, > > You can find some newer work at ticket #4747. The patches there are > some work in progress trying to bring multi-db back in line with > trunk. > A lot has changed in trunk in the last year,

Re: Need help selecting a Django hosting provider

2007-10-17 Thread snowdem
I would also recommend using Webfaction. A couple of clicks and your site is ready for your Django app. On Oct 17, 5:45 pm, machineghost <[EMAIL PROTECTED]> wrote: > I'm not sure if it's still on the list or not, but Dreamhost is > TERRIBLE for Django. I'd recommend webfaction.com; they set

Re: What is happening with mod_python

2007-10-17 Thread Graham Dumpleton
On Oct 18, 8:33 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote: > ... > > > > > ImportError: No module named django.core.handlers.modpython > > ... > > my conf file is a basic: > > > > > SetHandler python-program > > PythonHandler

Re: Need help selecting a Django hosting provider

2007-10-17 Thread machineghost
I'm not sure if it's still on the list or not, but Dreamhost is TERRIBLE for Django. I'd recommend webfaction.com; they set everything up for you initially, and just generally handle lots of the sys admin stuff so that you can focus on programming. Jeremy On Oct 17, 3:09 pm, Greg <[EMAIL

Re: What is happening with mod_python

2007-10-17 Thread Jeremy Dunck
On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote: ... > > ImportError: No module named django.core.handlers.modpython > ... > my conf file is a basic: > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE

What is happening with mod_python

2007-10-17 Thread Michael Newman
This is strange and I am sure I am doing something wrong, but i have been starring at this for a while now and can't see it. I am getting this mod_python error: ProcessId: 31673 Interpreter:'mysite' ServerName: 'mysite' DocumentRoot: '/var/www/vhosts/mysite/httpdocs' URI:

Need help selecting a Django hosting provider

2007-10-17 Thread Greg
Ok...let's try this again. Hopefully this works. Hello, I am looking for a hosting provider that offers support for Django apps. I've only worked with the developmental version of Django. So this is my first time picking out a hosting provider. I've looked through the documentation at:

Need help selecting a Django hosting provider

2007-10-17 Thread Greg
Hello, I am looking for a hosting provider that offers support for Django apps. I've only worked with the developmental version of Django. So this is my first time picking out a hosting provider. I've looked through the documentation at:

Need help selecting a Django hosting provider

2007-10-17 Thread Greg
Hello, I am looking for a hosting provider that offers support for Django apps. I've only worked with the developmental version of Django. So this is my first time picking out a hosting provider. I've looked through the documentation at:

Need help selecting a Django hosting provider

2007-10-17 Thread Greg
Hello, I am looking for a hosting provider that offers support for Django apps. I've only worked with the developmental version of Django. So this is my first time picking out a hosting provider. I've looked through the documentation at:

0.96 login issue with cookies

2007-10-17 Thread Robert Šmol
Hello, I have HomePage with login bar with a form for user to log in. I use django.contrib.auth.login to log user in. When I enter it from the /accounts/login/ page it works ok. However trying to login from homepage is not working. I have to do it twice (always). On django# there were more users

Re: Request data is lost between two views

2007-10-17 Thread rskm1
On Oct 16, 5:35 am, Divan Roulant <[EMAIL PROTECTED]> wrote: > I loose request data when I call a view with reverse from a previous > view. Here is what I do: > > def my_first_view(request): > # Processing here > return HttpResponseRedirect(reverse('my_second_view, > args=(request,))) > >

Re: Check box form

2007-10-17 Thread rskm1
On Oct 17, 1:52 pm, jacoberg2 <[EMAIL PROTECTED]> wrote: > I am trying to create a checkbox form so that the user can delete a > large number of > registrations at once. I am wondering how I should set up the view in > order to deal with > the incoming data. Any suggestions? The template can

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
On Oct 17, 1:29 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: > On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote: > > > In the latest patches for multi-db the QuerySet that is returned is no > > longer fixed, but varies with the model's manager. That should fix > > that problem for now. > > >

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote: > In the latest patches for multi-db the QuerySet that is returned is no > longer fixed, but varies with the model's manager. That should fix > that problem for now. > > Koen I've installed the latest patches for multi-db agains revision

Re: bypassing reverse relation (related_name)

2007-10-17 Thread RajeshD
> > Is there a way to express that I don't need the reverse relation? No. Even if you don't need them, Django will want to dynamically endow your Location objects with them. And, as you know, it can't do it if two reverse relations have the same name.

Re: How do you manage your django sources?

2007-10-17 Thread Doug Van Horn
On Oct 17, 1:06 pm, stv <[EMAIL PROTECTED]> wrote: > really? I'm researching Django for a potentially large project, I was > thinking of having a layout like this: > > mainproject > |--core # models reused everywhere: Person, Address, etc > |--apply # models only for application: Questions,

bypassing reverse relation (related_name)

2007-10-17 Thread Joe Holloway
I'm finding that I have quite a few many-to-one relations that don't really need the reverse relation to be expressed in the object model. For example, class Route(models.Model): start = models.ForeignKey (Location) destination = models.ForeignKey (Location) The default related_name

Re: How to convert 92.5698 to 92.57

2007-10-17 Thread Karen Tracey
On 10/17/07, Greg <[EMAIL PROTECTED]> wrote: > Is there documentation that talks about .2f? Would it be under Python > or Django documentation? That's just Python. See: http://docs.python.org/lib/typesseq-strings.html I'm still having the problem with the admin though. I guess it's not >

dumpdata/loaddata on a large DB

2007-10-17 Thread Densetsu no Ero-sennin
manage.py dumpdata and manage.py loaddata are nice tools for many cases. Particularly, they could be useful for transferring data from one database to another (say, from SQLite to PostgreSQL). Unfortunately, dumpdata/loaddata won't work on large databases, because the whole data collection is

Re: first website with django

2007-10-17 Thread Kristinn Örn Sigurðsson
You should take a look at the tutorials in the documentation. On 10/17/07, Gigs_ <[EMAIL PROTECTED]> wrote: > > > hI! > > I'm going to start my first website (with django). > > I need some guidelines what to do first, where to start etc.? > > Website will be for some tennis game tournament, so it

Check box form

2007-10-17 Thread jacoberg2
Hey, I am trying to create a checkbox form so that the user can delete a large number of registrations at once. I am wondering how I should set up the view in order to deal with the incoming data. Any suggestions? Thanks for any help i can get. Jacob

Re: How to convert 92.5698 to 92.57

2007-10-17 Thread Karen Tracey
Try changing: phonemes = "%s \n\n %s" % (pr, myorder) to: phonemes = "%.2f \n\n %s" % (pr, myorder) Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: retrieving initial form data

2007-10-17 Thread Doug B
The bound data and initial data dicts are just set on the form instance as form.data, and form.initial. This isn't 'clean' data though, so you are bypassing any newforms validation. a = AForm( initial = {'x': 1} ) a.initial['x'] --~--~-~--~~~---~--~~ You

Re: How do you manage your django sources?

2007-10-17 Thread stv
> > I started out by having lots of little apps, but that seemed to be a > bit painful, having 5 or 6 sets of models.py, views.py, and urls.py. > Now I just have one app, the functionality that I'm working on. I'll > come through and refactor later if I need to. really? I'm researching Django

Re: How to convert 92.5698 to 92.57

2007-10-17 Thread Greg
Doug, I'm sending the email from my view so I can't use a template filter like 'stringformt'. I don't call a template to send my email. Here is my code view: o = Order() o.b_name = request.session['orderdetails']['b_firstname'] + " " + request.session['orderdetails']['b_lastname'] o.b_address

retrieving initial form data

2007-10-17 Thread Ken
Given an instance of a form that was created with initial data, how do I extract a specific field value? For example, a = AForm( initial = {'x': 1} ) How do I find out what value the field named 'x' is? a.fields['x'] gives me a.fields['x'].initial returns None I am not interested in

first website with django

2007-10-17 Thread Gigs_
hI! I'm going to start my first website (with django). I need some guidelines what to do first, where to start etc.? Website will be for some tennis game tournament, so it will have database with registered users. Registered users could register for upcoming tournaments (after they login) in

Re: Use .html at the end of the url instead of / ?

2007-10-17 Thread Tim Chase
> Having your URLs end with a slash is good. It looks better and shortens > your pages address. Also, in the future, you may find that not all of > your pages are going to be text/html. While I'm ambivalent about the trailing slash (the below assumes that it's disabled), many of my urls/views

Re: Consuming a SOAP services from Django

2007-10-17 Thread Antoni Aloy
2007/10/17, Tim Perrett <[EMAIL PROTECTED]>: > > Hey all > > I have played around with consuming a SOAP services with simple > python scripts and the ZSI soap implementation, but I was then > wondering where best to put this kind of code? It would start to > clutter things up if I was to put it

Re: How to convert 92.5698 to 92.57

2007-10-17 Thread Doug Van Horn
On Oct 17, 9:44 am, Greg <[EMAIL PROTECTED]> wrote: > Doug, > Thanks for the reply. It's weird, because in my admin when I show the > amount in my list_display (list_display = ('b_name', 'thirdtime', > 'amount', 'customer', 'id')). I see the two zeroes. However, when I > drill down on a

Re: template and array like template variable access

2007-10-17 Thread jake elliott
hi johnny, you can use dot syntax for indices also, ie: {{ a_tup.0 }} {{ a_tup.1 }} -jake On Wed, 2007-10-17 at 08:20 -0700, johnny wrote: > > {% for a_tup in rs %} > > {{ a_tup[0] }}/ >{{ a_tup[1] > > {% endfor %} > > Exception Type:

template and array like template variable access

2007-10-17 Thread johnny
{% for a_tup in rs %} {{ a_tup[0] }}/ {{ a_tup[1] {% endfor %} Exception Type: TemplateSyntaxError Exception Value:Could not parse the remainder: '[0]' from 'a_tup[0]' Only way to do this is to have nested for loop inside template?

Re: Workflow engine

2007-10-17 Thread Lic. José M. Rodriguez Bacallao
yes, something like that!!! On 10/17/07, Tim Perrett <[EMAIL PROTECTED]> wrote: > > > When you say 'workflow', do you mean like a JBPM type thing, but in > python? > > Cheers > > TP > > > On 17 Oct 2007, at 14:07, Lic. José M. Rodriguez Bacallao wrote: > > > hi folks, I need a workflow engine to

Consuming a SOAP services from Django

2007-10-17 Thread Tim Perrett
Hey all I have played around with consuming a SOAP services with simple python scripts and the ZSI soap implementation, but I was then wondering where best to put this kind of code? It would start to clutter things up if I was to put it in views.py wouldnt it? Any advice would be great

Re: Custom Managers and Model Methods

2007-10-17 Thread Jason Massey
Thanks, Rajesh, that most definately helps. I figured that I'd have to resort to something like option #1 after many google searches. On 10/17/07, RajeshD <[EMAIL PROTECTED]> wrote: > > > Hi Jason, > > > Using the models below I'd like to be able to create Querysets such as: > > > > a =

Re: Custom Managers and Model Methods

2007-10-17 Thread RajeshD
Hi Jason, > Using the models below I'd like to be able to create Querysets such as: > > a = Treatment.objects.filter(total_dose__range=(4000,1)) > b = a.filter(tumor__patient__gender = 'M') > > Both of the above work, but then I'd like to have an additional filter: > c =

Re: Prevent setting a primary key (compound uniqueness)

2007-10-17 Thread Erik Stein
Am 17.10.2007 um 14:43 schrieb Erik Stein: > Is there a way to tell django not to set a primary key on a table > (and then doing it with custom sql)? Answering myself: To make django happy a define primary_key=True for one of the fields. I added a custom sql file for the model

Re: Workflow engine

2007-10-17 Thread Sam Tran
On 10/17/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > hi folks, I need a workflow engine to use with a django web site I'm > implementing, does anyone know a good workflow engine for python (or > django)? > http://code.djangoproject.com/wiki/GoFlow

Re: How to convert 92.5698 to 92.57

2007-10-17 Thread Greg
Doug, Thanks for the reply. It's weird, because in my admin when I show the amount in my list_display (list_display = ('b_name', 'thirdtime', 'amount', 'customer', 'id')). I see the two zeroes. However, when I drill down on a specific record I only see one zero. This is a problem because in

Re: newform: Why Doesn't This work

2007-10-17 Thread RajeshD
Aaargh...the indentation got screwed up. Here's another attempt: class myForm(forms.Form): def __init__(self, *args, **kwargs): self.q_prime = [] # default choices here? try: self.q_prime = kwargs.pop('q') except: pass super(myForm,

Re: Prevent setting a primary key (compound uniqueness)

2007-10-17 Thread Thomas Guettler
> Is there a way to tell django not to set a primary key on a table > (and then doing it with custom sql)? Hi, why can't you drop the created primary key in you custom sql (myapp/sql/mymodel.sql) , and then create your new combined index? Thomas

Re: newform: Why Doesn't This work

2007-10-17 Thread RajeshD
class myForm(forms.Form): def __init__(self, *args, **kwargs): try: self.q_prime = kwargs.pop('q') except: pass super(myForm, self).__init__(*args, **kwargs) choice = forms.ChoiceField(label="My choice",

Re: Use .html at the end of the url instead of / ?

2007-10-17 Thread Dean Edridge
Mathieu Poussin wrote: > Hello , > i have a question, > by default , django add a slash at the end of the url , like that : > http://my/documents/hello -> http://my/documents/hello/ > > it's possible to add .html instead of that ? like that : > http://my/documents/hello ->

Re: Workflow engine

2007-10-17 Thread cjl
Check out: http://code.djangoproject.com/wiki/goflow:FAQ --~--~-~--~~~---~--~~ 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

Re: Workflow engine

2007-10-17 Thread Tim Perrett
When you say 'workflow', do you mean like a JBPM type thing, but in python? Cheers TP On 17 Oct 2007, at 14:07, Lic. José M. Rodriguez Bacallao wrote: > hi folks, I need a workflow engine to use with a django web site > I'm implementing, does anyone know a good workflow engine for >

Accessing SSL client certificate variables

2007-10-17 Thread lmierzej
Is there a way to access apache/mod_python's SSL client certificate variables in django? I found only this: http://code.djangoproject.com/ticket/2938 - is it really not possible without patching django source code? --~--~-~--~~~---~--~~ You received this message

1 year free

2007-10-17 Thread [EMAIL PROTECTED]
One year free, full dynamic and 2 languages 10 pages business website. Try it. http://www.nayloon.com Best Regards Tolga Bilir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Custom Managers and Model Methods

2007-10-17 Thread Jason Massey
Using the models below I'd like to be able to create Querysets such as: a = Treatment.objects.filter(total_dose__range=(4000,1)) b = a.filter(tumor__patient__gender = 'M') Both of the above work, but then I'd like to have an additional filter: c =

Re: How to convert 92.5698 to 92.57

2007-10-17 Thread Doug Van Horn
On Oct 16, 11:19 pm, Greg <[EMAIL PROTECTED]> wrote: > Michael, > Yea I'm already using stringformat in my template. However, in my > view code is where I create the order. When the order is added in the > view and I then look at it in the admin the price is displayed as 74.0 > instead of

Workflow engine

2007-10-17 Thread Lic. José M. Rodriguez Bacallao
hi folks, I need a workflow engine to use with a django web site I'm implementing, does anyone know a good workflow engine for python (or django)? -- Lic. José M. Rodriguez Bacallao Cupet - Todos somos muy ignorantes, lo que ocurre

Re: How do you manage your django sources?

2007-10-17 Thread Doug Van Horn
On Oct 17, 2:23 am, Manoj Govindan <[EMAIL PROTECTED]> wrote: > How many here follow the django axiom of 'one project, multiple apps'? > If you do, how do you control the sources? Do you map one project to > one source code repository or do individual apps get their own > repositories? I've

Re: Use .html at the end of the url instead of / ?

2007-10-17 Thread [EMAIL PROTECTED]
set APPEND_SLASH=False (r'^documents/([\w_]+)\.html', 'some_view', {}) On Oct 17, 1:47 pm, Mathieu Poussin <[EMAIL PROTECTED]> wrote: > Hello , > i have a question, > by default , django add a slash at the end of the url , like that > :http://my/documents/hello->http://my/documents/hello/ > >

Re: newforms-admin: Mixed form fields and text values with formsets

2007-10-17 Thread akaihola
Here's the solution I'm using right now in my view. Not pretty. my_items = MyModel.objects.all() my_items_dict = dict((obj.pk, obj) for obj in my_items) formset = forms.formset_for_model(MyModel, extra=0) (instances=my_items) pk_name = MyModel._meta.pk.attname for form in

Use .html at the end of the url instead of / ?

2007-10-17 Thread Mathieu Poussin
Hello , i have a question, by default , django add a slash at the end of the url , like that : http://my/documents/hello -> http://my/documents/hello/ it's possible to add .html instead of that ? like that : http://my/documents/hello -> http://my/documents/hello.html if yes, how ? thanks ,

FileBrowser: Now at Google Code

2007-10-17 Thread patrickk
The FileBrowser is now available (again) at http://code.google.com/p/django-filebrowser/ patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: apache2 + mod_python vhosts conflict

2007-10-17 Thread Graham Dumpleton
On Oct 17, 5:38 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 17-Oct-07, at 7:31 AM, Wiley wrote: > > > Kenneth and Bob, the PythonInterpreter thing was the first thing I > > checked (because it was in the official docs) if you notice I have > > different PythonInterpreters already set in

Re: How do you manage your django sources?

2007-10-17 Thread akaihola
If the apps are shared (or might be shared) between multiple projects, I put them into separate repositories and use svn externals to stick them into the project tree. I actually include the Django source as an svn external as well to keep track on which branch/revision each project is using and

state of newforms, flux or stable?

2007-10-17 Thread onno
I keep reading two things Newforms is stable, use it !! Newforms is in flux, will change a lot over time ... I have to build an application that uses newforms a lot! I use SVN 0.97 version Should I expect that my code breaks al over in coming svn version or when going to 0.98

newforms-admin: Mixed form fields and text values with formsets

2007-10-17 Thread akaihola
I have a formset for "confirming" multiple model instances by checking a checkbox. I'd like to show values of some fields as text and display a checkbox for the confirmation boolean field. I have a couple of ideas: - somehow couple the instances and their corresponding formset forms and access

Re: Reversing a url with a get parameter

2007-10-17 Thread Ivan Sagalaev
Rufman wrote: > hey guys > > I need a little help reversing urls with a get parameter. > > I'm using urlresolvers.reverse() in my view to reverse the url as > follows: > reverse(pageName, kwargs={'page' : page}) > > If i try passing thre request.GET object as so: > > reverse(pageName,

Re: How do you manage your django sources?

2007-10-17 Thread Margaret
Using one repository , then one project one directory, I do this. On 10/17/07, Manoj Govindan <[EMAIL PROTECTED]> wrote: > > On Oct 17, 12:30 pm, Margaret <[EMAIL PROTECTED]> wrote: > > version control system??? > > or local filesystem?? > > > > Version control system, say SVN. > > > > > --

Re: How do you manage your django sources?

2007-10-17 Thread Manoj Govindan
On Oct 17, 12:30 pm, Margaret <[EMAIL PROTECTED]> wrote: > version control system??? > or local filesystem?? > Version control system, say SVN. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: apache2 + mod_python vhosts conflict

2007-10-17 Thread Kenneth Gonsalves
On 17-Oct-07, at 7:31 AM, Wiley wrote: > Kenneth and Bob, the PythonInterpreter thing was the first thing I > checked (because it was in the official docs) if you notice I have > different PythonInterpreters already set in the two virtual hosts in > my original post...am I missing something

Re: multiple database support: oracle backend

2007-10-17 Thread koenb
In the latest patches for multi-db the QuerySet that is returned is no longer fixed, but varies with the model's manager. That should fix that problem for now. Koen On 17 okt, 09:03, Ian <[EMAIL PROTECTED]> wrote: > I don't know anything about the multi-db branch, but I imagine that > whatever

Reversing a url with a get parameter

2007-10-17 Thread Rufman
hey guys I need a little help reversing urls with a get parameter. I'm using urlresolvers.reverse() in my view to reverse the url as follows: reverse(pageName, kwargs={'page' : page}) If i try passing thre request.GET object as so: reverse(pageName, args=[request.GET], kwargs={'page' : page}

Re: How do you manage your django sources?

2007-10-17 Thread Margaret
version control system??? or local filesystem?? On 10/17/07, Manoj Govindan <[EMAIL PROTECTED]> wrote: > > How many here follow the django axiom of 'one project, multiple apps'? > If you do, how do you control the sources? Do you map one project to > one source code repository or do individual

How do you manage your django sources?

2007-10-17 Thread Manoj Govindan
How many here follow the django axiom of 'one project, multiple apps'? If you do, how do you control the sources? Do you map one project to one source code repository or do individual apps get their own repositories? --~--~-~--~~~---~--~~ You received this

Re: Multiple Database Support

2007-10-17 Thread koenb
Hi Mark, You can find some newer work at ticket #4747. The patches there are some work in progress trying to bring multi-db back in line with trunk. A lot has changed in trunk in the last year, so I think it is worth trying those out instead of the old branch. Off course there are still a lot of

Re: multiple database support: oracle backend

2007-10-17 Thread Ian
On Oct 16, 6:38 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: > I am having trouble with Django revision 6110 patched with multi- > db-6110.patch. > > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/local/lib64/python2.4/site-packages/django/db/models/ > query.py", line

runfcgi - complete lack of joy.

2007-10-17 Thread jtm
Hi all, django 6525, Apache 1.3, Mac OS X Server 10.4.7, python 2.5.1 (darwin ports) Following: http://code.djangoproject.com/wiki/OsxFcgi , except I've added another folder into the nest: /Library/WebServer/Documents/django Added these lines to my httpd.conf (which, besides turning on php,

Re: multiple database support: oracle backend

2007-10-17 Thread koenb
Sorry Carlos, those patches are far from complete, and I don't use Oracle myself. For the moment the backends in the patches use the following to get the connection: connection = self.model._default_manager.db.connection Removing the import and putting in that line should do the

Re: can't install...

2007-10-17 Thread Phwaxmon
so I installed django from "http://www.instantdjango.com/ chapter1.html" and then did the tutorial, and when I tried to execute it, this is what I got: Page not found (404) Request Method: GET Request URL:http://localhost/crime/arson/ No Crime matches the given query. You're seeing

default fields for model (also default model methods and manager)

2007-10-17 Thread zeliboba
hi all I'd like to have certain fields in several models, like alias field in this: class Person(models.Model): name = models.CharField(max_length=255) alias = models.ForeignKey('self', blank=True, null=True) class Place(models.Model): street = models.CharField(max_length=255)