On Fri, May 22, 2009 at 7:23 AM, eightflower wrote:
>
> It appears that {% thumbnail %} tag from sorl-thumbnail app is causing
> this. When my context processor is off,
> thumbnail just does not have anything to do because it has no context.
> >
>
Are the image tags
On May 22, 4:33 pm, "R. Gorman" wrote:
> You are correct in your understand that .is_valid() returns False if
> the data is invalid. Are you sure you are not processing data
> irrespective of whether the data validated or not? A little more
> detail on how your processing
On Sat, May 23, 2009 at 11:01 AM, Alex Gaynor wrote:
>
>
> On Fri, May 22, 2009 at 9:57 PM, Low Kian Seong
> wrote:
>>
>> Dear all,
>>
>> Does anyone know what is the status of support for compound primary
>> keys in Django?
>>
>> Thanks.
>>
>> --
>>
On Fri, May 22, 2009 at 9:57 PM, Low Kian Seong wrote:
>
> Dear all,
>
> Does anyone know what is the status of support for compound primary
> keys in Django?
>
> Thanks.
>
> --
> Low Kian Seong
> blog: http://lowkster.blogspot.com
>
> >
>
Composite primary keys are
Dear all,
Does anyone know what is the status of support for compound primary
keys in Django?
Thanks.
--
Low Kian Seong
blog: http://lowkster.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
I am currently working on two different websites in django. They will
each be on their own domain when finished, and they will both have
their own auth models (to use both sites, you need an account on each
site). With that said, one of the sites will use data from the other
one, and there will
On May 22, 8:16 pm, Don Spaulding wrote:
> On May 22, 1:13 pm, Laurent Meunier wrote:
>
>
>
> > Hi list!
>
> > I'm looking for a way to have the number of objects for each date in
> > the date_list object for the generic view
On Fri, May 22, 2009 at 8:21 PM, Patrick wrote:
>
> Do I also need to use select_related() anywhere?
>
> On May 22, 5:57 pm, Alex Gaynor wrote:
> > On Fri, May 22, 2009 at 7:41 PM, George Song wrote:
> >
> > > On 5/22/2009 5:31 PM,
Do I also need to use select_related() anywhere?
On May 22, 5:57 pm, Alex Gaynor wrote:
> On Fri, May 22, 2009 at 7:41 PM, George Song wrote:
>
> > On 5/22/2009 5:31 PM, Patrick wrote:
> > > What is the best way to make queries on a manytomany table?
>
On May 22, 1:13 pm, Laurent Meunier wrote:
> Hi list!
>
> I'm looking for a way to have the number of objects for each date in
> the date_list object for the generic view date_based.archive_index.
>
> For example:
> - 2009: 12 objects
> - 2008: 10 objects
>
> I saw that
I am sure this is some very easy and simple concept I am just not
grasping. I have two views which are very similar. Both take the
same variable and iterate the applicable data. I am trying to get
them to render on the same template. However, when I create one as a
template tag and try to
On Fri, May 22, 2009 at 7:43 PM, George Song wrote:
>
> On 5/22/2009 5:07 PM, Herta wrote:
> > I want to load data to database (sqlite3 ) from file. I have already
> > connect django and my database, and build the tables but how can i
> > load data from file?
>
> What kind of
On Fri, May 22, 2009 at 7:41 PM, George Song wrote:
>
> On 5/22/2009 5:31 PM, Patrick wrote:
> > What is the best way to make queries on a manytomany table?
> >
> > Given the models below, how can I get a list of all the songs a
> > particular artist has?
> >
> > class
On 5/22/2009 5:07 PM, Herta wrote:
> I want to load data to database (sqlite3 ) from file. I have already
> connect django and my database, and build the tables but how can i
> load data from file?
What kind of files are these? If they are existing legacy data files,
you'll have to write some
On 5/22/2009 5:31 PM, Patrick wrote:
> What is the best way to make queries on a manytomany table?
>
> Given the models below, how can I get a list of all the songs a
> particular artist has?
>
> class Artist(models.Model):
> name = models.CharField(max_length=128)
>
>def
It doesn't. Why should it?
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/22 martin f krafft
> also sprach Dougal Matthews [2009.05.22.2352 +0200]:
> > Pretty must everybody does seem to use django-tagging unless they have
> some
What is the best way to make queries on a manytomany table?
Given the models below, how can I get a list of all the songs a
particular artist has?
class Artist(models.Model):
name = models.CharField(max_length=128)
def __unicode__(self):
return u'%s' %(self.name)
class
Hi, everyone,
I want to load data to database (sqlite3 ) from file. I have already
connect django and my database, and build the tables but how can i
load data from file?
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
You are correct in your understand that .is_valid() returns False if
the data is invalid. Are you sure you are not processing data
irrespective of whether the data validated or not? A little more
detail on how your processing your data might provide some insight.
R.
On May 21, 10:48 pm, Rex
As the previous post mentioned, I'm assuming that is a unix timestamp.
The module you want to use is datetime.
import datetime
mysql_date = datetime.datetime.fromtimestamp(1219848914)
mysql_date can be save directly to a datetime model field. However, if
you are wanting the date formatted as
In the admin change list view, columns that are editable have an id,
ie:
I would like to create a column where the value placed in the column
comes from a function, so I have something like this:
list_display = (other stuff ..., 'mySpecialColum')
Then in my object's admin class I define a
You can control database connections and transactions using
transaction management:
http://docs.djangoproject.com/en/dev/topics/db/transactions/
On May 22, 7:41 am, "m...@nysv.org"
wrote:
> Hi!
>
> I'm using python-processing to run things in parallell based
> on
I do not see any reason why the models you have provided would behave
in that manner. I would suggest posting the view you are using to
return the records.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
also sprach Dougal Matthews [2009.05.22.2352 +0200]:
> Pretty must everybody does seem to use django-tagging unless they have some
> special weird use-case.
>
> I've used it every time I've needed tagging and don't have a gripe with it
> yet.
So how would it find its way
On Fri, 2009-05-22 at 10:36 -0700, shadfc wrote:
> I've got a few classes that inherit from an abstract class. At some
> point, I want to check and make sure that an object is an instance of
> the base class, but this always seems to fail. I've posted what I know
> and what I think may be
Pretty must everybody does seem to use django-tagging unless they have some
special weird use-case.
I've used it every time I've needed tagging and don't have a gripe with it
yet.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/5/22 martin f krafft
hi gang i have a subclass on my form as follows:
class NewUrl (forms.Field):
def clean(self, value):
rs=WebPage.objects.filter(url_slug=value)
thislength=str(len(value))
if rs.count()!=0:
raise forms.ValidationError ('This URL is already in
use.')
Hi,
I was thinking about something like the following in urls.py :
(r'(?P\w+)', 'django.views.generic.simple.redirect_to',
{'url': Shorturl.objects.get(slug=shortcut).url }),
But I did not manage to make it work.
In the meanwhile I did this which works but I'm a little "disappointed"
If I have a form and if form.is_valid is False
The code code in the template {{ form.name.errors}} formats the error
like this.
This field is required.
How do you add an error so it gets formatted with the surrounding
html. If a user name already exists I want to add the error message
'User
also sprach Alex Gaynor [2009.05.22.1545 +0200]:
> http://jacobian.org/writing/what-is-django-contrib/ here is
> a description of what one of the core developers see as the role
> of django contrib. It should be noted that 2 of the core devs
> said at euro django con that
The default httpd.conf loaded on my CentOS server contains the
following authentication modules.
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module
On May 22, 10:59 am, Christina wrote:
> Hi all,
>
> I'm trying to set up a new Django app that will have several models
> based on existing Oracle tables. I'm running Django 1.0.2, python
> 2.5.1 and cxOracle 5.0.1.
>
> These tables are in a different schema than the
Having a lot of trouble figuring out a proper way to achieve this.. I
have an article posting app that I'm trying to use the
get_next_or_previous_by_foo methods with. I put the calls within
custom methods, get_next and get_prev so I could filter by several
attributes. I need the list that you
Hi,
I now have this exact same requirement.
Is there any development and/or any existing code/module/app that
implements sign-in using Google/Facebook/Twitter/OpenID/EmailID/UserID
something that friendfeed did just recently.
On May 5, 9:15 pm, Chris McCormick wrote:
> Hi
Hi list!
I'm looking for a way to have the number of objects for each date in
the date_list object for the generic view date_based.archive_index.
For example:
- 2009: 12 objects
- 2008: 10 objects
I saw that the generic view is using the method
mymodel.objects.dates(), maybe I can override it.
> if I start a tuple with ( ('john","adams"))
Also, this is the same as ('john', 'adams')... it is just a tuple and
not a tuple within a tuple
( ('john', 'adams'), ) (note the comma .. something of an idiom ..
parenthesis do not create the tuple but rather the comma) would be a
tuple
On Fri, May 22, 2009 at 12:13 PM, Nils-Hero wrote:
>
> 1. About the Django trac: The Register-Procedere does not work, after
> registering it sends no e-mail. It is also not possible to write
> simple messages as anonymous user, everything is said to be Spam, and
> that is
1. About the Django trac: The Register-Procedere does not work, after
registering it sends no e-mail. It is also not possible to write
simple messages as anonymous user, everything is said to be Spam, and
that is not True. Fix that!
2. Getting the Django-doc compiled with Sphinx is not possible
> I'm using the built-in password_change view. Is there an easy way to
> specify a minimum password length for the new password? (Other than
> using javascript in the template)
Well, you probably want your server-side to match whatever validation
on the client-side and you want it to work
I've got a few classes that inherit from an abstract class. At some
point, I want to check and make sure that an object is an instance of
the base class, but this always seems to fail. I've posted what I know
and what I think may be relevant below.
Is isinstance() not matching because the
thanks..no tabs for sure
On May 22, 6:40 pm, Karen Tracey wrote:
> On Fri, May 22, 2009 at 8:11 AM, vishy wrote:
>
> > Hi,
> > I am newbie at Django.I have model with a custom method.In view I am
> > retrieving a single object.See below --
> > My
Hi,
A very simple database design. Please suggest/validate.
Requirements:
Objects -
a. User
b. Categories
c. Tags
* User creates categories
* Tags are saved in categories by user
* User and Categories have many -to-many relationship
* Tags and categories have many-to-many relationship
* User
> why follow their steps? just follow the steps in the django tutorial.
+1, I say use VPS and learn unix. However, if we are talking
webfaction you will have to go the web dashboard and click things.
(yuck)
and then you will have some sort of virtual environment that is unlike
a VPS or your
Hi!
I have a fixture in json format, which I want to start using together
with my test cases.
I have deleted the data I didn't want from my development database and
have dumped the data with the following command:
manage.py dumpdata --exclude=contenttypes > myapp/fixtures/inicial.json
I can
> I meant for webfaction - I use webfaction, but do not use their django set up
> method. I set it up like I would set up django on my own box - using the
> latest svn trunk and configuring apache. It certainly doesn't take 21 minutes.
I seem to always jump in the middle of a thread and say
>
> hey sum time i get the problem when i use django
the problem is my DATABASE is getting locked...
what is this .i dont know
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Hi all,
I'm trying to set up a new Django app that will have several models
based on existing Oracle tables. I'm running Django 1.0.2, python
2.5.1 and cxOracle 5.0.1.
These tables are in a different schema than the one Django connects
with, so based on previous discussion here I created views
Hi,
I'm using the built-in password_change view. Is there an easy way to
specify a minimum password length for the new password? (Other than
using javascript in the template)
Thanks
Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed
hi karen , actually im runing this code , after submit i can see all
the data inside the model ,only the filefield resume is empty , of
course when i test this i add (blank=True, null=True) to my resume
field , so why do u think the other fileds is geeting the data
submitted by the form and the
On Fri, May 22, 2009 at 4:44 PM, CrabbyPete wrote:
> if I start with PEOPLE = (('john','adams')) how do I add the
> subsequent tuples?
>
Simple. Tuples are immutable (cannot be modified) so you don't contain your
little tuples in a big tuple, you use a list.
list = []
hi, everyone,
i have a question about model. i define some models, but some will
return the records, while some only return the counts of the records
on the web page?
class cancer(models.Model): # it returns the count of records
CancerID = models.CharField(max_length=8)
NCIID =
Any idea how to get saving to a specific location working? I've got
this half working...
I extended TemporaryFileUploadHandler with a CustomUploadHandler that
copies the files to the right location in file_complete.
However, when I call form.save() the files get saved to the MEDIA_ROOT
folder?
On 22 May 08:44, CrabbyPete wrote:
>
>
> I am trying to make a selector in a forms based on information in the
> database.
>
> The selector uses a tuple like this:
>
> PEOPLE = (('john','adams'),('sam','smith'),('john','doe'), ...)
>
> if I start a tuple with ( ('john","adams"))
>
>
>
>
I am trying to make a selector in a forms based on information in the
database.
The selector uses a tuple like this:
PEOPLE = (('john','adams'),('sam','smith'),('john','doe'), ...)
if I start a tuple with ( ('john","adams"))
if I start with PEOPLE = (('john','adams')) how do I add the
V escribió:
> my first guess would be to try
>
> locale/lang/LC_MESSAGES
> instead of
> locale/LANG/LC_MESSAGES
>
> I hope this helps!
>
> Have a nice day, V
>
Actually LANG is an example ;)
The real directory structure is:
locale/fr/LC_MESSAGES
locale/es/LC_MESSAGES
locale/de/LC_MESSAGES
On Fri, May 22, 2009 at 7:41 AM, m...@nysv.org
wrote:
>
> Hi!
>
> I'm using python-processing to run things in parallell based
> on data in a Django-powered database.
>
> I'm also seeing all sorts of funky tracebacks:
> Traceback (most recent call last):
> File
On Fri, May 22, 2009 at 9:43 AM, Herta wrote:
>
> yes,i remember i altered my model.
> But how can i alter the table structure, or how can i see the raw
> table structure and change my model to the original one?
>
> On May 22, 10:25 pm, Masklinn wrote:
yes,i remember i altered my model.
But how can i alter the table structure, or how can i see the raw
table structure and change my model to the original one?
On May 22, 10:25 pm, Masklinn wrote:
> On 22 May 2009, at 15:41 , Herta wrote:> no such column:
>
On 22 May 2009, at 15:41 , Herta wrote:
> no such column: dbDECP_gene_variants.Variation_IDRequest
The message seems pretty clear: you're asking for the column
"Variation_IDRequest" and the ORM can't find it in the table
"dbDCEP_gene_variants".
You probably made a typo in creating a queryset
It appears that {% thumbnail %} tag from sorl-thumbnail app is causing
this. When my context processor is off,
thumbnail just does not have anything to do because it has no context.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi, everyone,
I start learning django and met a question. It seems that i have load
data into my database (sqlite3), but the webpage show some error.
What is the problem.Thanks!
TemplateSyntaxError at /admin/dbDECP/gene_variants/
Caught an exception while rendering: no such column:
Something like Pinax may offer what you need. Its almost like django.contrib
but an external project. you can find out more about it here;
http://pinaxproject.com/
Or the seperate mailing list; http://groups.google.com/group/pinax-users
They are pushing towards improving the main release at the
I do not see the point in explicitly disallowing calling the action if
no item is selected. I would like to have "reset selected items" and
"reset all items" in the same actions list.
Currently, I should have some admin actions in the ModelAdmin classes
and some in the views and admin templates,
On Fri, May 22, 2009 at 8:11 AM, vishy wrote:
>
> Hi,
> I am newbie at Django.I have model with a custom method.In view I am
> retrieving a single object.See below --
> My model
> class Problem(models.Model):
>problem = models.CharField(max_length=100)
>
On Fri, May 22, 2009 at 3:48 AM, martin f krafft wrote:
> Hi folks,
>
> I am new to Django and could not find the answer to a very important
> consideration I need to make before diving into Django more. I used
> to work with Zope and Plone, and one of the major problems were
I noticed that when I delete {% extends *** %} tag from templates
which are rendered by aforementioned views, it works fine.
Also I excluded all styles and javascript from the *** base template
and still when it is 'subclassed' view runs twice.
sending request with `curl` works fine ... view
Hi folks,
I am new to Django, and trying to figure out if Django could be used
for a new project which is similar to a news site (stories
& syndication feeds), as well as more permanent content.
The twist is that we already have thousands of such stories stored
as Markdown or RST files on the
Hi folks,
I am new to Django and could not find the answer to a very important
consideration I need to make before diving into Django more. I used
to work with Zope and Plone, and one of the major problems were
upgrades, not of Zope or Plone, but of all the products that were
needed for a
When my simple custom context processor is added to
TEMPLATE_CONTEXT_PROCESSORS, every view which uses `RequestContext` is
called twice. What am I missing? When I exclude my processor from
TEMPLATE_CONTEXT_PROCESSORS these views run once. My processor is just
a function which takes request and
Hi!
I'm using python-processing to run things in parallell based
on data in a Django-powered database.
I'm also seeing all sorts of funky tracebacks:
Traceback (most recent call last):
File "utils/X.py", line X, in XX
XX = X(, X=X, =)
File
Hi folks,
I am new to Django, and trying to figure out if Django could be used
for a new project which is similar to a news site (stories
& syndication feeds), as well as more permanent content.
The twist is that we already have thousands of such stories stored
as Markdown or RST files on the
Hi,
I am newbie at Django.I have model with a custom method.In view I am
retrieving a single object.See below --
My model
class Problem(models.Model):
problem = models.CharField(max_length=100)
solution=models.CharField(max_length=500)
def __unicode__(self):
return
On May 22, 11:28 am, akaariai wrote:
> Hi all,
>
> I am trying to find a best way to solve the following problem:
>
> I have chemicals, each of which has a list of codes and names.
> Chemicals have too many codes and names to put directly into the
> Chemical model.
>
>
On May 22, 3:03 am, Antoni Aloy wrote:
> Perhaps I'm confused and you have the rights to publish and distribute
> that book but if this is not the case you should avoid this kind of
> posts.
Packt is the publisher and they are aware (and ok with the fact) that
I am giving
Hi all,
I am trying to find a best way to solve the following problem:
I have chemicals, each of which has a list of codes and names.
Chemicals have too many codes and names to put directly into the
Chemical model.
Example (pseudo) models.py:
class Chemical():
pass
class Name():
that's the point
On Fri, May 22, 2009 at 4:30 PM, Daniel Roseman <
roseman.dan...@googlemail.com> wrote:
>
> On May 22, 6:19 am, vishy wrote:
> > Hi,
> >
> > I have some functionality which needs to be part of a class,which I
> > don't want to persist in database.Where
On May 22, 6:19 am, vishy wrote:
> Hi,
>
> I have some functionality which needs to be part of a class,which I
> don't want to persist in database.Where should I put such a class? In
> models.py?
You can put it anywhere on your pythonpath. If it's related to a
single
my first guess would be to try
locale/lang/LC_MESSAGES
instead of
locale/LANG/LC_MESSAGES
I hope this helps!
Have a nice day, V
On May 21, 10:42 pm, "Gabriel ." wrote:
> Hi all,
>
> I've generated and compiled the locales, under my app path,
> locale/LANG/LC_MESSAGES
If everything is going to be hosted on different servers etc. I think you
might want to consider using a web service or some sort SOAP or REST. It
would provide a common interface to your data that once implemented would be
easy to use in many places.
This really doesn't have much to do with
Graham -- thank you for that detailed response. I had not expected it to be
quite so intricate, so it will take me a wee while to savvy.
Regards,
\d
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Maybe it is . you can see the sourcecode of django ,some models have
the methods to add some functionalities .
but I really do not know if it is right or not ...
On 5/22/09, vishy wrote:
>
> Hi,
>
> I have some functionality which needs to be part of a
Hi,
My DB looks lie:
id
date msg
2011-2-09
abcd
2015-2-09
abcd
20
20-2-09 abcd
20
1-3-09abcd
20
5-3-09
Hi all,
I would like to have actions that do not depend on selections
integrated into the admin too. For example I would like to have "reset
selected items" and "reset all items" in the same actions list. But
"reset all items" would not be called if no item is selected.
I do not see the point
2009/5/22 leveille :
>
> I'm doing my best to give away a few books, however, due to my very
> poor site traffic, I'm not having much luck. So, if you are new to
> Django and you are interested a free book (Django 1.0 Website
> Development, published by Packt), or if you
Hi
It looks like a unix timestamp. I cant remember what python uses to
convert unix to a date objecr but should be pretty simple. Maybe
strftime/strptime or you can just google it.
~Jakob
On May 22, 8:13 am, laspal wrote:
> Hi,
>
> How to convert mysql 10 digit date
Hi
AJAX doesn't care what tech is serving the data as long as the format
is what it expects (JSON). Doing cross domain AJAX calls it a bit more
tricky, but you can do it with JSONP. It's not hard to setup when you
have control of the json output. I know jQuery has it, but try to
google it, there
I have run into an issue and was wondering how I might be able to solve it
in the best way:
For storage backends that are http based some (such as S3) require that you
submit a Content-Length header upfront.
This is not necessarily a problem for the save method which takes a file
like object
Hi Group,
I'd like to announce the first release of django-emailauth, a Django
application which tries to provide all models/views/functionality for
implementing hassle-free user registration and authentication based on
users' emails instead of usernames.
It's hosted on github:
Hi,
How to convert mysql 10 digit date format to django date format?
example:
mysql date - 1219848914
to django date - "22-05-09"
thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
Oops... thanks a lot, Karen... just a silly error, trying to include
urlpatterns from inexistant urls modules... :-P
Also, thanks for the hint, Daniel! I'll post the stacktrace here from
the box... :-)
Diogo
On May 20, 10:26 am, Karen Tracey wrote:
> On Wed, May 20, 2009
90 matches
Mail list logo