Non-programmer looking to create more sophisticated site

2007-12-06 Thread michaelbuddy
I'm ok in CSS, HTML, I use a text editor to make sites, typically I've been using a wiki framework called pmwiki created in PHP and is pretty nice. But it doesn't have an RTF editor. I've been wanting to get into Python, thinking it could be good for certain interactivity which I haven't impleme

www.200836.com---Peking 2008 olympic pin official licensed product

2007-12-06 Thread feiallen
$www.200836.com--- why we buy Peking 2008 Olympic Games-- souvenirs 1 low price 2 best quality-- licensed products by Peking Organizing Committee 3 many products to choose 4 most precious--limited circulation 1 our website www.200836 was aimed at that all the people in the world ca

Re: Attribute Error on Dumpdata

2007-12-06 Thread ttk
I think I found my problem... I failed to add "objects = models.Manager()" into my models which would explain why that attribute isn't found. I'll try this out but if anyone has additional suggestions, I'm all ears. cheers, -ttk --~--~-~--~~~---~--~~ You received

Attribute Error on Dumpdata

2007-12-06 Thread ttk
Hello all, I'm getting an attribute error when I try running the dumpdata command on any of my apps. news = app name NewsEntry = model Output: = C:\someproject>manage.py dumpdata news Traceback (most recent call last): File "C:\someproject\manage.py", line 11, in execute_manager(

Re: loaddata problem with boolean null in fixture - anyone seen this?

2007-12-06 Thread Malcolm Tredinnick
On Thu, 2007-12-06 at 14:38 -0800, Shev wrote: [...] > Regardless, I don't see why the loaddata command should choke on a > null value for a Boolean if the models.py allows it. This is a mistaken assumption. Since some of the constraints specified in models.py are enforced at the database level,

Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-06 Thread Malcolm Tredinnick
On Thu, 2007-12-06 at 21:21 +0530, Kenneth Gonsalves wrote: > > On 06-Dec-07, at 9:04 PM, Empty wrote: > > > http://www.mail-archive.com/django-users@googlegroups.com/ > > msg37967.html > > > > and this: > > > > http://www.djangoproject.com/documentation/db-api/#order-by-fields > > read it, i

Re: Django deployment à lá Capistrano

2007-12-06 Thread Timothee Peignier
I've made a quick and dirty howto about using capistrano with django : http://cyberdelia.tryphon.org/blog/2007/10/27/django-capistrano/ It should help us waiting for a more django and pythonic way to do it ;) Cheers, -- Timothée Peignier http://people.tryphon.org/~tim/ On Mon, 2007-09-10 at 11

Re: How to add to DjangoResources?

2007-12-06 Thread kent
On Dec 6, 5:29 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Register yourself as a user and try Thank you. In case anyone else has the same problem, I didn't actually register and log in, I clicked "Settings" and put in my name and email there. --~--~-~--~~~---~--~

Re: loaddata problem with boolean null in fixture - anyone seen this?

2007-12-06 Thread Shev
If you mean, add the field/column - sort of. It was added to a database in use, I used dbmigration to handle the upgrade. Regardless, I don't see why the loaddata command should choke on a null value for a Boolean if the models.py allows it. On Dec 6, 4:25 pm, ashwoods <[EMAIL PROTECTED]> wro

Re: How to add to DjangoResources?

2007-12-06 Thread Ramdas S
Register yourself as a user and try It works On Dec 7, 2007 2:06 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > > I am trying to add an app to > http://code.djangoproject.com/wiki/DjangoResources > > but when I submit I get > 500 Internal Server Error (Submission rejected as potential spam) > > H

x|add:-1 in templates doesn't work as I expect.

