Re: I would like to report a bug but I can't log in

2009-01-03 Thread Malcolm Tredinnick
On Sat, 2009-01-03 at 22:03 -0800, Friendless wrote: > On Jan 4, 2:42 pm, "Karen Tracey" wrote: > > I'll admit your tone here is starting to make me lose interest in your > > problem report. > > Admit it, you weren't very interested in the first place. You've given > me all

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Karen Tracey
On Sun, Jan 4, 2009 at 1:03 AM, Friendless wrote: > > On Jan 4, 2:42 pm, "Karen Tracey" wrote: > > I'll admit your tone here is starting to make me lose interest in your > > problem report. > > Admit it, you weren't very interested in the first

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Friendless
On Jan 4, 2:42 pm, "Karen Tracey" wrote: > I'll admit your tone here is starting to make me lose interest in your > problem report. Admit it, you weren't very interested in the first place. You've given me all sorts of reasons as to why the bug shouldn't be fixed, despite

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
On Jan 4, 3:11 pm, garagefan wrote: > this is rather aggravating as i'm unsure what exactly I need to give > you to help me :/ this isn't your fault at all, as i'm an > unexperienced with working with servers, mod_python, python and > django. > > i am learning all this

Re: Tutorial Problem

2009-01-03 Thread Justin Myers
It failed after it imported your settings file the first time, so I don't think the problem's there; it also got the folder name right, so it looks like it's just failing to recognize it as a Python package. Any chance you got rid of __init__.py (empty file in the mysite folder) by mistake? On

Please help me anyone

2009-01-03 Thread priyankeshu
ok... i am good at html and CSS and i have done little bit of old school C programming and databases i have never got a chance to work on real world programming projects i am looking for an online guru (to teach me python/django) i want to learn how to build websites in python. You can guide me

File Download

2009-01-03 Thread Sparky
Hello. This is probably a silly question but I have files being stored onto a server and strangely getting them there was very easy but how can I get them back down? Thank you for your patience in advance, Sam --~--~-~--~~~---~--~~ You received this message

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Karen Tracey
On Sat, Jan 3, 2009 at 4:43 PM, Friendless wrote: > I'm using MySQL 5.0.51a on Ubuntu Hardy Heron. > Hmm, that looks later than what I tested on (5.0.45). I'm not wanting to mess with the install I have on Ubuntu, so I installed the latest 5.0.67 community version

Re: Tutorial Problem

2009-01-03 Thread waltbrad
On Jan 2, 9:01 am, rvwilliams wrote: > Hi > > I'm just getting started on django and I'm using a Windows Vista > version.  Yesterday I completed about half of the tutorial without too > much difficulty.  Now I'm trying to carry on from where I stopped. > The first

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread garagefan
this is rather aggravating as i'm unsure what exactly I need to give you to help me :/ this isn't your fault at all, as i'm an unexperienced with working with servers, mod_python, python and django. i am learning all this as I go along. i've got two websites on my server, both with different IP

Re: Writing your first Django app

2009-01-03 Thread johan
Yes I been following your advise and done some basic Python learning. I should obviously been doing this before starting with the tutorial but I still think it should be a good idea to add the finessed code in the end of each tutorial. Anyway thanks Karen for taking time to help me out. 2009/1/3

setting cookies following comment post

2009-01-03 Thread Eric Abrahamsen
Hi there, I'm adding a "remember me" checkbox to comment forms, so that regular commenters can avoid having to enter their personal information, if they want. I was originally thinking of making this a function attached to the comment_was_posted signal, but it will have to be implemented

Re: Tutorial Problem

