As you found out, OneToOneField wouldn't work in this case. A OneToOne
field implies that there will be exactly one user per school - instead
you wanted several users to be affiliated with an individual school.
The answer to your question might be here:
http://www.b-list.org/weblog/2006/06/06/dja
mamcxyz wrote:
> Yes I do.
>
> I'm building a "community" site for know, see and review local
> restaurant... This for restaurant with geographic information, food
> type, music played, bla bla... full of tags and trees...The idea is
> have more or less 1000+ before the end of this year and I expe
On 6/10/06, Ned Batchelder <[EMAIL PROTECTED]> wrote:
>
> I am still using 0.91, and have a question about this Model Inheritance
> issue in the current trunk. We use model inheritance in our code, but in a
> specialized way: only the derived classes are used concretely. The base
> classes are
On Fri, 2006-06-09 at 14:35 +0100, Simon Willison wrote:
> On 9 Jun 2006, at 14:03, Spock wrote:
> > I've application where most of data is fetched from database.
> > Those data are inserted by people without "trust", so in every
> > template
> >
> > I'm using |escape filter ...so a question is
Hi Ned,
On Fri, 2006-06-09 at 10:07 -0400, Ned Batchelder wrote:
> I am still using 0.91, and have a question about this Model
> Inheritance issue in the current trunk. We use model inheritance in
> our code, but in a specialized way: only the derived classes are used
> concretely. The base cla
On Fri, 2006-06-09 at 13:25 +0200, Gábor Farkas wrote:
> Malcolm Tredinnick wrote:
> > On Wed, 2006-06-07 at 11:34 +0100, David Reynolds wrote:
> >> Hi,
> >>
> >> I seem to remember reading either on the mailing list or IRC channel
> >> that sub-classing doesn't work at the moment, is that corre
Yes I do.
I'm building a "community" site for know, see and review local
restaurant... This for restaurant with geographic information, food
type, music played, bla bla... full of tags and trees...The idea is
have more or less 1000+ before the end of this year and I expect a
large amount of visit
*snip*
> Yay! I can answer a question
And I can boringly explain why it's done this way. It's so that in a
production environment you serve static files using a different, more
lightweight server (without mod_python installed) so as to become a
world more efficient.
>
>
> http://www.djangopr
to help with this kind of thing I have added the following to the end
of main urls.py
(r'^(?P.*)$', 'django.views.static.serve',
{'document_root': '/magik/zilbo/htdocs/' } ),
which is telling django if you don't match something, just try and
serve a file.
in my apache config I force
On Jun 9, 2006, at 7:04 PM, Guillermo Fernandez Castellanos wrote:
>
> Hi,
>
> I'm developping an (several?) applications with Django, and I use the
> development webserver.
>
> It works great, besides a tiny problem: the django dev webserver
> doesn't seem to serve static files (i.e. js, images,
Hi,
I'm developping an (several?) applications with Django, and I use the
development webserver.
It works great, besides a tiny problem: the django dev webserver
doesn't seem to serve static files (i.e. js, images, css etc..),
except for urls in the built-in admin server. Is it the intended way
I have been looking into Python and more specifically this framework
for a little while and it is very interesting to me! As a current PHP
user looking at Python for the first time, it seems to be a much more
elegant and OOP-centric language. As for the framework it simply looks
amazing. Anyway
mamcxyz wrote:
> No exist a way directly in python or django?
>
> My first release of this thing become under a low-end vps and putting
> another memory dog (I have a limit of 10 process?) is a issue.
>
btw. do you really need a sophisticated search system?
for example, i only needed a simple
Ok, but still is not convincent.
Maybe pair this with Pyro (http://pyro.sourceforge.net/)?
--~--~-~--~~~---~--~~
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@goo
Hi,
I understand the suggestion and it does make sense, as do the other
that have been suggested. However, I am thinking about the following
issues:
1. The data that I am consuming (XML) is a pretty complex structure. I
want to convert it to a Python structure that I can pass to Django
templates
Thanks for the quick response. That was exaclty what I was looking for.
--~--~-~--~~~---~--~~
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 uns
On 6/9/06, keukaman <[EMAIL PROTECTED]> wrote:
> I have added a couple of fields to a model after the database has
> already been built. Can someone share the steps I should take to add
> these fields to the existing table? I don't care about wiping data out
> of the existing database. Thank you.
On 6/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In this particular case, I need to hit a URL that will give me back
> some XML. I need to process the XML and put it in data structures that
> I want to present with Django.
>
> Since the fetching and processing of XML can take more than a
I have added a couple of fields to a model after the database has
already been built. Can someone share the steps I should take to add
these fields to the existing table? I don't care about wiping data out
of the existing database. Thank you.
--~--~-~--~~~---~--~~
On 6/9/06, elake <[EMAIL PROTECTED]> wrote:
> I have gone through the tutorial on IBM's site and I am really liking
> django. The question that I have is how do I put whitespace into posts
> that are made using the admin interface?
>
> I want to be able to type a line, hit enter a few times, then
Perfect. Thanks, Adrian.
-Chase
--~--~-~--~~~---~--~~
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
On 6/9/06, Chase <[EMAIL PROTECTED]> wrote:
> - Accept concatenated input from address, city, state and ZIP fields
> - Return a list of lat/lon result options on a map and allow the user
> to select the correct one (human validation)
> - Populate a table's lat/lon fields with the selected result
>
On 6/9/06, mamcxyz <[EMAIL PROTECTED]> wrote:
>
> No exist a way directly in python or django?
>
> My first release of this thing become under a low-end vps and putting
> another memory dog (I have a limit of 10 process?) is a issue.
See this post's comments for a discussion of various python in
Hi all
We're about to launch into what could be a time-consuming project and
wanted to see whether we're approaching it properly. Basically, we're
looking to implement an automatic geocoder into our Django admin
interface, which will:
- Accept concatenated input from address, city, state and ZIP
I use this script to reset the database and then load some test data.
from django.db import connection
from django.core import management
from django.contrib.auth.create_superuser import createsuperuser
cursor = connection.cursor()
cursor.execute("select tablename from pg_tables where
schemaname=
On 6/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I intend to use Django for a project that involves presenting some
> information comming from an external system.
>
> In this particular case, I need to hit a URL that will give me back
> some XML. I need to process the XML and pu
I have gone through the tutorial on IBM's site and I am really liking
django. The question that I have is how do I put whitespace into posts
that are made using the admin interface?
I want to be able to type a line, hit enter a few times, then type more
and have the blank space between the lines.
You might also check out NXLucene
(http://www.cps-project.org/sections/projects/nxlucene), built with
PyLucene and Zope3 components. I'm looking at this along with SOLR
(which is Java of course and runs on Tomcat.)
The basic idea is the same for SOLR and NXLucene -- it's a standalone
search serve
Hi,
I just spent some time looking for a way to extend the User model in a
way that would allow me to:
1. add fields to the model itself,
2. use the standard admin interface to edit them,
3. keep changes to Django minimal and generic.
I came up with something that actually works well and is gen
Thanks for the suggestion, Tom. However, I would like to stay away from
a database at this point. The information I need to present comes from
an existing database which I have to access through the XML I was
talking about.
I plan to write another post very soon about the various ways to
integrat
Another approach might be to simply run this as an independent process
(from cron, or whatever) and use django's ORM from within that script
to update the database which can then be viewed in your web app.
I've done this quite successfully with some of my apps.
--~--~-~--~~-
I should mention that I got this error when running syncdb:
Error: None couldn't be installed, because there were errors in your
model:
provisioning.email: At least one field in Email should have core=True,
because it's being edited inline by user.User.
Here's the appropriate models.py:
from dj
Hi,
I intend to use Django for a project that involves presenting some
information comming from an external system.
In this particular case, I need to hit a URL that will give me back
some XML. I need to process the XML and put it in data structures that
I want to present with Django.
Since the
Hi Folks,
I just deleted a Group, and now whenever I try to edit a user within
the admin interface I get the following error message:
AttributeError at /opscenter/admin/auth/user/3/
'bool' object has no attribute 'get'
Request Method: GET
Request URL:
http://cscenter.uk.scansafe.
On Jun 9, 2006, at 2:27 AM, camokid wrote:
> mr-fusion:/opt mrfusion$ sudo -u postgres81 createdb test
> dyld: Library not loaded: /usr/local/pgsql/lib/libpq.4.dylib
> Referenced from: /opt/pgsql/bin/createdb
> Reason: image not found
> Trace/BPT trap
Looks like you have some configuration
I managed to get the field to show up properly on the admin interace by
making both fields ForeignKeys, but when I select a school in the
'Change User' page and hit 'Save and Continue Editing', I look down at
the field and it's blank again. The model's table is also empty. Any
idea on this?
--~-
No exist a way directly in python or django?
My first release of this thing become under a low-end vps and putting
another memory dog (I have a limit of 10 process?) is a issue.
Not exis a way to build a permanent thread/process under django? or
something like application?
Or a way to lock acce
I do this and work terrible well. I can debug it from Komodo, I can set
breakpoints, Is FAST (all test is under memory)
#Clase sobre la cual basar los test...
import unittest
import sys
import os
SETTINGS_MODULE = 'settings'
project_dir = os.path.abspath('../')
sys.path.append(os.path.join(proj
[EMAIL PROTECTED] wrote:
> I uses django.views.static to serve my static files. I wrote some
> static html files and want them to be accessed from site's root, for
> example, http://127.0.0.1/file1.html http://127.0.0.1/file2.html, so I
> edit urls.py to:
> (r'^.*$', 'django.views.static.serv
I uses django.views.static to serve my static files. I wrote some
static html files and want them to be accessed from site's root, for
example, http://127.0.0.1/file1.html http://127.0.0.1/file2.html, so I
edit urls.py to:
(r'^.*$', 'django.views.static.serve',
{'document_root':'c:/htmls'}),
Greetings,
I'm not sure if this is the best way to go about achieving my goal, so
please let me know if there is a better way. First a little background:
I'm working on a website with authentication, and at the time of user
creation I'd like the applicant to be able to select the school they go
> On Jun 6, 2006, at 11:03 AM, Adrian Holovaty wrote:
>
>>
>> On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>>> Here's the problem: How do I get to those in a template? I know
>>> there's only one UserInfo object per User object, and ideally I'd
>>> like to type something like
>>>
>>> {{ user
I am still using 0.91, and have a question about this Model Inheritance
issue in the current trunk. We use model inheritance in our code, but
in a specialized way: only the derived classes are used concretely.
The base classes are all abstract: there are no rows in their tables,
no objects ar
On 9 Jun 2006, at 14:03, Spock wrote:
> I've application where most of data is fetched from database.
> Those data are inserted by people without "trust", so in every
> template
>
> I'm using |escape filter ...so a question is :
>
> Is there is some method to enable global escape filter ? :)
I
Works a treat. Compiled from source...
Thanks, Tom
--~--~-~--~~~---~--~~
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 g
I'll give that a try. Any ideas why it would work from the python
interpreter and not from Django?
I'll update on whether the suggested MySQL-python-1.2.1 fixes it.
Thanks for the response.
Tom
--~--~-~--~~~---~--~~
You received this message because you are sub
On 6/9/06, tomass <[EMAIL PROTECTED]> wrote:
> I have been testing on an Ubuntu desktop and my app works fine, but
> I've now migrated it to Fedora Core 3 where it will be in production
> and I'm having problems. I think the problem is related to the fact
> that I have custom RPMs for MySQL (usin
Hello.
I've application where most of data is fetched from database.
Those data are inserted by people without "trust", so in every template
I'm using |escape filter ...so a question is :
Is there is some method to enable global escape filter ? :)
--~--~-~--~~~---~
Hi,
Joseph Kocherhans wrote:
> > I was just about to ask the same question: I need to add some fields to
> > the User model and the only way I see is actually changing the auth
> > app. Is that so, or did I miss something?
>
> I'd recommend using the approach outlined here:
> http://www.b-list.o
Hi,
I understand why we have the django.db.models.LazyDate(): it's to make
sure we get the datetime value at execution time and not at "compile"
time. The docs tell you to use it for "limit_choices_to", but should I
also use it when I want the default value of a DateTimeField to be
"now". And how
Malcolm Tredinnick wrote:
> On Wed, 2006-06-07 at 11:34 +0100, David Reynolds wrote:
>> Hi,
>>
>> I seem to remember reading either on the mailing list or IRC channel
>> that sub-classing doesn't work at the moment, is that correct? It
>> seems to work to some extent but I can't recreate the b
Hi Folks,
I'm using PostgreSQL for my local database, but my application connects
to a number of other databases to do some queries. I have written a DB
abstraction module which I use to connect to PostgreSQL, MySQL and
Oracle, which has worked fine for me in all situations (Django and
otherwise)
not with python directly (but I plan to)
but I've seen it used in companies i work with and it works pretty well.
On 09/06/2006, at 8:53 PM, Gábor Farkas wrote:
>
> Ian Holsman wrote:
>> another option you might want to look at is using SolR - http://
>> incubator.apache.org/projects/solr.html ,
Ian Holsman wrote:
> another option you might want to look at is using SolR - http://
> incubator.apache.org/projects/solr.html , which is a search server
> which uses lucene.
> you could then use a regular HTTP client to communicate with it.
great, thanks for the link...
have you tried usin
Hi
Have followed this tutorial :
http://code.djangoproject.com/wiki/SetupOnTiger
up until the point where I am trying to test my postgreSQL install by
creating a test database, however, I am getting the following.
Does anybody have a solution to this problem?
Thanks!
mr-fusion:/opt mrfusion$
PythonistL wrote:
Fast guess:
> My httpd.conf looks like this
>
>
> ...
>
>
> ServerName www.eim.com
> SetHandler python-program
> PythonPath "['/home/django_projects/'] + sys.path"
^^ add '/home/django_src' to this.
Does it help?
Michael
--~--~-~--~
Todd O'Bryan wrote:
> I'm having a chicken-and-egg problem.
>
> So, I want to drop the test database, recreate it, sync it to the
> models, and then populate it with test data, ideally automatically
> because automatic tests are far more likely to get run.
>
> If I want the drop and create c
I am going to setup Django with mod_python and Apache on Linux but when
I try to use a script from a browser I will get the error:
##
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_p
58 matches
Mail list logo