2007-12-06 Thread J. Clifford Dyer
Hello. I'm trying to get a template to render previous and next links on a series of pages, as follows. Previous | Next And I've come across some unexpected behavior. The first line does not work (add:-1), while the second line does. The first line throws a TemplateSyntaxError ("add req

Re: loaddata problem with boolean null in fixture - anyone seen this?

2007-12-06 Thread ashwoods
did u add that after a syncdb maybe? On 6 Dez., 21:55, Shev <[EMAIL PROTECTED]> wrote: > One of my models has a field like this: > > confirm = BooleanField(blank=True, null=true) > > When I use Django's dumpdata command to export my data to a fixture, > and then try to re-import with loaddata, I

Re: Specifying tables with schema names in models

2007-12-06 Thread Ian
On Dec 6, 7:59 am, Sprenger <[EMAIL PROTECTED]> wrote: > I've been trying to get django working with a legacy system which I > feel could benefit greatly from it, however I've managed to hit a > critical snag. Our setup is such that we have tables in multiple > schemas, so (for example) there migh

Re: Help debugging Django/MySQLdb exception

2007-12-06 Thread Brian Morton
I am running with DEBUG = True. That's a good find. Thanks. I figured out the problem, but I think there is a bug here. The field from the data that I believed to be the primary key was really not a key, and duplicated itself. I had that field set as primary_key=True in the model. Thus, the

Join Me Dear @@@@

2007-12-06 Thread Pooja
http://www.all-foryou.com/community --~--~-~--~~~---~--~~ 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 emai

Join Me Dear @@@@

2007-12-06 Thread Pooja
http://all-foryou.com/community --~--~-~--~~~---~--~~ 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 [

loaddata problem with boolean null in fixture - anyone seen this?

2007-12-06 Thread Shev
One of my models has a field like this: confirm = BooleanField(blank=True, null=true) When I use Django's dumpdata command to export my data to a fixture, and then try to re-import with loaddata, I see an error message that looks like this: Problem installing fixture '/foo/bar/datadump.json'

How to add to DjangoResources?

2007-12-06 Thread Kent Johnson
I am trying to add an app to http://code.djangoproject.com/wiki/DjangoResources but when I submit I get 500 Internal Server Error (Submission rejected as potential spam) How can I get this to work? I am trying to add this to the "Django application components" section: * [http://blogcosm.com

ANN: Blogmaker blogging application

2007-12-06 Thread Kent Johnson
PreFab Software has released Blogmaker (tm), a full-featured, production-quality blogging application for Django. It supports trackbacks, ping and comments with moderation and honeypot spam prevention. Blogmaker is free, open-source software licensed under a BSD license. Blogmaker powers the

Re: Strange FastCGI problems

2007-12-06 Thread TP
No, not using @user_passes_test anywhere. Thanks though! On Dec 6, 1:43 pm, yml <[EMAIL PROTECTED]> wrote: > TP are you using @user_passes_test decorator with urlresolvers (url, > reverse ...). I had a problem similar to what you are describing and I > finally find out that this problem was infa

Caching when caching is disabled

2007-12-06 Thread JLathem
I have a template that extends another. Each template have variables in them. When the variable in the parent template changes the HTML is not updated. That is to say, a variable in the parent page is set to X I view the page for the first time and I see X. The vale of the variable changes to

Re: Strange FastCGI problems

2007-12-06 Thread yml
TP are you using @user_passes_test decorator with urlresolvers (url, reverse ...). I had a problem similar to what you are describing and I finally find out that this problem was infact related to the bug described there: http://code.djangoproject.com/ticket/5925 I hope that help On Dec 6, 3:31

How to tell generic create view about ForeignKey

2007-12-06 Thread Florian Lindner
Hello, I Have this model: class BlogComment(Model): blogEntry = ForeignKey(BlogEntry, edit_inline=STACKED, num_in_admin=1) author = CharField(max_length=100, core=True) authorMail = EmailField(blank=True) content = TextField(core=True) Now I want to use the generic.create_u

Re: Combating submission form Spam

2007-12-06 Thread Kent Johnson
Ned Batchelder wrote: > I have been hoping, but not managing, to find the time to create a > Django implementation of my anti-spam technique: Stopping Spambots with > hashes and honeypots (http://nedbatchelder.com/text/stopbots.html). It > works very effectively without any extra work on the

Custom Feed Elements

2007-12-06 Thread J Arnold
Is there an easy way to add custom RSS elements using the syndication framework? I have a client who wants to use the Media RSS namespace: http://en.wikipedia.org/wiki/Media_RSS Thanks, J --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Problems saving values from SelectDateWidget

2007-12-06 Thread Stupid Dustbin
Hmm just to add on. This not only happen with SelectDateWidget. It happens with DateField with TextInput Widget too and also ModelChoiceField. Saving all other fields work fine. #these 2 >.< country = forms.ModelChoiceField(queryset=Country.objects.all() ) birth_date = forms.DateField() #When I

Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-06 Thread Rajesh Dhawan
Hi, > "locations_location" is really missing in FROM-clause entry... why? Drop in to "manage.py shell", and try a query set with the ordering "locations_location.id". Does that work? If not, add a select_related() to your query set. Does that work? If not, verify that the Location table is in an

Re: (solved) Re: Custom template tag and filters in resolve_variable

2007-12-06 Thread Manakel
Nice Nice, i 'll add this to my django reference sheet On Dec 6, 3:34 pm, Empty <[EMAIL PROTECTED]> wrote: > Nice info. This was just asked on the IRC channel a couple nights > ago. I'll be sure to pass it on. > > Michael Trier > blog.michaeltrier.com > > On Dec 5, 2007 7:09 PM, Michal Ludvig <

Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-06 Thread Kenneth Gonsalves
On 06-Dec-07, at 9:04 PM, Empty wrote: > http://www.mail-archive.com/django-users@googlegroups.com/ > msg37967.html > > and this: > > http://www.djangoproject.com/documentation/db-api/#order-by-fields read it, implemented it - still get the same error -- regards kg http://lawgon.livejournal

Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-06 Thread Empty
Read this: http://www.mail-archive.com/django-users@googlegroups.com/msg37967.html and this: http://www.djangoproject.com/documentation/db-api/#order-by-fields Michael Trier blog.michaeltrier.com On Dec 6, 2007 10:21 AM, sector119 <[EMAIL PROTECTED]> wrote: > > Hi! > > I use current trunk and

ordering. missing FROM-clause entry for table "locations_location"

2007-12-06 Thread sector119
Hi! I use current trunk and I can't order by location field. When I try, I'he get an error: missing FROM-clause entry for table "locations_location" LINE 1: ... FROM "organizations_organizationoffice" ORDER BY "locations... ^ Exception Location: /home/sector119/devel/django_src/django/db/ bac

Re: How can I show only related data on the admin page when using edit_inline?

2007-12-06 Thread Mathew Inkson
Thanks Rajesh, I appreciate the reply. > That's because Django can not read your mind. At least, not yet :) > Ha, yes I was being a bit naive. Nevertheless, I thought that there may have been another flag that I could set to tell that that this was what I wanted. You've already answered tha

Specifying tables with schema names in models

2007-12-06 Thread Sprenger
I've been trying to get django working with a legacy system which I feel could benefit greatly from it, however I've managed to hit a critical snag. Our setup is such that we have tables in multiple schemas, so (for example) there might be one called "app_sys" and another called "app_prod", with t

Re: How can I show only related data on the admin page when using edit_inline?

2007-12-06 Thread Rajesh Dhawan
Hi Mathew, > class Party(models.Model): > > > class Partygoer(models.Model): > > party = models.ForeignKey(Party) > > class Conversation(models.Model): > party = models.ForeignKey(Party, edit_inline=models.TABULAR) > partygoer = models.ForeignKey(Partygoer, core=True) >

Re: (solved) Re: Custom template tag and filters in resolve_variable

2007-12-06 Thread Empty
Nice info. This was just asked on the IRC channel a couple nights ago. I'll be sure to pass it on. Michael Trier blog.michaeltrier.com On Dec 5, 2007 7:09 PM, Michal Ludvig <[EMAIL PROTECTED]> wrote: > > Michal Ludvig wrote: > > > for the project I'm working on I needed to create a custom temp

Re: Order By Calculated Value??

2007-12-06 Thread RajeshD
On Dec 5, 5:17 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > Here is my blog application, which contains the two models: Thanks. So, as I said in the post above, Entry.save() override won't work with your M2M categories. That's because the M2M objects are saved only after the Entry is saved and

How can I show only related data on the admin page when using edit_inline?

2007-12-06 Thread Mathew Inkson
Hi all, I'm having trouble restricting the values of the drop-down boxes on an edit_inline admin section to reflect the value of the parent page that it's being edited in. For example (this is not my project, but something simpler I just thought of). Say, for some bizarre reason, I wanted to

Re: Order By Calculated Value??

2007-12-06 Thread RajeshD
Hi Darryl and Tane, > > [untested with Many2Many, but should work, it works for ForeignKeys] Actually, the approach below won't work for M2M even though it does for FKs. > In your Entry save() method call the save method of each of your related > categories after you do your super().save() > >

Re: Combating submission form Spam

2007-12-06 Thread Ned Batchelder
I have been hoping, but not managing, to find the time to create a Django implementation of my anti-spam technique: Stopping Spambots with hashes and honeypots (http://nedbatchelder.com/text/stopbots.html). It works very effectively without any extra work on the part of real humans. --Ned.

Re: Is there a better way to do this with the DB API?

2007-12-06 Thread Malcolm Tredinnick
On Wed, 2007-12-05 at 20:02 -0800, globophobe wrote: [...] > class Stack(models.Model): > title = models.CharField(max_length=100) > description = models.TextField() > > def __unicode__(self): > return self.title > > class Card(models.Model): > stack = models.ForeignKey(

Re: Order By Calculated Value??

2007-12-06 Thread Tane Piper
Hi darryl, Ok I tried as you said above, but it gives me two problems: When I try to make my first category to use for entries I get this error: instance needs to have a primary key value before a many-to-many relationship can be used. So ok, it's looking for an Entry instance to exist, but t