Hello guys
Today I discovered a strange problem which may be caused by my
misunderstanding or by a bug in django and i would like to shed some
light on it with your help.
I have models package `mycompany.models` where are defined all the
models for all our apps. Same classes are used in a few ap
jeffmikels wrote:
> Thanks for your help. I ended up creating a view to do the work. If the
> data is simple enough and just plain text, is there a compelling reason
> to use AddManipulator or other manipulators instead of just
> object.save()?
>
>
hi,
for example, if you want to validate that
another alternative you may want to consider is to piggybak ontop of the generic viewhave a look at http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/views/create_update.py for a examplewhich adds a 'change_user' and 'last_change' fieldseg. if request.POST: new_data = request.
Niran Babalola wrote:
> I've been developing a Django application using SQLite, and now I'm
> trying to move over to MySQL and actually launch the site. The
> application is storing data from RSS/Atom feeds using Universal Feed
> Parser, which uses unicode strings for all its data. When I try to
>
On Tue, 2006-08-08 at 00:37 -0700, ak wrote:
> Hello guys
>
> Today I discovered a strange problem which may be caused by my
> misunderstanding or by a bug in django and i would like to shed some
> light on it with your help.
I think you are misunderstanding how the admin application interacts
w
Have a look at Django e-commerce package called Satchmo. Here are some
models that may be as a start point for you:
http://satchmo.python-hosting.com/file/trunk/satchmo/contact/models.py
Good luck!
Aidas Bendoraitis [aka Archatas]
On 8/8/06, Rares Vernica <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
> I've fixed this as of http://code.djangoproject.com/changeset/3530 .
> Thanks for bringing it up!
Works like a charm. thanks. Such a tiny piece of code... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
Malcolm, my models are imported into application,models and do have
Admin inner class. Take a look:
1. Model:
$ cat subnet.py
# -*- coding: windows-1251 -*-
from django.db import models
class Subnet(models.Model):
address = models.IPAddressField()
mask = models.IPAddressField()
clas
Malcolm Tredinnick wrote:
> For now, if you want to hack on the source for your initial
> testing/debugging, have a look in django/core/management.py around line
> 206. There's a line that says
>
> r_name = '%s_refs_%s_%x' % (r_col, col, abs(hash((r_table,
> table
>
> (it's
Jay Parlar wrote:
> > I had a similar problem (not seeing the records I just inserted into
> > database - actually they were the only one) because I left the
> > timezone variable set to "America/Chicago" and i live in Europe (and
> > my timezone is Chicago + 8). So the date filter considered all
Steven Armstrong wrote:
> Don't know if this is related to your problem, but if you're using
> sqlite the patch at [1] may help.
Yes, I use SQLite.
> If this does solve your problem, and you have a moment, you could add
> some more background info about the bug to that ticket and confirm that
>
Hi Anton,
You may need to add the Meta class in too:
mycompany/models.py:
from django.db import models
class Subnet(models.Model):
field = models.CharField(maxlength=255)
...
class Admin:
pass
class Meta:
app_label = 'administration'
And then in your mycompany/
Steven Armstrong wrote:
> Don't know if this is related to your problem, but if you're using
> sqlite the patch at [1] may help.
>
> If this does solve your problem, and you have a moment, you could add
> some more background info about the bug to that ticket and confirm that
> the patch worked.
Gábor Farkas wrote:
> Niran Babalola wrote:
> > I've been developing a Django application using SQLite, and now I'm
> > trying to move over to MySQL and actually launch the site. The
> > application is storing data from RSS/Atom feeds using Universal Feed
> > Parser, which uses unicode strings for
To explain:
Let's suppose we have a command
HistoryList=historys.get_list(id__exact='2',order_by=['-PostedDate'])
that command extracts a few records and from them I would like to use
for further processing all without the first or last record.
How can I do that in Django version 0.91?
Thank yo
> Do you know anybody trying a Contacts/Phonebook type of application in
> Django? I am thinking about building one.
We don't have a contacts application but within Satchmo (the shopping cart
framework we're developing) there are some address and contact models that
might be helpful. Check the
Are you trying to insert initial data into you db when running this
script?
--~--~-~--~~~---~--~~
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
Hi PythonistL,
I wonder if you can do the following:
histories = historys...
ids = [history.id for history in histories]
histories = historys.get_list(id__in=ids, date__year=1066)
It's a while since I did any .91 ;)
John.
On 8/8/06, PythonistL <[EMAIL PROTECTED]> wrote:
>
>
> To explain:
> L
Can this be done? I just can't seem to find any documentation on
extending the admin module this way.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djang
if I apply syncdb for one of my apps
./manage.py syncdb xxapp
I get the traceback below that ends with
[...]
_mysql_exceptions.IntegrityError: (1062, "Duplicate entry
'17-add_status' for key 2")
I can't find an obvious error in the database.
does anyone know what could be wrong.?
abe
Trace
Wade Leftwich wrote:
> Gábor Farkas wrote:
>> Niran Babalola wrote:
>>> I've been developing a Django application using SQLite, and now I'm
>>> trying to move over to MySQL and actually launch the site. The
>>> application is storing data from RSS/Atom feeds using Universal Feed
>>> Parser, which
How can I create a relationship between two models, using a ForeignKey
in the second to take advantage of the Admin interface ability to add
an arbitrary number of them, but then also have the ability to create a
public view for adding objects based off the first model AND the
second?
So:
class
Seth Buntin wrote:
> Are you trying to insert initial data into you db when running this
> script?
not sure exactly what yuo mean by initial data.
I'm sometimes creating extra models, sometimes deleting an old model,
and then run syncdb to update the database.
Eiso
--~--~-~--~~--
John, app_label made it work. Thanks !!!
P.S. Is there a line in django docs about that ?
--~--~-~--~~~---~--~~
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@goog
I have an internal company website that includes contact management. I
wrote an app that connects to an LDAP tree; LDAP handles all the
contact stuff (which it's good at) and I just wrote the interface to
view and do lookups, etc.
Just an idea.
Soon I'll be writing code to let django connect to
Ok. Thanks.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
F
Hello there,
I modified "Advanced Locale from URL middleware" by Jonathan Schemoul a
bit and mixed in some parts of django.middleware.common.
It prepends the language code to the url if no language code was
present in request.path.
Can somebody check the code to suggest possible optimizations a
How can I create a relationship between two models, using a ForeignKey
in the second to take advantage of the Admin interface ability to add
an arbitrary number of them, but then also have the ability to create a
public view for adding objects based off the first model AND the
second?
So:
class
On 8/7/06, Seth Buntin <[EMAIL PROTECTED]> wrote:
> Can I extend the admin manipulator? I want to change one ManyToMany
> select box to a text field.
Hey Seth,
No, it's not possible to extend the default model manipulators for use
in the admin.
Adrian
--
Adrian Holovaty
holovaty.com | django
I'm in the process of porting from .91 to the magic removal trunk (lord
have mercy).
In one of the old templates, I do a:
{% for agent in agency.get_agent_list %}
blah blah
{% endfor %}
That worked great. So in my revised unmagical template I figured I'd do
a little:
{% for agent
On 08-Aug-06, at 7:37 PM, abe wrote:
>
> I'm sometimes creating extra models, sometimes deleting an old model,
> and then run syncdb to update the database.
if you are deleting old model, syncdb wont do it for you
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Not that I could find -- I believe I originally found it in a Ticket somewhere.
John.
On 8/8/06, ak <[EMAIL PROTECTED]> wrote:
>
> John, app_label made it work. Thanks !!!
>
> P.S. Is there a line in django docs about that ?
>
>
> >
>
--
[EMAIL PROTECTED]
--~--~-~--~~---
On 08-Aug-06, at 8:36 PM, Sarcastic Zombie wrote:
>
> I'm in the process of porting from .91 to the magic removal trunk
> (lord
> have mercy).
my sympathies
>
> In one of the old templates, I do a:
>
>{% for agent in agency.get_agent_list %}
>
>blah blah
>
>{% endfor %}
>
> That w
Kenneth Gonsalves wrote:
> On 08-Aug-06, at 7:37 PM, abe wrote:
>
> >
> > I'm sometimes creating extra models, sometimes deleting an old model,
> > and then run syncdb to update the database.
>
> if you are deleting old model, syncdb wont do it for you
>
I know, but the complaint is about an cur
Thanks for all the responses. I fixed it in the view by altering my
nice generic block of code... oh well. Here is the result:
if filter_fields[f] == 'pfilter':
request.session[filter_fields[f]] =
int(request.POST[filter_fields[f]])
else:
request.session[filter_fields[f]] = request.POST[f
If admins find not appropiate to keep these scripts in this website,
I'll move them to another place. I didn't know If I had to ask somebody
before updating the wiki.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I have uploaded to: http://code.djangoproject.com/wiki/Scaffolding a
script that allows you to generate form templates for all the models
defined in your app, and also generates a _urls.py with urlpatterns to
use those templates. This way you can setup your app quicker working
over these templates
On 8/8/06, Sarcastic Zombie <[EMAIL PROTECTED]> wrote:
> That worked great. So in my revised unmagical template I figured I'd do
> a little:
>
>{% for agent in agency.agent_set.all %}
>
>blah blah
>
>{% endfor %}
>
> but I'm getting a screaming 'unindexable object' error. I've been
> t
Hi.
I have a rather strange observation.
Yesterday I posted some comments on the following pages:
http://www.djangoproject.com/documentation/authentication/
http://www.djangoproject.com/weblog/2005/oct/24/http/
http://code.djangoproject.com/ticket/689
My input concerned http authentication wit
On 08/08/06 13:45, Jarek Zgoda wrote:
> Steven Armstrong wrote:
>
>> Don't know if this is related to your problem, but if you're using
>> sqlite the patch at [1] may help.
>>
>> If this does solve your problem, and you have a moment, you could add
>> some more background info about the bug to th
Pawel J. Sawicki wrote:
> Today I wanted to check if any replies appeared... I was quite
> surprised that all my posts were gone...
>
> Am I wrong or were there really some problems with the data?
No, i think they just cleaned up the comments as they said in the FAQ
they sometimes do.
Lorenzo
On 8/8/06, Pawel J. Sawicki <[EMAIL PROTECTED]> wrote:
> Yesterday I posted some comments on the following pages:
>
> http://www.djangoproject.com/documentation/authentication/
> http://www.djangoproject.com/weblog/2005/oct/24/http/
> http://code.djangoproject.com/ticket/689
>
> My input concerned
Oh man, I'm really grateful for the help. And for writing Django in the
first place.
Here's the fun part of my problem! It works fine in the ./manage.py
shell. My view was loading the agency with an id of 141, so for
consistency, we'll use that same object.
>>> from commund.financial_database.mo
Sadly, that doesn't seem to work. It seems to be silent failing when i
do agency.agent.all, as if no such thing exists.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
Adrian Holovaty wrote:
> I routinely go through the djangoproject.com comments and delete
> comments that either aren't directly related to the documentation or
> are incorrect. (...)
Well... I've just tried to follow the discussion that started in those
two topics.
I'll rephrase my question on
Hi all...
I'm very newbie to django and python, and i'm testing it.
I've created a model, and i would like to add a function to create a
group item for each model item. I've thinkint to use __setitem__ or
__add__, but i can't find documentation. Someone could help me or give
me some doc or url,
Ok... my newbie error... ;)
Now i've found it before 2 days of reads... the save function...
Thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
> What happens when you keep going? Try doing the loop here. Perhaps
> something like:
>
> >>> for agent in a.agent_set.all():
> ... print agent
> ...
>>> for agent in a.agent_set.all():
... print agent.first_name
...
Agent
No error. :-D
--~--~-~--~~~---~-
Steven Armstrong wrote:
> Have you nuked any *.pyc files still lying around after applying the patch?
That was it, thanks. Did a clean SVN checkout and your patch works
fine.
Any chance for anybody else to check & review this patch? It would be
nice to have such problem fixed...
Cheers
Jarek Z
On 8/8/06, Sarcastic Zombie <[EMAIL PROTECTED]> wrote:
>
> Oh man, I'm really grateful for the help. And for writing Django in the
> first place.
>
> Here's the fun part of my problem! It works fine in the ./manage.py
> shell. My view was loading the agency with an id of 141, so for
> consistency,
Hello!
I'm developing a web based application using the Django framework.
One of the requirements for my software state that the program must,
whenever possible, automatically "deal" with users that had been
previously authenticated via http capabilities. It does not mean it
should always log th
Not sure I understand exactly what you're looking for, but have you
looked at the manipulators documentation?
http://www.djangoproject.com/documentation/forms/
Bryan
On 8/8/06, ElGranAzul <[EMAIL PROTECTED]> wrote:
> Hi all...
>
> I'm very newbie to django and python, and i'm testing it.
>
> I
On 8/8/06, Rares Vernica <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Do you know anybody trying a Contacts/Phonebook type of application in
> Django? I am thinking about building one.
>
We are writing such an interface for internal use.
The contact information includes:
- work phone numbers
- home ph
Hi,Has anyone set up a web site on DreamHost with Django pre 0,96 lately. I tried yesterday. It just does not seem to work. I tried Jeff Croft's tutorial first, then changed the code based on this link
http://www.djangoproject.com/documentation/fastcgi/And then tried the official version of dreamh
On 5/6/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote:
>
> On 5/6/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> >
> > Matthew Flanagan wrote:
> >
> > >Since MR merged the _manipulator_validate_FIELD() methods stopped
> > >working. The solution I came up with was to write custom manipulators
> > >
PythonistL wrote:
> To explain:
> Let's suppose we have a command
>
> HistoryList=historys.get_list(id__exact='2',order_by=['-PostedDate'])
>
> that command extracts a few records and from them I would like to use
> for further processing all without the first or last record.
> How can I do that
Hi!I am using MySQL as my DB and it seems datetime field did not store milliseconds. Is it the correct behavior? Any chance I can hack that/ I need Milliseconds resolution. Gen-Nan Chen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
On 8/8/06, george webzary <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Has anyone set up a web site on DreamHost with Django pre 0,96 lately. I
> tried yesterday. It just does not seem to work. I tried Jeff Croft's
> tutorial first, then changed the code based on this link
> http://www.djangoproject.com/
On 8/8/06, george webzary <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Has anyone set up a web site on DreamHost with Django pre 0,96 lately. I
> tried yesterday. It just does not seem to work. I tried Jeff Croft's
> tutorial first, then changed the code based on this link
> http://www.djangoproject.com/
On 8/8/06, Gennan Chen <[EMAIL PROTECTED]> wrote:
> I am using MySQL as my DB and it seems datetime field did not store
> milliseconds. Is it the correct behavior? Any chance I can hack that/ I need
> Milliseconds resolution.
As far as I know, MySQL offers no support for storing such values; the
On Tue, 2006-08-08 at 14:16 +, Dave wrote:
> How can I create a relationship between two models, using a ForeignKey
> in the second to take advantage of the Admin interface ability to add
> an arbitrary number of them, but then also have the ability to create a
> public view for adding objects
On Tue, 2006-08-08 at 12:13 +0100, Bill de hÓra wrote:
> Malcolm Tredinnick wrote:
>
> > For now, if you want to hack on the source for your initial
> > testing/debugging, have a look in django/core/management.py around line
> > 206. There's a line that says
> >
> > r_name = '%s_refs_%s_
On Tue, 2006-08-08 at 16:36 +, Javier Nievas wrote:
> If admins find not appropiate to keep these scripts in this website,
> I'll move them to another place. I didn't know If I had to ask somebody
> before updating the wiki.
Go for it. It's a wiki: the intended place for user-contributed
docu
On Tue, 2006-08-08 at 08:06 -0700, Sarcastic Zombie wrote:
> I'm in the process of porting from .91 to the magic removal trunk (lord
> have mercy).
OK, we really have to stop calling the current code "magic removal
trunk". People are going to start wondering what we are talking
about. :-)
> In o
On 08-Aug-06, at 11:31 PM, Sarcastic Zombie wrote:
> Sadly, that doesn't seem to work. It seems to be silent failing when i
> do agency.agent.all, as if no such thing exists.
maybe it doesnt exist - for example, if you search on an integer, and
the integer is got from the POST, there is a pos
On 08-Aug-06, at 10:14 PM, Pawel J. Sawicki wrote:
> Today I wanted to check if any replies appeared... I was quite
> surprised that all my posts were gone...
>
> Am I wrong or were there really some problems with the data?
there seem to be some problems with akismet (i think thats the one)
--
On 09-Aug-06, at 5:12 AM, Malcolm Tredinnick wrote:
>> I'm in the process of porting from .91 to the magic removal trunk
>> (lord
>> have mercy).
>
> OK, we really have to stop calling the current code "magic removal
> trunk". People are going to start wondering what we are talking
> about. :-
On 8/8/06, Tom Tobin <[EMAIL PROTECTED]> wrote:
> On 5/6/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote:
> >
> > On 5/6/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> > >
> > > Matthew Flanagan wrote:
> > >
> > > >Since MR merged the _manipulator_validate_FIELD() methods stopped
> > > >working. Th
On 8/8/06, Tom Tobin <[EMAIL PROTECTED]> wrote:
> On 8/8/06, Tom Tobin <[EMAIL PROTECTED]> wrote:
> > On 5/6/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote:
> > >
> > > On 5/6/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Matthew Flanagan wrote:
> > > >
> > > > >Since MR merged the
Hi --
I'm looking for a python web framework to build web apps talking to a
non-SQL-based data store, similar to an RDF store for the semantic web.
I'm trying to find a toolkit with a sufficiently-factored database
abstraction layer that we could plug in our own. The server has its own
query lang
Are form wrappers and manipulators only for creating 'change object'
and 'add object' forms? I'm creating a simple form that will have
several drop downs that correspond to fields in the database for one of
my objects, that will serve as a search form. Right now I have a basic
addManipulator so
lookin fer a data entry specialist:
--gotta be quick at typing
--serious attitude[serioulsy good, that is]
--part time/full time
--basic internet knowledge.
hit me at [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
On 8/7/06, Niran Babalola <[EMAIL PROTECTED]> wrote:
>
> "UnicodeEncodeError: 'latin-1' codec can't encode characters in
> position 75-76: ordinal not in range(256)"
This indicates your default database connection character set is
latin1. You can change this in your server configuration, or you c
On Tue, 2006-08-08 at 18:41 -0700, felciano wrote:
> Hi --
>
> I'm looking for a python web framework to build web apps talking to a
> non-SQL-based data store, similar to an RDF store for the semantic web.
> I'm trying to find a toolkit with a sufficiently-factored database
> abstraction layer t
I tried everything. I touched the fcgi files, pkilled python. There is no problemas far as django itself is concerned. It is working very well. I am able to create apps, models, templates, acess the manage.py shell. I can do whatever I can do on my Ubuntu PC
The problem is definitely with Fast CGI
Tom,
Does the solution I posted [1] earlier in this thread not work for you?
[1] http://groups.google.com/group/django-users/msg/a76be4c94631ec80
matthew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django u
On 8/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Tom,
>
> Does the solution I posted [1] earlier in this thread not work for you?
>
>
> [1] http://groups.google.com/group/django-users/msg/a76be4c94631ec80
Getting these manipulator-aware validators working in the admin is
exactly the is
Rather obvious question: did you try to complain to DreamHost people
about your problems? FastCGI is supposed to work.
Thanks,
Eugene
george webzary wrote:
> I tried everything. I touched the fcgi files, pkilled python. There is
> no problem
> as far as django itself is concerned. It is worki
Basic question, apologies if you've checked this already. Have you
double checked that you turned on fastcgi support for that (sub)domain
in the Dreamhost control panel - it's not enabled by default.
--~--~-~--~~~---~--~~
You received this message because you are
Satchmo is a good place to start.
Thanks a lot,
Ray
Chris Moffitt wrote:
>
>> Do you know anybody trying a Contacts/Phonebook type of application in
>> Django? I am thinking about building one.
>
> We don't have a contacts application but within Satchmo (the shopping cart
> framework we're dev
Thank you David and John for help
L.
--~--~-~--~~~---~--~~
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 em
81 matches
Mail list logo