The first alpha preview package for Django 1.2 is now available.
* Release notes: http://docs.djangoproject.com/en/dev/releases/1.2-alpha-1/
* Download instructions: http://www.djangoproject.com/download/
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--
You r
On Tuesday 05 January 2010 21:01:44 Karen Tracey wrote:
> ...
> Change this to return unicode(self.coupleid)
>
Thanks!
signature.asc
Description: This is a digitally signed message part.
Thank you very much Russ. I thought I was doing something weird, but I
wasn't sure (I'm very new to Django). I'll give it a shot.
-AM
On Jan 5, 10:38 pm, Russell Keith-Magee
wrote:
> On Wed, Jan 6, 2010 at 11:13 AM, Aristotle Miternan
>
>
>
>
>
> wrote:
> > Hello Karen,
>
> > Here is a minimal
On Wed, Jan 6, 2010 at 11:13 AM, Aristotle Miternan
wrote:
> Hello Karen,
>
> Here is a minimal example of what I am trying to do. I am trying to
> have a save/load functionality before a user posts their information.
> This gives me an UnresolvableValidationError because the id of the
> model is
Hello Karen,
Here is a minimal example of what I am trying to do. I am trying to
have a save/load functionality before a user posts their information.
This gives me an UnresolvableValidationError because the id of the
model is undefined when I call is_valid(). I tried a workaround by
doing: def fu
INSERT INTO table (col1,col2) SELECT col1,col2 FROM table2
is what i'm trying do, copy some columns from one table to one in
django, i get constraints failed
i made a test db and tested this and worked, copied the two columns to
another table fine, also tried recreating the model w/ blank=true an
I'm having difficulty deserializing a json object. I'm using django
appengine patch, so the models aren't the same as django's, but they
are very similar:
class Cust(db.Model):
custno = db.StringProperty(required=True)
company = db.StringProperty(required=True)
contact = db.StringPrope
I already searched the group and found one subject that sounds related
(Google-style API keys, I believe was the name of it), but I wanted to
do something specific and was wondering if anyone can give pointers in
the appropriate direction.
I'm building a site, the backend API managed via Django, t
On Tue, Jan 5, 2010 at 8:41 PM, Aristotle Miternan wrote:
> Oops, taking a second look, I think you are right, the object I was
> using to test that had its __unicode__ method calling something that
> shouldn't exist yet. I guess this example was not complex enough.
>
> However, I think that I hav
On Tue, Jan 5, 2010 at 8:32 PM, E. Hakan Duran wrote:
>def __unicode__(self):
>return self.coupleid
> ---
>
>
Change this to return unicode(self.coupleid)
Karen
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this gr
I'm having difficulty deserializing a json object. I'm using django
appengine patch, so the models aren't the same as django's, but they are
very similar:
class Cust(db.Model):
custno = db.StringProperty(required=True)
company = db.StringProperty(required=True)
contact = db.StringPrope
Oops, taking a second look, I think you are right, the object I was
using to test that had its __unicode__ method calling something that
shouldn't exist yet. I guess this example was not complex enough.
However, I think that I have figured out the problem. Model validation
was introduced in the la
Hi all,
I am just following the tutorial with minimal coding
skills/knowledge.
I have a models.py file part of which is shown below:
---
# -*- coding: utf-8 -*-
from django.db import models
import datetime
# Create your models here.
class Couple(models.Model):
coupleid = models.AutoFie
Hello All,
I have recently run into a very weird internet explorer problem. I
cannot enter any of my text input boxes unless I carefully hover my
mouse near the top or bottom edge of the field. The cursor does not
change until I get to the very top of the field. It works fine in all
other browsers
If you use django's orm, maybe you can check their document at its website.
2010/1/6 Geobase Isoscale
> Hi all,
>
> I have a Django extension that enables me to call predefined PostgreSQL
> functions from the database. I would like to know how to display on the
> browser the error message gotte
Or maybe I should use separate projects for docs.slownik.pl and
www.slownik.pl. The problem is that they share a lot of data so I'd
need to have three DB's:
- models specific to docs.slownik.pl
- models specific to www.slownik.pl
- models shared between those two projects
The first two are done
For several months, we have been caching views using the URLconf
method (urls.py). An entry from urls.py is below as an example:
url(r'^(?P.*)/content/(?P[-\w]+)/$$', cache_page
(hierarchies.views.category_content_detail, CACHE_TIMEOUT),
name='category_content_detail'),
Recently, we had a need to
On Jan 5, 11:12 pm, Daniel Hirsch wrote:
> Hi everyone,
>
> We just launched our first django application into production and my
> server admin is hounding me about its security. He claims that python
> is vulnerable to scripting by the URL, which I quite honestly have no
> clue about.
>
> So, my
On Jan 5, 5:16 pm, pjmorse wrote:
> I recently picked up a Django project from another developer, and I
> seem to have introduced an annoying bug.
>
> It's a multi-language site: US, UK, DE. (Why US and UK are considered
> different languages is organizational politics beyond the scope of my
> wor
Hi everyone,
We just launched our first django application into production and my
server admin is hounding me about its security. He claims that python
is vulnerable to scripting by the URL, which I quite honestly have no
clue about.
So, my question to you is two-fold:
1 - What are the likely an
2010/1/5 datta :
> Hi,
>
> Is there a setting/module that helps me to achieve data level access
> control in a web application.
There are a number of projects that are looking at row-level access control:
http://nomadblue.com/blog/django/django-rbac/
http://opensource.washingtontimes.com/projects
On Jan 5, 10:02 pm, Sheol wrote:
> Suppose I have a set of small applications.
> I want these on a side panel.
> Then I have the main area that is a blogging application.
> What is the proper way to place all these applications on the same
> page?
>
> A new app for the page that imports the other
> They share data but have separate databases?
They share some data, but they have their own models.
For example Library and Bookstore may share models like Book, Author,
ISBN, list of countries and locales in which the book could be
published in.
But they also have their custom models, Library
Suppose I have a set of small applications.
I want these on a side panel.
Then I have the main area that is a blogging application.
What is the proper way to place all these applications on the same
page?
A new app for the page that imports the other apps?
A set of template variables?
--
You rece
Hi all. I want to create a trigger in a PostgreSQL database table. I use
a cursor.execute(sql) statement in a management.py file at my app folder.
But I've got the error: "IndexError: tuple index out of range" becouse
of an '%' character in the format of a PostgreSQL Raise Exception statement
Thanks for all the replies. I will try some test runs tonight :).
Things which are easy for gurus like you take a while for me to grasp
and get comfortable at :).
2010/1/5 Kevin Teague :
> The keyring library provides an easy way of using passwords stored
> securely in your Keychain|Wallet|Keyring
Hi,
Is there a setting/module that helps me to achieve data level access
control in a web application.
For example, if I have a sales app, the leads created by one user
should not be visible to the other. Also, I should be able to create
sales hierarchies ( agents attached to managers, managers r
Hey,
My question is probably very simple. Below, my simplified model :
I have a table of stock items in stock (item_code, item_title,
property1, property2, storeroom, quantity_available)
I have a table listing transaction of items (transaction_id,
item_code, transaction_type, transaction_quantity
hey all,
pitchfork media is looking to add another django developer. below is
the official job description -- if you're interested, pls respond to
ma...@pitchfork.com.
Company Profile:
Pitchfork is the essential guide to independent music and beyond.
http://pitchfork.com/
Location:
Chicago, IL
Yeah - I just realised there's a group specifically for django-
reversion so I requested to join the group.
Thanks
On Jan 5, 3:09 pm, Andy McKay wrote:
> On 10-01-05 12:00 PM, Stodge wrote:
>
> > Does a Revision instance represent a snapshot of the database or the
> > state of a single object?
>
On 10-01-05 12:00 PM, Stodge wrote:
Does a Revision instance represent a snapshot of the database or the
state of a single object?
As far as I remember: the state of a single object, however you'd likely
be best starting a new thread on the specific Django reversion thread
and issues rather t
Thanks. I already got django-reversion working but I hit a strange
quirk that I didn't understand.
I'll post the quirk here to see if you can help make sense of it all
I did the equivalent of this for my model:
version = Version.objects.get_for_date(your_model, datetime.datetime
(2008, 7, 10))
On 10-01-05 11:54 AM, Stodge wrote:
I'm trying to use the Historical Records feature from Marty Alchin's
"Pro Django" book, but it's not working for me when my model has two
foreign keys to users. I'm getting
Accessor for field 'owner' clashes with related field Add a
related_name argument
I'm trying to use the Historical Records feature from Marty Alchin's
"Pro Django" book, but it's not working for me when my model has two
foreign keys to users. I'm getting
Accessor for field 'owner' clashes with related field Add a
related_name argument to the definition for 'owner'. etc
It
On 5 Sty, 19:11, Matthias Kestenholz
wrote:
> 2010/1/5 Tomasz Zieliński :
>
>
>
>
>
>
>
> > On 5 Sty, 18:16, pjmorse wrote:
>
> >> This is done by looping over the list of languages and saving a
> >> NewsTrans in each language. The source language is marked as already
> >> translated, the other
On Jan 5, 2:29 pm, Karen Tracey wrote:
> On Tue, Jan 5, 2010 at 2:22 PM, Patrick May wrote:
>
>
>
> > On Jan 5, 2:18 pm, Karen Tracey wrote:
> > > On Tue, Jan 5, 2010 at 1:55 PM, Patrick May > >wrote:
>
> > > > I’m running Django using mod_wsgi under Apache. I’m
> > > > trying
On Tue, Jan 5, 2010 at 2:22 PM, Patrick May wrote:
> On Jan 5, 2:18 pm, Karen Tracey wrote:
> > On Tue, Jan 5, 2010 at 1:55 PM, Patrick May >wrote:
> >
> > > I’m running Django using mod_wsgi under Apache. I’m
> > > trying to write messages to the Apache error log with:
> >
> >
On Jan 5, 2:18 pm, Karen Tracey wrote:
> On Tue, Jan 5, 2010 at 1:55 PM, Patrick May wrote:
>
> > I’m running Django using mod_wsgi under Apache. I’m
> > trying to write messages to the Apache error log with:
>
> > sys.stderr.write(‘Message…’)
>
> > but for some r
On Tue, Jan 5, 2010 at 1:55 PM, Patrick May wrote:
> I’m running Django using mod_wsgi under Apache. I’m
> trying to write messages to the Apache error log with:
>
>
>
> sys.stderr.write(‘Message…’)
>
>
>
> but for some reason they don’t appear. This is under OS
On Jan 5, 11:00 am, Zbigniew Braniecki
wrote:
> I'm trying to set up a web project that will use multiple vhosts.
> ...
> Now, there are several apps in this project: - browser, docs, api.
> They share the same data, but they are different "views".
>...
>
> AFAIK it should use Book class but wil
I'm running Django using mod_wsgi under Apache. I'm trying to
write messages to the Apache error log with:
sys.stderr.write('Message...')
but for some reason they don't appear. This is under OS X (Snow Leopard). Do
I have to configure something in httpd.conf t
I have a site built with Django, we're switching things up and will be
running ExpressionEngine as our main CMS for the "front-end" /
marketing piece of our site. We will have two Django apps running
elsewhere on the site, one is a Course Management Software we built in
house, the other is an onlin
The keyring library provides an easy way of using passwords stored
securely in your Keychain|Wallet|Keyring. I use it and it works Very
Nicely(TM):
http://pypi.python.org/pypi/keyring
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
On 4 Sty, 07:30, Sam Walters wrote:
> Hi Tomasz
> Yes, i have followed a raw sql approach now im looking at my test data
> to see which objects have multiple rows and cleaning that up.
>
> Its a shame that '__in' has limited use under these scenarios:
>
> directories = search_querySet.distinct()
Alright, thanks Daniel.
On Jan 5, 1:12 am, Daniel Roseman wrote:
> On Jan 4, 11:40 pm, David wrote:
>
> > I have a QuerySet of Books, and I want to create an Action for each
> > Book in that QuerySet. I want to avoid evaluating the Books QuerySet,
> > but the only way I can think of doing what I
2010/1/5 Tomasz Zieliński :
>
>
> On 5 Sty, 18:16, pjmorse wrote:
>>
>> This is done by looping over the list of languages and saving a
>> NewsTrans in each language. The source language is marked as already
>> translated, the other two are not (that is, they still need
>> translating).
>>
>> The
On 5 Sty, 17:49, Eric Chamberlain wrote:
> There's nothing special about settings.py. You could do something like:
>
> from Crypto.Cipher import Blowfish
>
> blowme = Blowfish.new(SECRET_KEY)
> DATABASE_PASSWORD = blowme.decrypt(ENCRYPTED_PASSWORD)
>
> Securing SECRET_KEY is left as an exercise
On 5 Sty, 18:16, pjmorse wrote:
>
> This is done by looping over the list of languages and saving a
> NewsTrans in each language. The source language is marked as already
> translated, the other two are not (that is, they still need
> translating).
>
> The problem is that this is done with ns.sa
I recently picked up a Django project from another developer, and I
seem to have introduced an annoying bug.
It's a multi-language site: US, UK, DE. (Why US and UK are considered
different languages is organizational politics beyond the scope of my
work.) When a "news article" is created, its body
On Tue, Jan 5, 2010 at 12:01 PM, Karen Tracey wrote:
>
> More info that might be a clue: if I telnet to blog.corbe.net 80 and type
> in GET /, I get a page in response. But that isn't exactly what the browser
> is sending, it sends (probably) GET / HTTP/1.1. Adding the HTTP spec after
> the GET
I think jsgantt will be my choice !
Thanks!
On Tue, Jan 5, 2010 at 8:00 AM, Waqqas Jabbar wrote:
> http://code.google.com/p/django-graphviz/
>
>
> On Mon, Jan 4, 2010 at 9:42 PM, Hinnack wrote:
>
>> what about:
>> http://matplotlib.sourceforge.net/
>>
>> --
>> Hinnack
>>
>> 2010/1/4 Daniel Hilto
Hello django-users
I try to make a part of my website downloadable. Namely it's a wiki-like
app for documentation of an open source project, for which I would like
to offer downloadable copies. How would I pack a part of my app into a
zipfile/tarfile?
What I tried so far is just render the p
I am not sure about your wsgi Script alias ending in a '.py'. I also don't
see the directory of the wsgi script being set with the apache directive
Here is mine:
NameVirtualHost *:80
ServerName www.my-website-domain.com
DocumentRoot "/usr/local/www/apache22/data"
WSGIDaemonProcess www.my-w
On Tue, Jan 5, 2010 at 11:39 AM, dcorbe wrote:
> Hi,
>
> I've tried the (relatively straight-forward-looking) steps to get
> django and mod_wsgi working together with little success thus far.
> I'm trying to run a simple django application from my Apache web
> server. The documentation doesn't m
I'm trying to set up a web project that will use multiple vhosts.
In particular, I have a project called "slownik" and a domain
"slownik.pl".
Now, there are several apps in this project: - browser, docs, api.
They share the same data, but they are different "views".
Now, the common way in django
There's nothing special about settings.py. You could do something like:
from Crypto.Cipher import Blowfish
blowme = Blowfish.new(SECRET_KEY)
DATABASE_PASSWORD = blowme.decrypt(ENCRYPTED_PASSWORD)
Securing SECRET_KEY is left as an exercise for the reader.
On Jan 5, 2010, at 11:10 AM, Eyüp Hak
Hi,
I've tried the (relatively straight-forward-looking) steps to get
django and mod_wsgi working together with little success thus far.
I'm trying to run a simple django application from my Apache web
server. The documentation doesn't make it clear whether user= and
group= needs to be set to the
I found a solution for the problem i'd described in
http://groups.google.com/group/django-users/t/4cf5bd195cd0ebac?hl=en
You can get an output without the keywords and parenthesis if you
change the method like this:
def get_authors(self):
return '%s' % (', '.join(a.name for a in self
Hi all,
I have a Django extension that enables me to call predefined PostgreSQL
functions from the database. I would like to know how to display on the
browser the error message gotten from the database when one enters invalid
data into the database.
Many Thanks
Isoscale
--
You received this
where will the cookie reside?
it's not the users side since all oauth communication is between me and
twitter.
I could try to keep the secret or both(secret and token) in the session ,
but is there a different session for each user.
is a django session defined for each connection to the application
Your settings.py file is only readable by people who have access to your
server. If that's the case, they're either trusted or you have much bigger
problems.
The file should never be exposed to the Internet (or intranet, for that matter).
Shawn
--
You received this message because you are sub
Hi all,
I am very new to django so please be gentle with me. I understand that
we need to define the password to login to the database in the
settings.py file. Although I know one can set the permissions of this
file to be not readable by others, I was just wondering whether there
is another optio
On Tue, Jan 5, 2010 at 8:29 AM, hackndoes wrote:
> I am using the oauth-python-twitter from google code to establish
> oauth authentication with twitter from my django app.
> I don't use django oauth application as part of my solution cause i
> have no need, i only need a thin use of oauth to mak
On Jan 5, 2:24 pm, Bill Freeman wrote:
> On Mon, Jan 4, 2010 at 11:00 PM, Marc Aymerich wrote:
> > class user(models.model):
> > person = models.OneToOneField(person)
>
> I presume that you meant:
>
> person = models.OneToOneField(employee)
>
> Is so, then greatlemer's method will work.
Sorry, I completely missed the part of the question where you said you wanted
to do it in the Django Admin. That I don't know about.
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@google
If you change this:
media=models.ForeignKey(Media)
to this:
media=models.ForeignKey(Media, related_name = 'media_translations')
in your MediaTranslations model, then you can filter your Media queryset by
referring to its media_translations.
Example:
media.objects.filter(media_translations__la
Hi Django Users,
how do I filter the 'backwards' part of a foreign key in the admin?
I have two Models: Media and MediaTranslation. MediaTranslation has a
ForeignKey
to Media (I included the Model definitions below).
I want to filter Media objects that have (or don't have) a title in a
certa
I am using the oauth-python-twitter from google code to establish
oauth authentication with twitter from my django app.
I don't use django oauth application as part of my solution cause i
have no need, i only need a thin use of oauth to make a user of my app
a follower of my twitter account.
it's
Can you make it fail in the development server, with DEBUG turned on?
If so, you can get more helpful error display and/or do pdb.set_trace() and
poke around.
I'll give that a try, thanks!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
Assuming the code you've posted is a real cut and paste, you have
"HTTPResponse" for POST but "HttpResponse" for GET. Python is case-
sensitive, so only "HttpResponse" will work.
Thanks, that was it. Are errors like that written to a log file anywhere?
Thanks again,
Patrick
--
You received
On Mon, Jan 4, 2010 at 11:00 PM, Marc Aymerich wrote:
> class user(models.model):
> person = models.OneToOneField(person)
I presume that you meant:
person = models.OneToOneField(employee)
Is so, then greatlemer's method will work.
Or, especially if you will have use for the employee
On Tue, 2010-01-05 at 04:17 -0800, bruno desthuilliers wrote:
>
> On 5 jan, 00:05, HARRY POTTRER wrote:
> > I have an class that I created which takes a queryset, and a field on
> > the model that the queryset represents. Like this:
> >
> > mc = MyClass(queryset=MyModel.objects.all(), lat_lng_fie
On Jan 5, 1:20 pm, Stodge wrote:
> Some of my objects have optional datetime fields and in one particular
> case I want to select only those objects with no datetime set. But how
> do I do this? I can't see anything in the docs. Any suggestions
> appreciated. Thanks
http://docs.djangoproject.com/
Hi!
thanks for replying, I think that will get the things done :)
On Jan 4, 4:41 pm, Daniel Roseman wrote:
> On Jan 4, 4:28 pm, bluellyr wrote:
>
> > Hi!
>
> > I'm using the Django 1.0.2 and trying to connect to a diferent
> >databasename using the subdomain by reference,
> > when I accesshttp
Some of my objects have optional datetime fields and in one particular
case I want to select only those objects with no datetime set. But how
do I do this? I can't see anything in the docs. Any suggestions
appreciated. Thanks
--
You received this message because you are subscribed to the Google G
Thanks Russell Magee for your detailed and timely help.
I switched to the production version on MySQLdb and now I can run
from MySQLdb.converters import conversions
In the rev 635 I could not run this without getting an error.
So now I can start my server with the database settings and loading of
I am sorry I get the same error even If I put the 'ENGINE':'mysql'
in the settings.py .
Hari
On Jan 5, 1:12 pm, Marc Aymerich wrote:
> On Tue, Jan 5, 2010 at 8:38 AM, harijay wrote:
> > Hi I just started using the subversion build of django and mysql-
> > python with python 2.6.3
> > Both djang
I get the same error if I put just 'mysql'; in the ENGINE setting. So
the backend does not start if the 'ENGINE' filed has 'mysql' or
'django.db.backends.mysql'
So any ideas why this is the case
hari
On Jan 5, 1:12 pm, Marc Aymerich wrote:
> On Tue, Jan 5, 2010 at 8:38 AM, harijay wrote:
> > H
On 5 jan, 00:05, HARRY POTTRER wrote:
> I have an class that I created which takes a queryset, and a field on
> the model that the queryset represents. Like this:
>
> mc = MyClass(queryset=MyModel.objects.all(), lat_lng_field='lat_lng')
>
> The class basically filters the queryset based on some
:D
2010/1/5 E. Hakan Duran
> On Monday 04 January 2010 23:54:13 Marc Aymerich wrote:
> > ...
> > take a look at middle_initial of woman class ;)
>
> Thank you very much for the fast and accurate response. Now it worked
> without
> problem.
>
--
You received this message because you are subscrib
Thank you very much, it worked. Here's the code...:
def businessnamesearch_view(request):
search = request.GET.get('business')
business = Business.objects.filter(business__icontains=search)
return render_to_response('portal/business_list.html',
{'object_list
On Tue, Jan 5, 2010 at 5:52 PM, Aristotle Miternan wrote:
> Hello everyone,
>
> The latest update to django 1.2 broke my code and I'm hesitant to
> post it as a bug when I'm not sure if there's a core concept that
> changed that I don't get.
>
> I noticed that I am no longer able to do this:
>
On Tue, Jan 5, 2010 at 3:38 PM, harijay wrote:
> Hi I just started using the subversion build of django and mysql-
> python with python 2.6.3
> Both django (svn 12103) and _mysql (MySQLdb rev 635) work fine and can
> be imported from the command line python without any error messages.
> I created
On Tue, Jan 5, 2010 at 4:12 PM, Marc Aymerich wrote:
>
>
> On Tue, Jan 5, 2010 at 8:38 AM, harijay wrote:
>>
>> Hi I just started using the subversion build of django and mysql-
>> python with python 2.6.3
>> Both django (svn 12103) and _mysql (MySQLdb rev 635) work fine and can
>> be imported fr
Hello everyone,
The latest update to django 1.2 broke my code and I'm hesitant to
post it as a bug when I'm not sure if there's a core concept that
changed that I don't get.
I noticed that I am no longer able to do this:
class Foo(models.Model):
foo = models.CharField(max_length=30
On Jan 5, 3:27 am, GoSantoni wrote:
> Hey Daniel,
>
> Thanks for response, as always helpful and quick. Like you suggested I
> changed the fields to the class. This resulted in a error because
> BlogForm could not be found. So I decided not to bother the photologue
> model but import the Images in
On Jan 5, 5:24 am, Delacroy Systems wrote:
> I want to allow a user to search for a value and return the results
> using the object_list generic view. How can I get this working?
>
> business_search.html:
> {% block content %}
>
> Business name:
>
> {% end
On Jan 4, 11:40 pm, David wrote:
> I have a QuerySet of Books, and I want to create an Action for each
> Book in that QuerySet. I want to avoid evaluating the Books QuerySet,
> but the only way I can think of doing what I want to do evaluates it.
> For example,
>
> def create_actions(books, action
On Tue, Jan 5, 2010 at 8:38 AM, harijay wrote:
> Hi I just started using the subversion build of django and mysql-
> python with python 2.6.3
> Both django (svn 12103) and _mysql (MySQLdb rev 635) work fine and can
> be imported from the command line python without any error messages.
> I created
On Jan 5, 7:09 am, greatlemer wrote:
> On Jan 5, 4:00 am, Marc Aymerich wrote:
> You want to use filter [1] with something like:
> user.objects.filter(employee__company__name='companyname')
>
>
> [1]http://docs.djangoproject.com/en/dev/topics/db/queries/#retrieving-sp...
> --
>
Or simply us
90 matches
Mail list logo