On Apr 24, 1:45 am, "Jason McVetta" <[EMAIL PROTECTED]> wrote:
> > TypeError: Cannot resolve keyword 'book' into field
>
> This is a long-standing, well-known bug that apparently no one (including
> me) knows how to fix.
>
> Any time one defines a ManyToMany relationship, then calls all() on tha
Check out this link
http://www.time-travellers.org/shane/howtos/MS-SQL-Express-Python-HOWTO.html
You need some tweaks
Regards
Alok Tiwari
On Apr 25, 2:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> All,
>
> I have Django running on a Linux machine, and I want to connect to a
> MSSQL
*if you want to be an Astronaut of NASA
please read this guaid*
http://information.100stuff.com/want-to-be-astronaut/
Thanks
Rania
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
My mistake -- I had unintentionally set 'null=True' in the ForeignKey
definition.
-Paul
On Apr 24, 1:08 pm, Paul Smith <[EMAIL PROTECTED]> wrote:
> I have a model defined with a ForeignKey that points to another model
> in a different installed app. select_related() does not seem to follow
> the
Looks like my earlier reply got dropped. Sorry if this ends up being
a double post.
Check out the Model API docs:
http://www.djangoproject.com/documentation/db-api/#isnull
You want to do something like:
Year.objects.filter(event__isnull=False)
- Robin
On Apr 24, 11:15 am, "[EMAIL PROTECTED]"
Awesome. Thanks Doug.
That's precisely what I've been working towards over the last couple
of hours, but didn't know about search paths in Postgres. I was trying
to handle it within Django by prefixing a "SCHEMA_PREFIX" to the table
name on my own app models (of which there aren't many).
Unfortu
On 4/24/07, Moses Ting <[EMAIL PROTECTED]> wrote:
> Has anyone run into errors with the paginator.has_next_page function?
> It seems to be returning false even though I am certain that there's a
> next page.
Could you post some more details about the situation you're
encountering? Without knowing
Thanx Michael for your attention.
I'm using todays build from svn trunk.
I started project from the beginning to eliminate possibility that its
something wrong with my code.
when I run "python manage.py runserver" everything seams OK.
when I hit any page I got error I mentioned
Yes I'm runnung it
All,
I have Django running on a Linux machine, and I want to connect to a
MSSQL database running on a windows machine. Is there any progress on
making this possible using pymssql or something else? I have been
searching around the documentation and haven't found anything. Thanks
for the help.
Hello all.
I'm creating a CMS/e-commerce Django project for a client which will
ultimately be used to handle content for three different domains.
In terms of sharing of resources:
- content will not be shared between sites
- public templates will differ between sites
- the administration interfa
Hi all :
I am newbie in django world. I developed an application not using
admin model
with version 0.96 and using postgresql as RBDMS .-
I wish that all users will use my django application log into
postgres
database with your own user ( obviously these accounts will be
created )
instead user def
Has anyone run into errors with the paginator.has_next_page function?
It seems to be returning false even though I am certain that there's a
next page.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
Not a dumb question, but one that has been answered in the Django
docs. Have a look at http://www.djangoproject.com/documentation/db-api/#isnull
It sounds like you want:
Year.objects.filter(event__isnull=False)
- Robin
On Apr 24, 11:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I'll a
Stupid Google groups seems to have trashed my last response, now I
have to type it all in again. Apologies if this is a duplicate.
Anyway, for one explanation, see description on access rights of
Apache user in mod_wsgi documentation at:
http://code.google.com/p/modwsgi/wiki/ApplicationIssues
On Apr 24, 5:41 am, kamil <[EMAIL PROTECTED]> wrote:
> Hi. I'm using developement built-in django server.
> Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) [GCC 4.1.2
> (Ubuntu 4.1.2-0ubuntu4)] on linux2
> on fresh Kubuntu Feisty (7.04)
>
Kamil,
I'm assuming you're just running "python
On Tue, 2007-04-24 at 10:49 -0700, Jeremy Teale wrote:
> I'm struggling with the template system.
>
> I have a Display model. This model will render its elements, which are
> of different model types. They are of type Addressbook, Schedule,
> Whiteboard, and so on.
>
> I'm trying to figure out h
On Tue, 2007-04-24 at 15:21 +, Ryan Kanno wrote:
> I'm just curious if named URL patterns will be able to use the prefix
> given (or if there's any reason not to) ie,
>
> urlpatterns += patterns('my_pattern',
> url(r'^(?P[\d]+)/$', 'details',
> name="my-detai
I think everything could be accomplished by creating a separate
settings.py file for each site, and pointing to them in your virtual
hosts. By installing your apps outside the project dirs, but still in
the PYTHON_PATH, you can refer to the same app dirs in all settings
files. The only problem I
It isn't immediately available through the django setup - it expects that
all accesses to the database from any given application will happen from a
single userid that you (typically) specify in settings.py.
There's nothing from stopping you opening your own cursors and doing what
you want with ot
On Apr 24, 5:59 pm, Nick Tidey <[EMAIL PROTECTED]> wrote:
> Thanks for the help Robin. I'm new to Python also, so wasn't too sure
> about how to reuse the apps.
>
> I'll see if I can't use triggers to propagate the user information
> between databases. Unless there's a better way?
>
You could ins
On 4/24/07, Jason McVetta <[EMAIL PROTECTED]> wrote:
> Ben posted patches for the management shell and for mod_python. The case
> where I am experiencing this bug is running a script from the command line
> (or from cron). I tried including his work around code
...
> at the beginning of my scrip
Not sure which is the culprit but I am trying to setup mod_python with
apache on my vista home
computer. When I tried and access http://localhost/mysite I always get
404 error. Looking at the logs it is expecting mysite to be under C:/
Program Files/Apache Group/Apache2/htdocs
even though I have m
Hello,
For one of my models, I did the following thing :
"""
Civil state
"""
class Civilstate(models.Model):
CIVILITY_CHOICES = (
('single', 'Célibataire'),
('taken', 'Marié'),
)
who = models.ForeignKey(User, unique=True,
verbose_name='Personne', edit_inline=models
> cursor.execute("""
> SELECT sports_players.city_id, sports_players.team_id,
> count(sports_players.team_id) FROM sports_players,
> sports_mastercitylist
> WHERE sports_players.city_id=sports_mastercitylist.id
> AND sports_mastercitylist.cityslug = %s
>
On Tue, 2007-04-24 at 21:06 +1200, Enrico de Klerk wrote:
> Hi there,
>
> I've noticed a possible race condition in django/db/models/base.py.
>
> When a file field is saved in the _save_FIELD_file function it first
> checks whether a file with the same name already exists, and then adds
> unders
> I have queryset=Year.objects.all()
>
> But I want to limit that years in which event is not Null.
>
> I'm assuming I want something like Year.objects.filter(event != Null)
I presume you mean
Year.objects.filter(event__isnull = False)
which you can read about at
http://djangoproject.com
Sanjaya performs Besame Mucho on Live with Regis and Kelly
http://funnyvideoz.teenwag.com/showvideo/4718
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
I'm just curious if named URL patterns will be able to use the prefix
given (or if there's any reason not to) ie,
urlpatterns += patterns('my_pattern',
url(r'^(?P[\d]+)/$', 'details',
name="my-details"),
Right now, I have to pass into url the following:
url
I like more your aproach (because mix more naturaly with Django I
think)... The code look good but the comments...if my english
is bad my russian is inexistent!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hello list,
I was wondering if someone can provide some insight into how django
interacts with memcached. More specifically, how it interacts with
multiple memcached instances.
My settings.py has this in it:
CACHE_BACKEND = 'memcached://
10.1.1.1:11211;10.1.1.2:11213;10.1.1.3:11213/'
I'm assum
I'll apologize in advance, as I just know this is a dumb question...
I have queryset=Year.objects.all()
But I want to limit that years in which event is not Null.
I'm assuming I want something like Year.objects.filter(event != Null)
but I'm unsure about the syntax.
--~--~-~--~~--
Thanks for the help Robin. I'm new to Python also, so wasn't too sure
about how to reuse the apps.
I'll see if I can't use triggers to propagate the user information
between databases. Unless there's a better way?
On Apr 25, 3:02 am, robin_percy <[EMAIL PROTECTED]> wrote:
> I think everything co
Please see the solution in my blog :
http://pragmaticobjects.org/index.php?itemid=23
Let me know if that doesn't work for you.
Kevin Hoang Le
On Apr 11, 4:39 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 4/11/07, jeffhg58 <[EMAIL PROTECTED]> wrote:
>
> > The only problem I am having is w
[EMAIL PROTECTED] wrote:
> cursor.execute("""
> SELECT sports_players.city_id, sports_players.team_id,
> count(sports_players.team_id) FROM sports_players,
> sports_mastercitylist
> WHERE sports_players.city_id=sports_mastercitylist.id
> AND sports_maste
I have a model defined with a ForeignKey that points to another model
in a different installed app. select_related() does not seem to follow
the relationship and retrieve the additional object data in a single
database query with additional join statements. (I inspected the 'sql'
item in the appro
Hi guys!
I have the following models:
class Product(models.Model):
data = models.TextField()
class Admin:
pass
class Photo(models.Model):
product = models.ForeignKey(Product, edit_inline=models.TABULAR)
file = models.ImageField(upload_to='', core=True)
descriptio
Hi guys!
I have the following models:
class Product(models.Model):
data = models.TextField()
class Admin:
pass
class Photo(models.Model):
product = models.ForeignKey(Product, edit_inline=models.TABULAR)
file = models.ImageField(upload_to='', core=True)
descriptio
On Apr 24, 10:58 am, Moses Ting <[EMAIL PROTECTED]> wrote:
> Hello DJ Users,
>
> I'm trying to write a generic template where I can auto-populate a
> html table depending on which model I use. So for example the view
> does something like this:
>
> def genericView(request, model):
> contex
Thanks Robin, I checked my permissions and they were messed up.
Does any one have any idea what that error is from. I am at work
right now, but tonight I am going to dig in and see if I can find it,
but if anyone has any ideas they would be much appreciated.
Thanks
Craig
--~--~-~--~--
On Apr 24, 9:22 pm, Filipe Correia <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I think the following thread may help
> you:http://groups.google.com/group/django-users/browse_frm/thread/22a6d00...
Except that no one has still yet explained why the page:
http://www.djangoproject.com/documentation/modp
[EMAIL PROTECTED] wrote:
> Mr. Fordham, if you are ever within 500 miles of St. Petersburg
> Florida, I owe you beer or dinner or my firstborn or something. That
> tiny little change is all I needed. It works. Thank you so much for
> your help.
>
I actually live w/in 500 miles (Savannah, Ga) bu
On 4/24/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> I now have to sit down and work out a proper solution. That will take
> time and I don't have that at the moment because I have other
> priorities. Of course, anybody else should feel free to dive in and
> write a fix, too, but that hasn
I'm struggling with the template system.
I have a Display model. This model will render its elements, which are
of different model types. They are of type Addressbook, Schedule,
Whiteboard, and so on.
I'm trying to figure out how I can loop in the Display template and
call each element's respect
On Apr 24, 9:14 am, "Craig Kuhns" <[EMAIL PROTECTED]> wrote:
> Does any one have any idea what that error is from. I am at work
> right now, but tonight I am going to dig in and see if I can find it,
> but if anyone has any ideas they would be much appreciated.
>
Craig,
It sounds like the bug
On Apr 22, 7:33 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Can you post the exact code throwing the error, and copy paste your
> exact model code related to the error?
The code is exactly the same as I wrote in my OP.
# models.py
from django.db import models
# Create your models here
On 4/24/07, robin_percy <[EMAIL PROTECTED]> wrote:
>
> What about doing both? Write a pre_save record indicating the
> operation about to be attempted. And a post_save indicating the
> success of the operation, using a unique identifier to identify the
> pair. Then if the post_save gets out of s
Hi all :
I am newbie in django world. I developed an application not using admin model
with version 0.96 and using postgresql as RBDMS .-
I wish that all users will use my django application log into postgres
database with your own user ( obviously these accounts will be created )
instead user
El mar, 24-04-2007 a las 14:28 +1000, Malcolm Tredinnick escribió:
> On Mon, 2007-04-23 at 17:26 +0100, Christian Markwart Hoeppner wrote:
> > El lun, 23-04-2007 a las 21:22 +1000, Malcolm Tredinnick escribió:
> > > On Mon, 2007-04-23 at 12:17 +0100, Christian Markwart Hoeppner wrote:
> > > > Hi t
Mr. Fordham, if you are ever within 500 miles of St. Petersburg
Florida, I owe you beer or dinner or my firstborn or something. That
tiny little change is all I needed. It works. Thank you so much for
your help.
Matt
On Apr 24, 12:15 pm, "Bryan L. Fordham" <[EMAIL PROTECTED]>
wrote:
> [EMAIL PRO
That is abysmal performance, though. If your dev server performs okay
(i.e. it is not the way you have written your index view) you should
probably look for another provider.
-rob
On Apr 24, 6:44 am, Roboto <[EMAIL PROTECTED]> wrote:
> RESOLVED.
>
> I am on Shared Hosting with GrokThis.Net. Th
Has anyone given this a try yet? Does it work well?
On Apr 23, 8:50 pm, PyScripter <[EMAIL PROTECTED]> wrote:
> PyScripter is a free and open-source Python Integrated Development
> Environment (IDE). The recently released version 1.8.5 supports the
> debugging of django applications. You can do
Just when I was getting comfortable with simple views and templates,
I've walked into a wall on my first attempt to do something more
complicated. Any help anyone can give me will have my undying respect.
Let's say my application is a site for youth sports. I have a table of
cities, teams and pla
Hi,
I think the following thread may help you:
http://groups.google.com/group/django-users/browse_frm/thread/22a6d00972359381/
Cheers,
Filipe
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
RESOLVED.
I am on Shared Hosting with GrokThis.Net. The issue is, Debian
organizes the most used processes in cache and keeps the least used
out of it. When the site gains a lot of activity the site moves
relatively quick, when there are no hits for hours Linux has to fetch
my stuff and it take
good news,first heard of it
2007/4/24, PyScripter <[EMAIL PROTECTED]>:
>
>
> PyScripter is a free and open-source Python Integrated Development
> Environment (IDE). The recently released version 1.8.5 supports the
> debugging of django applications. You can download this version from
> http://py
hi rob,
i think you are on to something there. i should familiarise myself
more with reg ex, certainly one of my weaknesses. basically what we
want to match on is anything from the root_uri ("/") to the end of the
path. so about/mydir/user1/ would be passed to our view for
munging.
i kind of
Hi. I'm using developement built-in django server.
Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) [GCC 4.1.2
(Ubuntu 4.1.2-0ubuntu4)] on linux2
on fresh Kubuntu Feisty (7.04)
On Apr 23, 4:01 pm, Michael K <[EMAIL PROTECTED]> wrote:
> On Apr 22, 4:38 pm, kamil <[EMAIL PROTECTED]> wrote:
>
Hi there,
I've noticed a possible race condition in django/db/models/base.py.
When a file field is saved in the _save_FIELD_file function it first
checks whether a file with the same name already exists, and then adds
underscores to the filename until it generates a unique name and then
saves th
Simon, thanks for this post, it is beautifuly succint and
comprehensive and is exactly what I was after. It has also enabled me
to clean up my code, if I pickle all the date, I don't need to create
a dynamic field form object, 2 fields are all that are required (as
SmileyChris pointed out). A muc
Simon Willison wrote:
> Hi all,
>
> I've just released the first version of an OpenID consumer package for
> Django. The idea is to make it ridiculously easy to add OpenID
> consumer support to any Django application - and hence allow users of
> OpenID to sign in without having to set up a new us
Link Direct to Order Pagejavascript and html available
http://www.jdoqocy.com/placeholder-2056041?target=_top&mouseover=N
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Link Direct to Order Pagejavascript and html available
http://www.jdoqocy.com/placeholder-2056041?target=_top&mouseover=N
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
62 matches
Mail list logo