2009-01-03 Thread johan
Hopefully some more experienced will be able to help you out. You have not updated the database or changed any permissions after it worked last time? 2009/1/4 rvwilliams > > Absolutely certain! > > > > > --~--~-~--~~~---~--~~ You

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
On Jan 4, 1:39 pm, garagefan wrote: > there is currently only one virtual host set up, for the site i'm > working on. I do not need anything to happen with the other url. But why are you mentioning 'site2' in one of the other posts and seeing for it what you only

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread garagefan
there is currently only one virtual host set up, for the site i'm working on. I do not need anything to happen with the other url. my django files are in a folder at the same level as the root folder of the site. i simply need a virtual host for www.website.net that sits at /home/ site1/ on my

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
On Jan 4, 12:53 pm, garagefan wrote: > no, as then i would need to use, for example...www.website.net/mysite/* > instead ofwww.website.net/*for the various apps. If you are mounting it at root of web site, you should not be setting django.root with PythonOption

Re: Problems with send_mail and the string formatting operator

2009-01-03 Thread Karen Tracey
On Sat, Jan 3, 2009 at 8:48 PM, OwenK wrote: > > I have a simple function for sending activation emails to new users, > but it always raises a ValueError of "unsupported format character > '/' (0x2f) at index 51". You can see the function at > http://dpaste.com/105078/ >

Re: Problems with send_mail and the string formatting operator

2009-01-03 Thread Malcolm Tredinnick
On Sat, 2009-01-03 at 17:48 -0800, OwenK wrote: > I have a simple function for sending activation emails to new users, > but it always raises a ValueError of "unsupported format character > '/' (0x2f) at index 51". You can see the function at http://dpaste.com/105078/ > . the newuser argument is

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread garagefan
i currently only have two sites, one is not being developed at this time.. but w/o the virtual host that site displays the same apps and info at it's url as the site i am working on, which i do not want to happen. what i have copied for my virtual host is really everything i have. As i said, i

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread garagefan
no, as then i would need to use, for example... www.website.net/mysite/* instead of www.website.net/* for the various apps. as i said the locations worked perfectly before attempting to create the virtual host. right now i need to have this virtual host point to the correct website on my server.

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
BTW, with mod_python, if trying to host multiple Django sites inside of same VirtualHost, you must set PythonInterpreter directive differently for each. You really need to provide a more complete example showing all the sites and how they site with respect to each other and the VirtualHost in

Problems with send_mail and the string formatting operator

2009-01-03 Thread OwenK
I have a simple function for sending activation emails to new users, but it always raises a ValueError of "unsupported format character '/' (0x2f) at index 51". You can see the function at http://dpaste.com/105078/ . the newuser argument is a user instance, and active_key is a string of length 25

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
On Jan 4, 12:17 pm, garagefan wrote: > I've read the documentation, and it doesn't seem clear enough, or > provide a fully working example? > > i've copied what i have in my python.conf file, keep in mind that i > have removed site specific names and have made them

python.conf question, multiple sites on same server?

2009-01-03 Thread garagefan
I've read the documentation, and it doesn't seem clear enough, or provide a fully working example? i've copied what i have in my python.conf file, keep in mind that i have removed site specific names and have made them generic NameVirtualHost *:80 ServerName www.website.net

Re: "Practical Django Projects" -- browsing by tag

2009-01-03 Thread waltbrad
> On Jan 1, 3:23 pm,waltbrad wrote: > > > Okay, I'm getting closer. Well, I got all my templates to work. Could someone tell me if it was just me missing something or if there are mistakes in that book in regards to tagging? I've been following along with the Hedged Down

Re: Comma or Currency formats

2009-01-03 Thread David
On Jan 3, 5:33 am, phoebebright wrote: > On Jan 2, 7:06 pm, Shay Ben Dov wrote: > > > Hi, > > > I'm using GAE and wondering how come there is no comma insertion > > orcurrencyformating of floating numbers like: > > > {{ value|floatformat:2 }}

Re: getting "duplicate key violates unique constraint" error from form even with "unique_together" in model

2009-01-03 Thread hotani
well, doy. I just noticed that when attempting to create a form from a model I called forms.Form instead of ModelForm. I'll mess with it some more and see what happens. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Comments Framework and Authentication

2009-01-03 Thread Tim
Hi all - I am having a bit of difficulty with the Django comments framework - more specifically, dealing with comment modifications by site users as well as moderators. Basically, I have a site in which users can post comments (using the out-of-the-box commenting framework). I'd like to have a

Flat-file Field

2009-01-03 Thread Randy
I am trying to figure out how to create a model field that doesn't pull from the database but instead pulls from the file system, shows it in the forms as a Textarea, then just saves it back to file system when the model is saved. In my mind it seems pretty simple. I have read the custom models

Re: getting "duplicate key violates unique constraint" error from form even with "unique_together" in model

2009-01-03 Thread hotani
Thanks Karen, that fixes the problem in the django admin. At least now I know that everything is ok on the database and model fronts. However, in my own form it is still not validating this relationship. Here is what I have right now: in a forms.py file there is a base form for the Case model:

Re: Ten reasons why couchdb is better than (off topic)

2009-01-03 Thread Petite Abeille
On Jan 3, 2009, at 11:47 PM, Masklinn wrote: > It's worse than comparing apples and oranges, it's comparing apples > and potatoes. Except if you are French... as potatoes are named "pomme de terre"... literally "ground apple"... :P http://en.wikipedia.org/wiki/Potato#Etymology Cheers,

Re: Ten reasons why couchdb is better than (off topic)

2009-01-03 Thread Masklinn
On 3 janv. 09, at 22:08, mobil wrote: > Ten reasons why couchdb is better than (off topic) > > > http://pylab.blogspot.com/2009/01/ten-reasons-why-couchdb-is-better-than.html > > Guys I wrote up a small list of reasons why i think couchdb is way > bettter than mysql. Do

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Ramiro Morales
On Fri, Jan 2, 2009 at 8:03 AM, Friendless wrote: > > I tried to report a bug anonymously and got told I was spam, so I > signed up, got the email, activated the account, and still can't log > in and still can't report the bug. I've been using Django 30 minutes >

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Friendless
I'm using MySQL 5.0.51a on Ubuntu Hardy Heron. As you say, this is a somewhat obscure bug. I guess the question is, do you want your product to work or not? You've acknowledged it's a valid problem. I tried to use Django 0.92 when it was the latest version and inspectdb fell over. I can't

Re: How to populate a form field with a Select widget

2009-01-03 Thread phoebebright
Following on from this example, I am trying to use values from a table to populate a choicefield (and been at it for 2 days trying every method I can find in google) Clearly from the output below, I am creating the wrong kind of data type, but don't know how to change it: THIS VERSION

Re: Form Media

2009-01-03 Thread tom.s.macken...@gmail.com
I dont believe I missed this... It wasnt showing because the browser was interpreting it as a html tag.. haha. nm. On Jan 3, 11:52 am, "tom.s.macken...@gmail.com" wrote: > Hello, > > I am trying incorporateFormMediain my forms and I'm having some > trouble

Ten reasons why couchdb is better than (off topic)

2009-01-03 Thread mobil
Ten reasons why couchdb is better than (off topic) http://pylab.blogspot.com/2009/01/ten-reasons-why-couchdb-is-better-than.html Guys I wrote up a small list of reasons why i think couchdb is way bettter than mysql. Do let me know what you think -- Gpirate the top torrent search engine

Show/Hide fields depending on another class field value

2009-01-03 Thread Patrick
Suppose I have something like this in models.py: class EquipmentModel(models.Model): ... wireless = booleanField(); manageable = booleanField(); class Equipment(models.Model): equipment_model = ForeignKey(EquipmentModel) ... ssid = charField(...) ip =

RELEASED: django-batchimport 0.1

2009-01-03 Thread Keyton Weissinger
Greetings All, I've just finished the 0.1 version of django-batchimport and have released it on code.google.com. Go to http://code.google.com/p/django-batchimport/ for more information (and SVN checkout). This application can be added to any django project to give it batch import capability

Custom SQL not installed while running test suite

2009-01-03 Thread Tyler Erickson
I have an app that provides some custom SQL statements for populating the test database (located in /particles/sql/particle.sql). The app's database table (particles_particle) is populated correctly when I run the test case for the app (i.e. python manage.py test particles) but the database

Form Media

2009-01-03 Thread tom.s.macken...@gmail.com
Hello, I am trying incorporate Form Media in my forms and I'm having some trouble interpreting how this is done via, http://docs.djangoproject.com/en/dev/topics/forms/media/ My goal is to use the admin/media/css/form.css in my template. Here is my form: class ApprovalForm(ModelForm):

Re: Tutorial Problem

2009-01-03 Thread rvwilliams
Absolutely certain! --~--~-~--~~~---~--~~ 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

Redirect parent from within iframe without losing session

2009-01-03 Thread Berco Beute
My page shows a (logged in) user an iFrame but when the iframe redirects the browser after it's done, the session is lost. The redirecting of the parent (by the iframe) is done as follows: = function load() { parent.location.href='

ipdb causing problems with docstring tests of default apps

2009-01-03 Thread Tyler Erickson
I have noticed that running unit tests for my own apps can interfere with the testing of some of the django internal apps (auth, sessions, sites, etc.). I have been using ipdb to debug and to help write views and tests, and it appears that importing the ipdb module (import ipdb) causes many of

Re: Are Dynamic fields possible?

2009-01-03 Thread Matias Surdi
I've done it, although it was not a trivial task. This helped me a lot: http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/ Xan wrote: > Hi, > > I just want to know if django support dynamic fields, that is the > option of not specied the type of field in the model and that user > could

Are Dynamic fields possible?

2009-01-03 Thread Xan
Hi, I just want to know if django support dynamic fields, that is the option of not specied the type of field in the model and that user could specify in application. I think for examples about an application for doing notes. In one note, one want to have: title, body, media, etc. but the

custom field value representation

2009-01-03 Thread Matias Surdi
Hi, Suppose I have the following model: class Document(BaseModel): name = models.CharField(max_length=150,blank=True) description = models.TextField(blank=True) file = Models.FileField(upload_to="data/documentation/document/%Y/%m/%d",blank=True) And suppose I've a model I

Re: Link on static HMTL not clickable

2009-01-03 Thread SG_Muse
Btw, maybe useful :) My urls.py: from django.conf.urls.defaults import * from django.views.generic.simple import direct_to_template from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns =

Link on static HMTL not clickable

2009-01-03 Thread SG_Muse
Hello :) Once again I would like you to ask you for your help. I designed two static pages, which I want to link to eachother. Both pages are viewable, when I explicitly change the URL in the adress-bar. However, I cannot navigate to the other static page by means of the (href) link on the first

Re: Migrating MySQL -> Postgre, any working solutions?

2009-01-03 Thread alex.gay...@gmail.com
Not the most exciting, but you could always use the orm to pull data out of the old db and thenswl to put it into the new one(or vice versa). On Jan 3, 4:10 am, Szymon wrote: > Hello, > > I've found in archives message: > > > Check out django_extensions > >

Re: is it possible to provide initial data for a model with a foreign key to User model?

2009-01-03 Thread Russell Keith-Magee
On Sat, Jan 3, 2009 at 3:01 AM, adrian wrote: > > > I happen to have a bunch of models that all have foreign keys, but > there is an order in which they could all be initialized. I have > figured out how to initialize the built-in User model using Json data, > but I can't

Re: Comma or Currency formats

2009-01-03 Thread phoebebright
On Jan 2, 7:06 pm, Shay Ben Dov wrote: > Hi, > > I'm using GAE and wondering how come there is no comma insertion > orcurrencyformating of floating numbers like: > > {{ value|floatformat:2 }} built_in filter > > Shay You could try

Migrating MySQL -> Postgre, any working solutions?

2009-01-03 Thread Szymon
Hello, I've found in archives message: > Check out django_extensions app, > http://code.google.com/p/django-command-extensions/. > It has a command, dumpscript [...] It takes ages to complete. I've tried that method yesterday. I've turned off my web server and ran that command. After 6 hours

Re: Tutorial Problem

2009-01-03 Thread johan
I just started using Django as well Are you sure you have not made any changes to your settings file? Only a guess! 2009/1/2 rvwilliams > > Hi > > I'm just getting started on django and I'm using a Windows Vista > version. Yesterday I completed about half of the

Re: swapping out request.user in views

2009-01-03 Thread join.toget...@gmail.com
I agree that hacking request.user is a bad idea here. Write a function for your view that returns data for a given user ID, then call it with the owner or visitor's ID. I would also have two separate views unless what the users are doing is very similar. On Jan 2, 5:54 am, bruno desthuilliers

Re: I18n when using standalone templates

2009-01-03 Thread Iwan Vosloo
On Sat, 2009-01-03 at 13:23 +1100, Malcolm Tredinnick wrote: > Dictionary updates are safe in Python. Oh, I see, because of the GIL... Thanks. -i --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"