Models.py
class Listing(models.Model):
name = models.CharField(max_length=20)
description = models.TextField(max_length = 100)
website = models.URLField()
category = models.ForeignKey(Category)
class Category(models.Model):
category_code = models.CharField(max_length = 50, primary_key=
On Wed, Jan 7, 2009 at 12:48 AM, Travis Veazey
wrote:
> So now we get to the question: As I can't even begin to conceive of myself
> being the only person in this boat, I have to believe there's one or more
> generally-accepted and "good" ways of dealing with updating database
> structures while m
Hi all.
Still feeling my way through Django development, working on my first app
still, and I've hit what looks to be a huge hurdle: Django has no in-built
mechanism for dealing with making changes to the structure of models.
Okay, fine, I can understand the reasons for that, and while I think it
On Tue, Jan 6, 2009 at 2:49 PM, Bradley wrote:
>
> I move an existing website running django onto a shared webhost via
> FastCGI.
>
> No matter what I do, I get the following error:
>
> ImportError: Could not import settings 'seymourherald.settings' (Is it
> on sys.path? Does it have syntax error
I'm trying to find the right way to make an instance of a subclass of
a model also an instance of a different subclass in the model, like
so:
class Person(models.Model):
...
class Customer(Person):
...
class Employee(Person):
...
If I have an instance of Employee that I want to hav
On Tuesday 06 Jan 2009 5:18:57 pm HB wrote:
> What is your favorite IDE for coding Django projects?
geany
--
regards
KG
http://lawgon.livejournal.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
On Tue, Jan 6, 2009 at 10:10 PM, Timboy wrote:
>
> Still no solution to this. It has been confirmed by another user. Is
> it a bug?
>
(Where was it confirmed by another user? I don't see that.)
The doc list "save_formset" under "ModelAdmin methods" yet you seem to have
added it to your inline
I have a list of links (say ~200) that I want to display in several
different orders, all on one page. The first question is am I better
off to hit the database for every different order?
Then, when I click a link, I am changing many of the attributes about
that link (like hit count, last access
On Tue, Jan 6, 2009 at 10:08 PM, Chris wrote:
>
> I've created a ModelForm from a model containing a foreign key field
> (called user) linked to my User class. When the form is saved, I want
> this value to be set to the current authenticated user. What's the
> best way to do this?
>
> My form's
screen + vim is very powerful. That's what I use, too. Too bad the
learning curve is so steep.
On Jan 6, 6:52 am, Tim Chase wrote:
> > What is your favorite IDE for coding Django projects?
>
> screen + vim + pdb + bash
> [+ lynx/dillo/firefox/epiphany for browsing]
> [+ sqlite3/mysql/psql for
On Tue, Jan 6, 2009 at 9:25 PM, Todd O'Bryan wrote:
>
> On Tue, Jan 6, 2009 at 6:23 PM, Russell Keith-Magee
> wrote:
> > There are some plans in place to speed up test cases using
> > transactions; I'm hoping to be able to look at this once I put the
> > aggregation and F() code to bed, in the n
On Tue, Jan 6, 2009 at 8:01 PM, ZebZiggle wrote:
>
> Hi all,
>
> Sorry for the cryptic subject line, but I don't know how else to
> describe it.
>
> I have two tables:
>
> class Opportunity(models.Model):
> ...
>
> class Deal(models.Model):
> opp = models.ForeignKey(Opportunity)
> ...
>
> How
Post the code for DataForm--I'll bet it's hitting the database a
number of times. That would be the only reason I can think of that it
would take that long. I just created a formset containing simple
forms, and it instantiated almost instantly--even with 2000 forms.
-Jeff
On Jan 6, 3:21 pm, "K
I'm having a strange problem in that I can make any change that I want
to the .fcgi file, short of deleting it and I get the same django
error about seymourherald.settings not found. I can delete the entire
contents of the file so all it has in it is #!/path/to/python and it
still gives me this e
I'm very happy with Komodo Edit 5.0 for editing python
SyncroSVN client for subversion; not free, but it's cheap and worth
the money; very happy with it. http://www.syncrosvnclient.com/
multi-platform and intuitive interface
On Jan 6, 12:32 pm, Ovnicraft wrote:
> 2009/1/6 Berco Beute
>
>
>
>
Still no solution to this. It has been confirmed by another user. Is
it a bug?
On Dec 29 2008, 2:33 pm, Timboy wrote:
> DB is sqlite3. Deleted DB file syncd and still same traceback.
> here is proper traceback paste:http://dpaste.com/103517/
>
> On Dec 28, 9:10 pm, Praveen wrote:
>
> > This is
I've created a ModelForm from a model containing a foreign key field
(called user) linked to my User class. When the form is saved, I want
this value to be set to the current authenticated user. What's the
best way to do this?
My form's save method takes the current user as an argument. I've
trie
On Tue, Jan 6, 2009 at 6:23 PM, Russell Keith-Magee
wrote:
>
> On Wed, Jan 7, 2009 at 4:51 AM, Todd O'Bryan wrote:
>>
>> So, I've been trying to speed up tests. Surprise. I came across a
>> fairly easy solution, so I'm sure I must be missing something. If
>> someone could tell me what I'm missin
On Tue, Jan 6, 2009 at 6:05 PM, Malcolm Tredinnick
wrote:
>
> On Tue, 2009-01-06 at 14:51 -0500, Todd O'Bryan wrote:
> [...]
>
>> So, what am I missing? I know this doesn't deal with doctests--the db
>> gets cleaned for all of those, but does anyone see when this is just
>> going to blow up in my
I primarily use TextMate on OS X - before that, I used Coda but it
didn't have a plugin architecture back then (for Django templates).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
As you're using a recent (last couple of months) checkout and/or
Django 1.0, you'll find that there have been some changes to the way
the admin application works. See here:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/
- this should set you on the right path to learning about these
chan
heya,
Whoops...forgot. I'm also confused on the recommended way to deal with
duplicates? (not duplicate .csv files, but duplicate entries, perhaps
in two different ones.). Just do a plain search for each entry? Or is
there a better way?
On Jan 7, 11:55 am, Victor Hooi wrote:
> heya,
>
> Valts,
Hi all,
Sorry for the cryptic subject line, but I don't know how else to
describe it.
I have two tables:
class Opportunity(models.Model):
...
class Deal(models.Model):
opp = models.ForeignKey(Opportunity)
...
However, in the admin, I want the user to enter the data for the
Opportunity a
heya,
Valts, thanks for the reply - that looks interesting, and is similar
in some ways to what I want - definitely going to check out the code.
Basically, I just wanted a simple file-upload form, for the user to
upload the two .CSV files. Then, there's quite a bit of processing to
do on the two
On Tue, 2009-01-06 at 16:07 -0800, rabbi wrote:
> i was actually already reading that page... but it's 1:00am and maybe
> i glazed over it without registering :)
>
> i've now temporarily fixed my admin page problem by just copying all
> files to the apache document root, but later i will need to
i was actually already reading that page... but it's 1:00am and maybe
i glazed over it without registering :)
i've now temporarily fixed my admin page problem by just copying all
files to the apache document root, but later i will need to learn what
a "symbolic link" is as it sounds like a nicer
On Tue, 2009-01-06 at 15:33 -0800, rabbi wrote:
> thanks a lot malcom, that's great advice.
> for the record, initially i had "DATABASE_NAME = 'vocab'"
>
> i have another question; after changing from runserver to apache the
> django admin page now looks very ugly... it's lost all formatting etc
thanks a lot malcom, that's great advice.
for the record, initially i had "DATABASE_NAME = 'vocab'"
i have another question; after changing from runserver to apache the
django admin page now looks very ugly... it's lost all formatting etc
is this normal or is it a problem i can repair. maybe the
On Tue, 2009-01-06 at 15:12 -0800, rabbi wrote:
[...]
> i've now got it running on apache/mod_python too, but i had to
> hardcode the entire path to the db file in settings.py:
>"DATABASE_NAME = 'C:/Documents and Settings/Rabbi/Desktop/Django
> Code/mysite/vocab'"
>
> is this really necessar
On Wed, Jan 7, 2009 at 4:51 AM, Todd O'Bryan wrote:
>
> So, I've been trying to speed up tests. Surprise. I came across a
> fairly easy solution, so I'm sure I must be missing something. If
> someone could tell me what I'm missing, I'd really appreciate it.
...
> MyTestCaseSubclass.dirties_db = T
On Jan 6, 10:31 pm, ppdo wrote:
> To Karen: yes, I meant TCP RST, sorry.
>
> Update:
>
> Using mod_wsgi made the problem go away for Firefox.
>
> Limiting my research to an interaction problem between Apache and
> Safari, I stumbled upon this bug report for Apache
> https://bugs.webkit.org/show
>>I've gone through the Django tutorial and it worked fine when using
>>the default development server that is provided with Django (python
>>manage.py runserver)
yeh, like I said. it works fine with the django-provided development
server
i've now got it running on apache/mod_python too, but i h
On Tue, 2009-01-06 at 11:59 -0800, rabbi wrote:
[...]
> I want to deploy my little test site though, so I've been trying to
> get it running on Apache and I keep getting this error:
> "OperationalError at /swenglish/
> no such table: swenglish_entry"
>
> The error seems to be happening on this li
On Tue, 2009-01-06 at 14:51 -0500, Todd O'Bryan wrote:
[...]
> So, what am I missing? I know this doesn't deal with doctests--the db
> gets cleaned for all of those, but does anyone see when this is just
> going to blow up in my face?
For that to work reliably, you would need to deeply know the
Thanks for that clarification. I am finding that a lot of assumptions
are made in the documentation about previous knowledge. The
documentation can appear very confusing until you understand the
background, then it magically becomes blindingly obvious and helpful!
I must write down more of these
On Tue, Jan 6, 2009 at 17:47, Malcolm Tredinnick
wrote:
> This thread is about whether blank=True, null=False (the fourth
> possibility) ever makes sense for non-text fields.
not sure if django supports binary data or any form of arrays but in
those cases it could make sense to have blank=True
On Tue, 2009-01-06 at 04:42 -0800, Polat Tuzla wrote:
> Hi,
> Suppose I have two classes in "models.py", namely A and B. And there
> is the manager for B as BManager in "managers.py". BManager makes use
> of clas A.
>
> This situation leads to circular imports between "managers.py" and
> "models.
On Jan 6, 2:59 pm, rabbi wrote:
> Hi everyone,
> I've gone through the Django tutorial and it worked fine when using
> the default development server that is provided with Django (python
> manage.py runserver)
>
> I want to deploy my little test site though, so I've been trying to
> get it runnin
On Tue, 2009-01-06 at 08:03 -0800, dchandek wrote:
[...]
> The only gotcha I've encountered here is that practically speaking
> null=True requires blank=True.
That isn't always valid and it's not the direction that's being proposed
in this thread. One of the design goals of Django is to work rel
On Jan 6, 2009, at 8:55 PM, MA wrote:
> Django vs. WObject(s).
WObject? Do you mean NeXT/Apple's WebObjects?
http://en.wikipedia.org/wiki/WebObjects
Cheers,
--
PA.
http://alt.textdrive.com/nanoki/
--~--~-~--~~~---~--~~
You received this message because you ar
I forgot to mention, I'm using SQLite3
On Jan 6, 8:59 pm, rabbi wrote:
> Hi everyone,
> I've gone through the Django tutorial and it worked fine when using
> the default development server that is provided with Django (python
> manage.py runserver)
>
> I want to deploy my little test site though
On Jan 7, 4:04 am, Chunlei Wu wrote:
> Thanks a lot Graham. I will upgrade my modwsgi to v2.3. Looking
> forward to the v3.0 to see if the fix on issue #29 will fix my problem
> as well.
Actually, my reference to issue #29 is a bit wrong. That issue relates
to connection being closed when try
The url below has information in "Part2"
has a revised urls.py and also discussion of admin.py
http://docs.djangoproject.com/en/dev/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
Working examples in djangobook /1.0 chapter06
Can not get the Admin Interface to display using suggested urls.py /
settings.py
#urls
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls')),
)
#settings.py - # snip
ROOT_URLCONF =
Hi,
Since our management team is trying to select the platform for
further development, I'm in process to prepare the case
( presentation) Django vs. WObject(s).
Though both frameworks seems to be very similar in the goals, they are
obviously quite different in their internals.
I'm wondering
Hi everyone,
I've gone through the Django tutorial and it worked fine when using
the default development server that is provided with Django (python
manage.py runserver)
I want to deploy my little test site though, so I've been trying to
get it running on Apache and I keep getting this error:
"Op
I move an existing website running django onto a shared webhost via
FastCGI.
No matter what I do, I get the following error:
ImportError: Could not import settings 'seymourherald.settings' (Is it
on sys.path? Does it have syntax errors?): No module named
seymourherald.settings
my DJANGO_SETTING
On Tue, Jan 6, 2009 at 16:49, Jeff Anderson wrote:
> phoebebright wrote:
>> Thanks for your response. Do you think a working knowledge of python
>> is essential for django then? And do I import modules the same in
>> django and python? Are there any python things you can't do in
>> django?
yes
phoebebright wrote:
> Thanks for your response. Do you think a working knowledge of python
> is essential for django then? And do I import modules the same in
> django and python? Are there any python things you can't do in
> django?
>
Django *is* Python. In fact, Django is only a Python libra
Thanks for your response. Do you think a working knowledge of python
is essential for django then? And do I import modules the same in
django and python? Are there any python things you can't do in
django?
On Jan 6, 8:18 pm, "Alex Koshelev" wrote:
> Yes. Django is just Python
>
> On Tue, Jan
Many thanks. I am using MySQL with InnoDB, as a matter of fact. When
I installed MySQL that's what it recommended.
Your suggestion works fine. I was trying Person as a subclass of
User, and couldn't get that
to initialize.
On Jan 3, 4:55 am, "Russell Keith-Magee"
wrote:
> On Sat, Jan 3, 200
2009/1/6 Berco Beute
>
> On Jan 6, 2:35 pm, Pigletto wrote:
>
> > So, Netbeans is currently my IDE of choice. Good svn integration,
> > faster than eclipse and komodo, stable, nice markup highlighting.
>
> +1
> I'm using SciTe and emacs for simple, single file editing.
> I've used pydev for a wh
On Jan 6, 2:35 pm, Pigletto wrote:
> So, Netbeans is currently my IDE of choice. Good svn integration,
> faster than eclipse and komodo, stable, nice markup highlighting.
+1
I'm using SciTe and emacs for simple, single file editing.
I've used pydev for a while but eclipse's startup time is too
I tried with 500 forms instead of 25. Now the time is becoming appaling.---
117 seconds. Second time it hung.
2009-01-07 01:42:13,812 INFO Start - 4.46984183744e-006
2009-01-07 01:42:13,812 INFO Formset Class created- 0.000422958783868
2009-01-07 01:44:11,703 INFO Created new formset- 117.90750668
Bernard does komodo have a open files function (open file in project based
on file name search) like there is text mate or gedit with plugin
(gedit-openfiles).
Vitaly Babiy
On Tue, Jan 6, 2009 at 3:10 PM, Bernard wrote:
>
> I use Komodo IDE 5 everyday for every Python/Django/PHP/Drupal
> proje
Yes. Django is just Python
On Tue, Jan 6, 2009 at 11:14 PM, phoebebright wrote:
>
> As a newbie to both python and django (ex PHP) I am not clear on when
> I can use python functions and when I can't.
>
> I want to do some simple string handling in a view, search and replace
> for example, but
As a newbie to both python and django (ex PHP) I am not clear on when
I can use python functions and when I can't.
I want to do some simple string handling in a view, search and replace
for example, but can't find anything in the documentation. I assume
this means that I can use python string ha
I use Komodo IDE 5 everyday for every Python/Django/PHP/Drupal
projects at work and damn it works well.
What I love about it:
* Key bindings(shortcuts) for almost everything
* Simple subversion integration so I don't have to switch to another
window to commit something.
* Search & Replace , Rege
So, I've been trying to speed up tests. Surprise. I came across a
fairly easy solution, so I'm sure I must be missing something. If
someone could tell me what I'm missing, I'd really appreciate it.
So, first I created my own subclass of django.test.TestCase:
class MyTestCase(django.test.TestCase
On 6 jan, 19:45, Ben Eliott wrote:
> Not that pretty/efficient but you could use contenttype contrib
> temporarily.
> IF ClassB has a ForeignKey to Class A could you extract the Class A
> model from a foreign key via Class B's .meta?
> Or the Class B could have a callable method which returned
OK - this was more or less resolved by following the advice here:
http://tinyurl.com/63rd76 This allowed me to essentially check for
valid comment deletion permissions before forwarding to the main
comment delete view. The only difference was my wrapper view; I
checked if the currently-logged-in u
I'm trying to subclass the Select widget, so that I can create an
editable scrolling list (done via JavaScript code that I found).
My entire class is as follows:
--Code--
from django import forms
class ComboBox(forms.Select):
class Media:
js = ("/js/wise/comboBox.js",)
def __in
Hi all,
My web application sends a medium size data grid (20 elements). I was
using formsets for the same.
The issue I am facing is that the formset instantiation is very very
slow. I timed it and it is taking ~4-7 seconds for it to instantiate.
Is there someway the speed can be increased?
Elementtree is now part of the python distribution. I am using it in a
Django app I created for a client to extract data from XML provided by
a web service. It works well but the documentation could be clearer.
On Jan 6, 9:27 am, "shi shaozhong" wrote:
> I am reading in a xml from a web service.
Not that pretty/efficient but you could use contenttype contrib
temporarily.
IF ClassB has a ForeignKey to Class A could you extract the Class A
model from a foreign key via Class B's .meta?
Or the Class B could have a callable method which returned the
instance of the model you want...
No
Brain do you find it a little slow?
Vitaly Babiy
On Tue, Jan 6, 2009 at 12:00 PM, Brian wrote:
>
> For Python/Django I tend to like Komodo's Editor, as I am a fan of
> auto-complete and $free.
> >
>
--~--~-~--~~~---~--~~
You received this message because you ar
Hi everyone,
Been bashing against this one for a while now and am keen for
suggestions. I'm trying to apply custom validation to forms within
Django's default admin. First up, I want to strip out all html from a
Title field. Following the official documentation I have developed
this:
---
Perhaps try:
http://www.crummy.com/software/BeautifulSoup/
is awesome and has good documentation
On 6 Jan 2009, at 15:27, shi shaozhong wrote:
>
> I am reading in a xml from a web service. I wish to find a Python
> script to turn the xml into a Python data array for further
> manipulation and t
> In your application directory, the one created by manage.py startapp, same
> as where models.py is.
Thanks.
Thats what I thought I should put it. This is getting weirder though.
Even though I got autodiscover working it still couldn't find it. I
then decided to go with the manual method of su
On Tue, Jan 6, 2009 at 12:14 PM, ChrisL <1angryc...@googlemail.com>wrote:
>
> Hi everyone,
>
> Been bashing against this one for a while now and am keen for
> suggestions. I'm trying to apply custom validation to forms within
> Django's default admin. First up, I want to strip out all html fro
Thanks!! It works now!
Max
--~--~-~--~~~---~--~~
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
dja
Form class really doesn't have `strip_tags` method. I think you are
interested in `strip_tags` functon from `django.utils.html`(and your
comment says the same). So your method may look like this:
def clean_title(self):
from django.utils.html import strip_tags
On Jan 6, 12:20 pm, Max wrote:
> Hello,
>
> Using the tutorial for detail.view, I changed the radio button to a
> drop down. I kept the view the same as the tutorial.
> Seehttp://dpaste.com/106018/
>
> When I select the choice on the drop down, I receive the error saying
> I didn't make a choi
On Tue, Jan 6, 2009 at 12:20 PM, Max wrote:
>
> Hello,
>
> Using the tutorial for detail.view, I changed the radio button to a
> drop down. I kept the view the same as the tutorial. See
> http://dpaste.com/106018/
>
> When I select the choice on the drop down, I receive the error saying
> I did
Hello,
Using the tutorial for detail.view, I changed the radio button to a
drop down. I kept the view the same as the tutorial. See
http://dpaste.com/106018/
When I select the choice on the drop down, I receive the error saying
I didn't make a choice. I have a mistake in either the drop down
On 2 Sty, 16:12, Rajesh Dhawan wrote:
> Here's another way to solve this: Add a rendered_version field to your
> Message model and populate it at the time that the message is saved
> (perhaps by overriding the Message.save method). This way, you would
> just need to write {{ message.rendered_ve
On Tue, Jan 6, 2009 at 9:43 AM, bongo wrote:
>
> Thanks. It is still not working but probably for another reason (maybe
> I have put the admin.py in wrong directory or something).
>
> Your tip of deleting all the pyc files now results in "Discovered!"
> being printed so I think autodiscover is ac
On Tue, Jan 6, 2009 at 7:16 AM, Jay wrote:
>
> Karen, thanks for your comments, you are right.
> However, it turns out that the file "...\Django-1.0.2-final\django
> \utils\__init__.py" has size 0, and it seems when using winzip ( I
> just realized why 7-zip may have been required for unzipping),
Thanks a lot Graham. I will upgrade my modwsgi to v2.3. Looking
forward to the v3.0 to see if the fix on issue #29 will fix my problem
as well.
Chunlei
On Jan 5, 3:40 pm, Graham Dumpleton
wrote:
> On Jan 6, 4:41 am, Chunlei Wu wrote:
>
> > Hi,
>
> > We have a web app running on Django
On 5 Jan, 11:41, Deniz Dogan wrote:
> On 5 Jan, 10:47, Deniz Dogan wrote:
>
>
>
> > Hi
>
> > I'm having trouble when using the AuthenticationForm in Django. It
> > tells me that I haven't enabled cookies, even though I'm completely
> > sure that I have. I get this error:
>
> > "Your Web browser
For Python/Django I tend to like Komodo's Editor, as I am a fan of
auto-complete and $free.
--~--~-~--~~~---~--~~
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@googl
I use Gedit in gnome and some plugins
Works well.
Vitaly Babiy
On Tue, Jan 6, 2009 at 11:45 AM, Santiago wrote:
>
> i recently switched to screen + vim with omnicomplete for python and
> html...
>
> komodo edit its pretty good too
>
> 2009/1/7 martyn :
> >
> > Hi
> >
> > http://pyrox.utp.ed
i recently switched to screen + vim with omnicomplete for python and html...
komodo edit its pretty good too
2009/1/7 martyn :
>
> Hi
>
> http://pyrox.utp.edu.co/
>
> Regards
>
> Bye.
>
> On Jan 6, 9:34 am, roberto wrote:
>> I tried them all (almost ... I think... at least the free ones).
>
I have django-tagging installed and working fine. I have a model
called Plane, which has a few hundred objects in the database, almost
all of them with at least one tag. The tagging_tag, and the
tagging_taggeditem table in my database looks fine. All the tags are
listed there correctly. When I loo
On 06.01-08:03, dchandek wrote:
> [ ... ] But shouldn't this be addressed in the
> validation code?
ps: no, the validation code would exist as it currently does. i am
only suggesting a change in convention, not the actual options or
their meanings.
--~--~-~--~~
On 06.01-08:03, dchandek wrote:
[ ... ]
>> i would be against unifying the options as i can imagine a more complex
>> environment (i.e. a database trigger or complex type not known to
>> django) where there may be a distinction and i believe the current
>> distinction is a clear one. it may be wo
After upgrading old django 0.96 app to 1.0.2 and now using the new
admin method I cannot get autodiscover to actually discover my new
admin.py
I have put print statements in my admin.py to check whether its
getting called.
What could be going on? I can't see anything I am doing that differs
from
on 6 jan, 14:54, Polat Tuzla wrote:
(snip)
> The reason why I need to separate models and managers into different
> files is that they have simply grown to thousands of lines.
>
It's indeed a very compelling reason !-)
But (simple suggestion - I know nothing about your project...) don't
you see
> i would be against unifying the options as i can imagine a more complex
> environment (i.e. a database trigger or complex type not known to
> django) where there may be a distinction and i believe the current
> distinction is a clear one. it may be worthwile to imply that setting
> 'null=True'
Hi
http://pyrox.utp.edu.co/
Regards
Bye.
On Jan 6, 9:34 am, roberto wrote:
> I tried them all (almost ... I think... at least the free ones).
> - Pyscripter is really nice but it is true, it is only for windows.
> (If it is developed with python it should be platform-independent,
> shouldn' b
I am reading in a xml from a web service. I wish to find a Python
script to turn the xml into a Python data array for further
manipulation and to be saved in a .dbf file.
Has anyone tried the following script?
http://code.activestate.com/recipes/534109/
How do I use it?
Regards.
David
--~--~
On 06.01-07:38, Lee Braiden wrote:
[ ... ]
> On Tue, 2009-01-06 at 00:05 -0700, Jeff Anderson wrote:
> > Malcolm Tredinnick wrote:
> > > I don't think we'd want to get too subtle here. Either it makes
> > > sense for all non-text fields, or it doesn't.
> > Agreed I simply haven't spent any time th
Yep, reading the documentation helps ;).
But here's how your code should look:
{% for art in my_art_list %}
{% cycle '' '' '' %}
{% cylce '' '' '' %}
{% empty %}
You
Thanks. It is still not working but probably for another reason (maybe
I have put the admin.py in wrong directory or something).
Your tip of deleting all the pyc files now results in "Discovered!"
being printed so I think autodiscover is actually being run now. Its
strange but I thought modifying
I tried them all (almost ... I think... at least the free ones).
- Pyscripter is really nice but it is true, it is only for windows.
(If it is developed with python it should be platform-independent,
shouldn' be ?) (no support for sql queries I think)
- Eclipse + PyDev (no good support for sql que
On Jan 6, 12:22 am, Malcolm Tredinnick
wrote:
> Right now, with trunk or Django 1.0, it's not particularly easy without
> using custom SQL or extra().
Ok! Thanks for clearing that up for me, I'll filter it manually.
--~--~-~--~~~---~--~~
You received this messa
1. Check your settings.py if it uses the correct urls.py file. Actually at
first check if the correct settings.py is being used
2. Remove .pyc and pyo files from your project's directory to be sure that
python interpreter really takes into account changes in source files.
Regards,
--
Valts
On Tu
I am in the process of upgrading an old django 0.96 application to
1.0.2 final.
I am having real trouble getting the admin app to run with my models
included with the new method. After some trial an error it seems that
autodiscover is never being called at all in my urls.py. However, the
url mapp
Karen, thanks for your comments, you are right.
However, it turns out that the file "...\Django-1.0.2-final\django
\utils\__init__.py" has size 0, and it seems when using winzip ( I
just realized why 7-zip may have been required for unzipping), the 0
size file is *not* written out. In fact "viewi
Yes, indeed! It's the models.Manager I'm talking about.
I tried to keep my example short and easily comprehensible without
code snippets, but i think I've achieved the opposite.
Sorry for any inconvenience.
Polat Tuzla
On Jan 6, 3:37 pm, bruno desthuilliers
wrote:
> On 6 jan, 14:08, Lee Braiden
1 - 100 of 138 matches
Mail list logo