Re: How do I set up a python web server on Windows XP?

2008-09-19 Thread Karen Tracey
On Fri, Sep 19, 2008 at 11:16 AM, Jason <[EMAIL PROTECTED]> wrote: > > OK, dumb question... it comes with a server? > > Do you have a link? > > How do I get this development server running? > > A quick run through the online tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tut

Re: How do I set up a python web server on Windows XP?

2008-09-19 Thread Karen Tracey
On Fri, Sep 19, 2008 at 11:45 AM, Jason <[EMAIL PROTECTED]> wrote: > > I have read through that. It has taken me around and around in > circles. I have spent a day on this and haven't typed a line of code. > The guide seems to be written for OSX or Linux. As a Windows user I > feel lost, confused

Re: ultra-n00b models.Model syntax error

2008-09-21 Thread Karen Tracey
On Sun, Sep 21, 2008 at 4:21 PM, notatoad <[EMAIL PROTECTED]> wrote: > > i just set up django and started on the tutorial. i get this after > calling 'python manage.py sql polls' > > [snip] > File "/usr/local/django-apps/mysite/../mysite/polls/models.py", line 3 > >class Poll(mode

Re: Passing in a value from a url

2008-09-21 Thread Karen Tracey
On Sun, Sep 21, 2008 at 4:36 PM, djandrow <[EMAIL PROTECTED]> wrote: > > Hi, I am currently trying to pass in a value from a url and the > perform a query based on that, i've tried this: > > def category_view(request, category): >current_entries = > Entry.objects.filter(entry_cat=category)

Re: Passing in a value from a url

2008-09-21 Thread Karen Tracey
On Sun, Sep 21, 2008 at 5:29 PM, djandrow <[EMAIL PROTECTED]> wrote: > > Here is my model for entry; > > class Entry(models.Model): > >entry_id = models.AutoField(primary_key=True) >entry_date = models.DateField(auto_now_add=True) >entry_title = models.CharField(max_length=

Re: Model/admin page problem

2008-09-22 Thread Karen Tracey
On Mon, Sep 22, 2008 at 9:10 AM, tsmets <[EMAIL PROTECTED]> wrote: > I am running 1.0 on sqlite3 and I keep on getting > [snip] > TemplateSyntaxError at /admin/ > > Caught an exception while rendering: no such table: django_admin_log > > [snip] > What is wrong in my set up ... ? > It seems you di

Re: ordering results of a queryset by foreign fields

2008-09-22 Thread Karen Tracey
On Mon, Sep 22, 2008 at 10:04 AM, Vokial <[EMAIL PROTECTED]> wrote: > > Thank you for the answer. > > I already read the page you linked me (the django documentation is > becoming my second home :) ) and i tried what you said but i got this > error: > OperationalError at /search/1/ > (1054, "Unkno

Re: Change text box to a drop down box in the admin interface?

2008-09-22 Thread Karen Tracey
On Mon, Sep 22, 2008 at 11:51 AM, Jason <[EMAIL PROTECTED]> wrote: > > Could someone help with this? > > The admin panel is automatically generating my model. This is my > model. > > title = models.CharField(...) > parent = models.CharField(..., null = True) > > The admin panel is currently displa

Re: View error in tutorial 3 (URLCONF)

2008-09-22 Thread Karen Tracey
On Mon, Sep 22, 2008 at 11:52 AM, Caisys <[EMAIL PROTECTED]> wrote: > > Hi, > I am following the tutorials on django website. My problem is that > when i create url conf for views that do not exist, the admin site > ceases to work. > Mysite\urls.py includes: > (r'^admin/(.*)', admin.site.root), >

Re: Change text box to a drop down box in the admin interface?

2008-09-22 Thread Karen Tracey
On Mon, Sep 22, 2008 at 12:49 PM, Jason <[EMAIL PROTECTED]> wrote: > > Thanks for the reply Karen. > > With that being said I would still like to know just how easy or hard > it is to switch something like this around. In real terms its only a > minor change. Can this be achieved with a few lines

Re: MySQL case sensitivity

2008-09-22 Thread Karen Tracey
On Mon, Sep 22, 2008 at 2:29 PM, tcp <[EMAIL PROTECTED]> wrote: > > Hi, > > Getting started. > > I've got a MySQL database running on Windows (MySQL on Windows is not > case sensitive) > > I create a model called People which has a Class called Person. > Your terminology is confusing here. I thin

Re: Error in : Porting your apps from Django 0.96 to 1.0

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 3:55 AM, laspal <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying to port my apps from django 0.96 to 1.0. > I have made all the changes required for it but when I run > > /usr/bin/python manage.py runserver > I am getting error : > > Error: Can't find the file 'settings.py'

Re: Auto Discover on MediaTemple

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 8:31 AM, <[EMAIL PROTECTED]> wrote: > > Using the gs and Django container on MediaTemple, got my project > installed, it works when I don't have the admin info in the URLS.py, > when I add all of the info in the URLS.py and go to the site I get > this error: > > AttributeEr

Re: A question about spaces and passing variables...

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 11:23 AM, djandrow <[EMAIL PROTECTED]>wrote: > > I have a list of categories, which entries are filed into, then some > can click a category link in a template and it will take them to a > list of entries in that particular category. The problem is one of > this categories

Re: locale aware number formats

2008-09-23 Thread Karen Tracey
2008/9/23 pihentagy <[EMAIL PROTECTED]> > > On Sep 23, 12:28 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Wiadomość napisana w dniu 2008-09-23, o godz. 12:21, przez pihentagy: > > > > > How can I print a number using the locale's thousand separator and > > > decimal? > > > > > Basically I hoped

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 11:53 AM, Huuuze <[EMAIL PROTECTED]> wrote: > > I'm preparing to deploy my Django app and I noticed that when I change > the "DEBUG" setting to False, all references to static files (i.e., > JavaScript, CSS, etc..) result in HTTP 500 errors. > > Any idea what's causing that

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 12:14 PM, Huuuze <[EMAIL PROTECTED]> wrote: > > There are no tracebacks in this instance. I can see the non-descript > 500 errors appearing in my terminal window. > I don't understand. Are you saying you have configured ADMINS, etc. in settings.py so that 500 error trace

Re: A question about spaces and passing variables...

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 12:22 PM, djandrow <[EMAIL PROTECTED]>wrote: > > Thanks Karen, how does urlencode work though? > I imangine its a filter, but what does it do? > > Yes well the doc is a bit sparse for that filter, but if you do a little playing around with it and research into how spaces (a

Re: Cannot assign "": "Character.user_profile" must be a "UserProfile" instance.

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 5:47 PM, Simon Forman <[EMAIL PROTECTED]> wrote: > > I'm getting an error I can't figure out. > > I have a "UserProfile" class that is the AUTH_PROFILE_MODULE setting, > but then when I am trying to create an object from a model class that > has a ForeignKey for that UserPr

Re: pyRTF and unicode

2008-09-24 Thread Karen Tracey
On Wed, Sep 24, 2008 at 10:14 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > I'm creating some RTF pages using pyRTF. Unfortunately, it doesn't > appear to support unicode, and I keep throwing UnicodeEncodeError. Is > there a way to de-unicode the data I'm passing to it or something? > The

Re: MySQL ENUM and SET fields - can Django handle them?

2008-09-24 Thread Karen Tracey
On Wed, Sep 24, 2008 at 12:52 PM, J Cook <[EMAIL PROTECTED]> wrote: > > I have a legacy database with a table that has many ENUM and SET fields > - it seems that Django's models cannot handle these field types - or can > they? I would rather not modify the table if I can get it to work as is. > I

Re: MySQL ENUM and SET fields - can Django handle them?

2008-09-24 Thread Karen Tracey
On Wed, Sep 24, 2008 at 3:25 PM, J Cook <[EMAIL PROTECTED]> wrote: > Karen Tracey wrote: > > SET as I recall required a little more work. It's also a CharField, but > > required some translation from the comma-delimited string value passed > > to/from the databas

Re: A question about spaces and passing variables...

2008-09-24 Thread Karen Tracey
On Wed, Sep 24, 2008 at 6:37 PM, djandrow <[EMAIL PROTECTED]> wrote: > > So after messing around a for a couple of minutes I discovered the > urlencode changes About Me to About%20Me, (if you are using firefox 3 > or above it will still display "About Me" in the address bar, that > confused me for

Re: migration problem from Django0.96 to Django1.0

2008-09-25 Thread Karen Tracey
On Thu, Sep 25, 2008 at 7:35 AM, jbarker <[EMAIL PROTECTED]> wrote: > > The issue is that WEEKDAYS_ABBR is not defined in /usr/lib/python2.5/ > site-packages/django/utils/dates.py so it's not found. Edit dates.py > and add it in. > > For anyone who hits this problem, just editing dates.py to conta

Re: Add error to form field

2008-09-28 Thread Karen Tracey
On Sun, Sep 28, 2008 at 2:35 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > Hi all, > > Can I in any way add an error to a form field? > I have a controller method (in views.py) which needs information from > the session and information from the form (a CharField) to validate > some logic. If

Re: Incorrect string value in Admin

2008-09-29 Thread Karen Tracey
On Mon, Sep 29, 2008 at 1:03 AM, Bo Gu <[EMAIL PROTECTED]> wrote: > Hi, > I was testing fill some chinese strings to the text field in the Django > admin page, and I got the Incorrect string value Error. I tried two models > which are defined in my app, and the strange thing is that the "for c

Re: Add error to form field

2008-09-29 Thread Karen Tracey
On Mon, Sep 29, 2008 at 2:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > Hi Karen, > > Thank you for your answer, but when i access the _errors att in a > controller methods, and > adds a new array containing a unicode string, it is not rendered like > the other error messages. > I see an

Re: Date from django to form and back again.

2008-09-29 Thread Karen Tracey
On Mon, Sep 29, 2008 at 5:08 PM, Peter <[EMAIL PROTECTED]> wrote: > > Hi folks, > I want to check a form when it submitted to see whether it contains > an input called 'lastUpdate' > > If lastUpdate is blank I want to populate it with the current time > (preferably as the number of milliseconds

Re: SlugField & prepopulate_from

2008-09-30 Thread Karen Tracey
On Tue, Sep 30, 2008 at 2:41 PM, lingrlongr <[EMAIL PROTECTED]> wrote: > > Before the new forms and admin came, I could've sworn that the > prepopulate_from (now prepopulated_fields) stuff worked when creating > a new object in the admin, __AND__ when you edit an existing object. > > Can someone c

Re: automatically generated field in admin

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 8:34 AM, Ramashish Baranwal < [EMAIL PROTECTED]> wrote: > > Hi, > > I have a model in which a field should be generated automatically. So > it shouldn't be shown in the admin add page. Also in the change page > it should be shown but should be non-editable. As an example- >

Re: ManyToMany relationship on self through other table

2008-10-01 Thread Karen Tracey
On Tue, Sep 30, 2008 at 4:52 AM, chris <[EMAIL PROTECTED]> wrote: > > Hi there, > > Just starting to use django, so forgive me if this has been answered > before (a quick search at djanog-search did not turn up something > useful). > What I am trying to do is similar to this (from > http://www.dja

Re: Custom ModelChoiceField muddle

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 9:39 AM, Donn <[EMAIL PROTECTED]> wrote: > I am expecting there to be at least hundreds of authors, perhaps thousands. > It > makes no sense to me to stream them all into a select control in the first > place. > > I am aiming for a new kind of control that let's one page/fil

Re: Template inheritance problem

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 11:03 AM, FC <[EMAIL PROTECTED]> wrote: > > Hi, I've made some changes to my templates and something is broken but > I just can't find out why. > I have a base.html template with my site basic structure. Then a > viaje.html template which displays an object from the database

Re: Template inheritance problem

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 1:31 PM, FC <[EMAIL PROTECTED]> wrote: > > Ok, I've found out this: > > http://code.djangoproject.com/ticket/6510 > Block inheritance works fine within {% if %} tags, but not within {% > ifequal %} or {% ifnotequal %} tags, as illustrated by the code below. > > I guess that

Re: Problems with django.contrib.auth.views.login

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 3:55 PM, Denis Morozov <[EMAIL PROTECTED]> wrote: > > Try > {% if form.errors %} > Your username and password didn't match. > Please try again. > {% endif %} > Note this is not an error in the book but rather an indication t

Re: Change QuerySet of ModelMultipleChoiceField in a ModelForm

2008-10-02 Thread Karen Tracey
On Thu, Oct 2, 2008 at 8:46 AM, oversize <[EMAIL PROTECTED]> wrote: > > Hello > > in a ModelForm based Form, i have a ManyToManyField. I want only > specific objects of the Relation to be shown in the Forms > ModelMultipleChoiceField. > For my example, Motive and Textile belong to the same Project

Re: Help Getting an error "invalid keyword argument for this function"

2008-10-02 Thread Karen Tracey
On Thu, Oct 2, 2008 at 2:26 PM, Karthik Krishnan <[EMAIL PROTECTED]>wrote: > > I have the following table in models.py > > class SiteAccessProcess(models.Model): > """Object model mapping to the site_access_process table. > > Each element in the class represents a table column. > """ > instanc

Re: Can't add more than 2 items in stacked/tabular inlines using tutorial part 2

2008-10-03 Thread Karen Tracey
On Fri, Oct 3, 2008 at 12:43 PM, Rob Goedman <[EMAIL PROTECTED]> wrote: > Hi, > > Using Django svn rev 9111 I ran into an issue using the admin. To > create a reproducible example I went back to the Django Poll/Choice > tutorial, part 2. > > With below models.py and admin.py, I can create a new Po

Re: SESSION_SAVE_EVERY_REQUEST behavior is overkill

2008-10-03 Thread Karen Tracey
On Fri, Oct 3, 2008 at 1:58 PM, Huuuze <[EMAIL PROTECTED]> wrote: > > I recently added "SESSION_SAVE_EVERY_REQUEST". As the name implies, > the session ID is changed for every request made to the server. IMO, > this is overkill. If your page has 10 images on it, the session ID > will be changed

Re: database program

2008-10-03 Thread Karen Tracey
On Fri, Oct 3, 2008 at 10:24 PM, waltbrad <[EMAIL PROTECTED]> wrote: > > I started with Django about a year ago and got interrupted. So, now > I'm back and trying to go through a tutorial with the Django book. > Installation. I did this once on the upstairs computer, but can't > remember what I di

Re: Serving static file on Windows

2008-10-04 Thread Karen Tracey
On Sat, Oct 4, 2008 at 3:19 PM, mrsource <[EMAIL PROTECTED]> wrote: > > I can upload images on the right place in the file system, but then > django don't serve them. > I'm using the development server and the current SVN version of > django. > > I have this configuration in settings.py: > MEDIA_R

Re: a NameError happened when using Meta option 'unique_together' in model

2008-10-05 Thread Karen Tracey
On Sun, Oct 5, 2008 at 9:47 AM, Matrixer <[EMAIL PROTECTED]> wrote: > > hi, when I was trying to use the Meta option 'unique_together' in my > Membership model below, a NameError happened, I don't know what the > problem is, I am using django 1.0 and sqlite3 > > regards, > Matrixer > > ---

Re: How to add more information to a many-to many relationship related to the model itself with 'symmetrical = True'

2008-10-06 Thread Karen Tracey
On Mon, Oct 6, 2008 at 7:52 AM, Matrixer <[EMAIL PROTECTED]> wrote: > > in django, it's not allowed to create an intermediary model, when > 'symmetrical' is set to True in this kind of many-to-many > relationship, then how to add more information for the relationship, > is there any good solutions

Re: how to add more information in a model with a many-to-many field to itself, and 'symmetrical=True'

2008-10-06 Thread Karen Tracey
Answered on the other thread started with the same question. Karen --~--~-~--~~~---~--~~ 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 unsubscri

Re: (newb) ImportError in script but not in interactive shell

2008-10-06 Thread Karen Tracey
On Mon, Oct 6, 2008 at 10:10 AM, Gerard flanagan <[EMAIL PROTECTED]>wrote: > > Hello, > > I have a utility script 'load_data.py' that primes a database with dummy > data via the application Models. It sits in my project root directory: > > myproj/ >settings.py >manage.py >

Re: How to add more information to a many-to many relationship related to the model itself with 'symmetrical = True'

2008-10-06 Thread Karen Tracey
On Mon, Oct 6, 2008 at 11:08 AM, Matrixer <[EMAIL PROTECTED]> wrote: > > sorry for that, I didn't mean to post it twice times, I don't know how > to edit the 1st post, so in order to explain more clearly, I deleted > it before posting the second one. > > Thanks Karen, I know the way to create the

Re: adding date to template

2008-10-06 Thread Karen Tracey
On Mon, Oct 6, 2008 at 4:55 PM, KillaBee < [EMAIL PROTECTED]> wrote: > Thanks I have read the forms doc. and it helped a great deal. > now I am get this error:'QueryDict' object has no attribute 'method' > at line 12. > > view: > from django.http import HttpResponse > from intranet.timesheets.mode

Re: Django + tiny_mce

2008-10-07 Thread Karen Tracey
On Tue, Oct 7, 2008 at 9:07 AM, Brian K. Jones <[EMAIL PROTECTED]> wrote: > > This scenario has been brought up before, but I'm having a problem > that hasn't yet been reported. I was unable to reply to the whole list > in the google groups interface - only "Reply to author" was available. > Here'

Re: Django Admin - Does not see templates, images or templates.

2008-10-07 Thread Karen Tracey
On Tue, Oct 7, 2008 at 10:50 AM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > > > Yes I restarted, but I also noticed in urls.py > > 2 distinct suggested admin url patterns... > > (r'^admin/', include('django.contrib.admin.urls')), > # (r'^admin/(.*)', admin.site.root), > > Commenting out the second

Re: Django Admin - Does not see templates, images or templates.

2008-10-07 Thread Karen Tracey
On Tue, Oct 7, 2008 at 6:17 AM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > Thanks the link did the trick. > > The admin page though still loads rough, sometimes > taking 3 screen refreshes to get past a > "No module named urls" error - then it finally loads. > Did you restart Apache after making t

Re: Django Admin, Custom Views and the ChangeList object

2008-10-07 Thread Karen Tracey
On Tue, Oct 7, 2008 at 2:43 PM, Brandon Taylor <[EMAIL PROTECTED]>wrote: > > Hi everyone, > > On a recent project, I was tasked with adding a workflow around a > model, which required some customization in the admin. I found that > when I did and override of a view, I no longer had access to the "

Re: Can M2M be one-way?

2008-10-07 Thread Karen Tracey
On Tue, Oct 7, 2008 at 6:01 PM, Dylan Reinhardt <[EMAIL PROTECTED]>wrote: > > Is there any way to make Django ManyToManyField objects not be bi- > directional? > > I have a Product object with a self-referencing M2M field. I want > each Product to maintain its *own* list of related products... I

Re: Django Admin - Does not see templates, images or templates.

2008-10-08 Thread Karen Tracey
On Wed, Oct 8, 2008 at 3:28 AM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > > > What version of Django are you running? These two patterns are from > > different Django versions. The first, with the include of > > 'django.contrib.admin.urls' was the old one -- that file does not exist > in > > Dja

Re: porting OpenBookPlatform to Django v1

2008-10-08 Thread Karen Tracey
On Wed, Oct 8, 2008 at 2:50 PM, Tonu Mikk <[EMAIL PROTECTED]> wrote: > > Here is a bit more info on the error that I am getting with > OpenBookPlatform. > > When I try to access booklist in OpenBookPlatform I received this error: > Exception Value: Could not import apps.books.views. Error was: can

Re: Django Admin - Does not see templates, images or templates.

2008-10-08 Thread Karen Tracey
On Wed, Oct 8, 2008 at 3:11 PM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > > > Of the other two, one claims to be Django 1.0 and one claims to be > > Django SVN trunk. Assuming they are what they claim to be, which one > > is the latest depends on whether the trunk checkout is from before or > > a

Re: problem posting data to MYSQL

2008-10-08 Thread Karen Tracey
On Wed, Oct 8, 2008 at 4:17 PM, KillaBee < [EMAIL PROTECTED]> wrote: > > from django.http import HttpResponse, HttpResponseRedirect > from intranet.timesheets.models import Poll > from intranet.timesheets.models import Choice > from intranet.timesheets.models import timesheet > from intranet.times

Re: problem posting data to MYSQL

2008-10-08 Thread Karen Tracey
On Wed, Oct 8, 2008 at 8:28 PM, KillaBee < [EMAIL PROTECTED]> wrote: >It is a model, > http://dpaste.com/83272/ it is called time, and timesheets it when I > tried to do it the form way. So, the key word is save(). Can I get > an example of how to use it? > There are examples in the tutoria

Re: Formsets/forms where only a few fields of a model will be changed?

2008-10-09 Thread Karen Tracey
On Thu, Oct 9, 2008 at 7:11 AM, djimmy <[EMAIL PROTECTED]> wrote: > > Hi All, > > Not quite up to speed, but I've got a bunch of books: > > STATUS_CHOICES = ( > ( 0, 'Proofreading'), > ( 1, 'Editing'), > ( 2, 'Printing'), > ) > > class Book(models.Model): > title = models.CharField

Re: using request.POST as keyword args

2008-10-09 Thread Karen Tracey
On Thu, Oct 9, 2008 at 9:56 AM, Taylor <[EMAIL PROTECTED]> wrote: > > I want to be able to do this: > > result = ab.perform(**request.POST) > > where: > def perform(self, **kwargs): > > Of course, this doesn't work, and I get the error "keywords must be > strings". After some searching, I suppose

Re: login problem, Django 1.0

2008-10-09 Thread Karen Tracey
On Thu, Oct 9, 2008 at 5:18 PM, Robocop <[EMAIL PROTECTED]> wrote: > > Having looked through the archived posts, i found a similar problem > that had found no solution: > http://groups.google.com/group/django-users/browse_thread/thread/bf05... > I get a 'topic not found' error from Google Groups

Re: Claiming a field that exists is not existing in admin

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 7:04 AM, Leaf <[EMAIL PROTECTED]> wrote: > > I'm getting a mysterious error. When I try to access the admin site, > it claims that the PageAdmin.fields is referring to a ManyToManyField > named 'sideboxen' that doesn't exist in the form. However, my "Page" > model does have

Re: Using raw_id_fields with a many-to-many field

2008-10-10 Thread Karen Tracey
On Thu, Oct 9, 2008 at 5:59 PM, Hancock, David (dhancock) < [EMAIL PROTECTED]> wrote: > I've found that using raw_id_fields saves a lot of time for our users > over loading an entire many-to-many select. (But for shorter lists, the > many-to-many widget is by far the best interface I've seen for

Re: login problem, Django 1.0

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 12:51 PM, Robocop <[EMAIL PROTECTED]> wrote: > > Bad news guys, someone deactivated my test user and didn't tell me. > I'm so sad. > Do you mean that is the explanation for why auth.login hasn't been working? Or is there still a problem that needs to be investigated? Kare

Re: Registration - adding first_name and last_name to form.

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 4:02 PM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > > > I'm trying to add first_name and last_name to the registration form. > > Under class RegistrationForm(forms.Form) > > I add > > first_name = forms.RegexField(regex=r'^\w+$', >max_length

Re: contrib admin and admindocs problem

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 4:45 PM, Michael Graz <[EMAIL PROTECTED]>wrote: > Greetings, > > The contrib.admin module depends on the contrib.admindocs module due to "{% > url django-admindocs-docroot as docsroot %}" being part of the admin > base.html template. However there is a problem with the fol

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 4:24 PM, shawn <[EMAIL PROTECTED]> wrote: > > Hey guys, > > So I want to be able to use mod_python and apache to host my django > project, but I'm running into a little problem. When I go to my URL, I > get this error: > > > Exception Type: OperationalError at /admin/ > Exc

Re: Registration - adding first_name and last_name to form.

2008-10-11 Thread Karen Tracey
On Sat, Oct 11, 2008 at 4:39 AM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > > These lines in forms.py > --- > 92. new_user = > > RegistrationProfile.objects.create_inactive_user(username=self.cleaned_data['username'], > 93. pass

Re: use related field for date_field argument in generic view

2008-10-11 Thread Karen Tracey
On Sat, Oct 11, 2008 at 7:52 AM, J <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've got a couple of related models that I want to use together in a > queryset, which I will be passing to a the generic view > "date_based.archive_index". This generic view requires a "date_field" > argument specifying

Re: distinct for ForeignKey field

2008-10-11 Thread Karen Tracey
On Sat, Oct 11, 2008 at 8:38 AM, Stephen Cheng <[EMAIL PROTECTED]>wrote: > > I am wondering how to get distinct values for a ForeignKey field > > For example: > class ModelA(models.Model): >. >city=models.ForeignKey(City) > distinct_cities = ModelA.values('

Re: related_name in filter search

2008-10-11 Thread Karen Tracey
On Fri, Oct 10, 2008 at 3:19 PM, Alessandro <[EMAIL PROTECTED]>wrote: > In a project I have > class Scheda(models.Model): >referente = models.ForeignKey(User,related_name="schede", > editable=False) > > and I can use: > User.objects.distinct().filter(schede__isnull=False): > > in another I hav

Re: Django isn't working anymore ...

2008-10-11 Thread Karen Tracey
On Sat, Oct 11, 2008 at 5:15 PM, dbee <[EMAIL PROTECTED]> wrote: > > Been using django for sometime - never had any serious issues with it > as a framework. Now, all of a sudden it won't allow me to login. > > I'm beginning to wonder if perhaps someone hasn't hacked the server > and done some mess

Re: Blank and null values for a foreign key

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 5:45 AM, Fabio Natali <[EMAIL PROTECTED]>wrote: > > ... > As you can see, a new person can be added with no license at all: > "blank=True,null=True" options. That's what I want. > > In my admin panel I get the list of all the persons I have added. I > wish I could filter or

Re: Why does MySql gives warning? Incorrect string value: '\xE6\x9D\xB1\xE8\xA8\xBC...' for column 'title' at row 1

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 9:56 AM, felix <[EMAIL PROTECTED]> wrote: > but what does the unittest runner do ?? (since it creates its own > database) > > it also creates a latin1 db: > > CREATE TABLE `website_releasefeedback` ( > ... > ) ENGINE=MyISAM DEFAULT CHARSET=latin1 > Use this setting: http:

Re: Exception Value: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 11:09 AM, kele <[EMAIL PROTECTED]> wrote: > > i am using the django 1.0 , and while i am try to post some data > (japanes ,chinese characters) and insert to my Mysql db , i got this > error . my table is create in utf8 character , and my setting.py > already has the > DE

Re: Ordering object collection by computed field?

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 2:12 PM, Peter Krantz <[EMAIL PROTECTED]>wrote: > > Hi! > > I have a model like this: > > class Thing(models.Model): > x = models.PositiveIntegerField() > y = models.PositiveIntegerField() > > def z(self): > return self.x / self.y * A_CONSTANT > > > In a view I w

Re: Mysql with Django on Jython

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 2:58 PM, Hingarajiya,Ravi <[EMAIL PROTECTED]>wrote: > Hi All, > > I am using Jython for Django. > > I want to know that how to connect mysql to Django on Jython. > > Thanks in Advance > You asked the same question yesterday, and nobody answered. That means nobody who read

Re: Weird errors when i transfer from production to local ...

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 4:25 PM, Daniel Roseman < [EMAIL PROTECTED]> wrote: > On Oct 12, 8:46 pm, dbee <[EMAIL PROTECTED]> wrote: > > ### ERROR 2 ### > > > Exception Type: ProgrammingError at /blog/venture-capital-pitfalls/ > > Exception Value: ERROR: operator does not exist: character varying =

Re: Is trunk usually stable enough to run in a development server?

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 6:17 PM, jmat <[EMAIL PROTECTED]> wrote: > > Just curious what anyones suggestions are for running satchmo on a dev > server? Is trunk stable enough to develop a new site on (perhaps > anticipating the site being done soon after the .8 release)? > > > If so do you have any

Re: MySQLdb adapter

2008-10-12 Thread Karen Tracey
On Sun, Oct 12, 2008 at 8:08 PM, Narshe <[EMAIL PROTECTED]> wrote: > > I'm running Windows XP with WAMPSERVER 2.0 installed. Python2.6 > MySQL is installed on my computer at this location: C:\wamp\bin\mysql > Here is how my settings.py is set up: > [snip] > running build_ext > building '_mysql' ex

Re: related_name in filter search

2008-10-13 Thread Karen Tracey
On Mon, Oct 13, 2008 at 4:22 AM, Alessandro Ronchi < [EMAIL PROTECTED]> wrote: > 2008/10/11 Karen Tracey <[EMAIL PROTECTED]>: > > > You've got a typo in there somewhere, because there is no 'notizie' in > the > > query you posted, you'v

Re: makemessages create invalid msgid in django.po file

2008-10-13 Thread Karen Tracey
On Mon, Oct 13, 2008 at 12:37 AM, Chuck Bai2 <[EMAIL PROTECTED]> wrote: > > The base language of my site is Chinese. I want to change to English > when user select language perferrence. > > In my base.html, I have > {% trans "产品" %} > > I generated django.po file using > django-admin.py makemessag

Re: makemessages create invalid msgid in django.po file

2008-10-13 Thread Karen Tracey
On Mon, Oct 13, 2008 at 11:07 PM, Chuck22 <[EMAIL PROTECTED]> wrote: > > Thanks, Karen. You are correct. My version is Win32 binaries of GNU > gettext-runtime 0.13.1. It seems getting the development trunck is a > better choice for me. But, I am not sure if the Django development > trunck is stabl

Re: modelForm

2008-10-14 Thread Karen Tracey
On Tue, Oct 14, 2008 at 2:00 PM, Alfredo Alessandrini <[EMAIL PROTECTED]>wrote: > > I've a new error :-) : > > File "./mysite/views.py", line 26, in setup_player >return render_to_response('player_form.html', {'form': form}) > > UnboundLocalError: local variable 'form' referenced before a

Re: Making queries guide, incomplete code.

2008-10-14 Thread Karen Tracey
On Tue, Oct 14, 2008 at 1:52 PM, KillaBee < [EMAIL PROTECTED]> wrote: > On Oct 14, 12:14 pm, KillaBee <[EMAIL PROTECTED]> > wrote: > > On Oct 14, 12:07 pm, Brian Neal <[EMAIL PROTECTED]> wrote: > > > > > On Oct 14, 11:35 am, KillaBee <[EMAIL PROTECTED]> > > > wrote: > > > > > > I was reading the M

Re: Non-Programmer Help: filter_insterface error?

2008-10-14 Thread Karen Tracey
On Wed, Oct 15, 2008 at 1:20 AM, David <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm not a python programmer, this is the first time I've ever worked > with a python app. I'm trying to install "Surftrackr" for my company > and I have a problem. I have searched and can not find any clear > answer

Re: Debugging with PyDev

2008-10-15 Thread Karen Tracey
On Wed, Oct 15, 2008 at 6:16 AM, Henrik Rediin <[EMAIL PROTECTED]> wrote: > Hi > > I'm new to Django and Python, but not to web development. > In my quest to create the best possible development environment, I've > installed Eclipse, PyDev and PyDev extensions on my windows machine. > Everything s

Re: Non-Programmer Help: filter_insterface error?

2008-10-15 Thread Karen Tracey
On Wed, Oct 15, 2008 at 11:15 AM, David <[EMAIL PROTECTED]> wrote: > > Can you tell me what the last Revision from the SVN that supported the > filter_interface. > The Surftrackr docs specifically state that 0.96 is not support and to > use the latest svn. > This is in April of 2008. > Scanning t

Re: ifequal doesn't like spaces?

2008-10-15 Thread Karen Tracey
On Wed, Oct 15, 2008 at 4:02 PM, Frank Peterson <[EMAIL PROTECTED]>wrote: > > I have something like the following > > {% ifequal flatpage.title "Special Reports" %} >http://example.com/icon_specialreports.png"; /> > {% endifequal %} > > I get the error > 'ifequal' takes two arguments > so

Re: install django

2008-10-15 Thread Karen Tracey
On Thu, Oct 16, 2008 at 1:32 AM, robin nanola <[EMAIL PROTECTED]> wrote: > i think you must be the root user to be able to install django.. > Well...to put it in site-packages, perhaps yes. But one can easily install django elsewhere. > On Thu, Oct 16, 2008 at 1:25 PM, limas <[EMAIL PROTECTED

Re: choices instantiation

2008-10-16 Thread Karen Tracey
On Thu, Oct 16, 2008 at 1:43 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > hi, > > When I instance a ModelForm with a record of its base model, there is > a CharField with "choices" that doesn't show the stored value in the > combobox. Is this expected behaviour? > No. Details of your mo

Re: Using Tutorial

2008-10-16 Thread Karen Tracey
On Thu, Oct 16, 2008 at 8:46 AM, maumir <[EMAIL PROTECTED]> wrote: > > Thanks but I have not yet resolved. in the file "settings.py" I added > mysite.polls in > INSTALLED_APPS = ( > 'django.contrib.auth', > 'django.contrib.contenttypes', > ' django.contrib.sessions', > 'django.contrib.sites', > '

Re: Enter Valid Date/Time ...

2008-10-17 Thread Karen Tracey
On Fri, Oct 17, 2008 at 11:48 AM, dbee <[EMAIL PROTECTED]> wrote: > > I keep getting the same stupid error ... "Enter valid date/time". I've > done everything I can think of to let django know that the value in > question can be blank ... > > http://code.djangoproject.com/ticket/8898 Sounds like

Re: site/admin/doc error in django's model_detail.html using "filter escape" VS "autoescape"

2008-10-17 Thread Karen Tracey
On Fri, Oct 17, 2008 at 2:46 PM, Scott SA <[EMAIL PROTECTED]> wrote: > > I'm having a consistent problem across multiple projects with the self- > documentation and I'm hoping somone here might have an idea what is > wrong and how I might fix it. Thanks in advance for any assistance! > > I have tr

Re: Add foreign key name to admin's list_display?

2008-10-17 Thread Karen Tracey
On Fri, Oct 17, 2008 at 3:21 PM, Ty <[EMAIL PROTECTED]> wrote: > > # admin.py: > from django.contrib import admin > from clydefrog.blog.models import Post, Comment > > class PostAdmin(admin.ModelAdmin): >list_display = ('name', 'slug', 'date', 'is_published',) >list_filter = ('is_p

Re: Named URL Patterns

2008-10-17 Thread Karen Tracey
On Fri, Oct 17, 2008 at 3:30 PM, dkadish <[EMAIL PROTECTED]> wrote: > > Okay. I think the issue is that I am trying to use reverse( ) in the > URLConf file. According to the django docs, "the reverse() function > has to import all of your URLConf files and examine the name of each > view". My thin

Re: NameError: name 'form_for_model' is not defined

2008-10-18 Thread Karen Tracey
On Sat, Oct 18, 2008 at 12:59 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > I am having trouble importing, 'form_for_model' > > -I am using Django 1.0 > -I know that newforms has been renamed to forms. > > What import statement should I use to include form_for_model? > > This one works on

Re: Django crashes Python without traceback on Mac OS X (Release 1.0)

2008-10-18 Thread Karen Tracey
On Sat, Oct 18, 2008 at 4:16 PM, Brian <[EMAIL PROTECTED]> wrote: > > Hi there, > > Django is crashing Python on my machine for one particular application > of my Django project (the other applications are unaffected). It's on > the Django 1.0 development server, Mac OS X 10.5.5, stock Python > 2.

Re: what have changed in django.template when we update from 0.96 to 1.0?

2008-10-18 Thread Karen Tracey
On Sat, Oct 18, 2008 at 10:25 PM, Gmail <[EMAIL PROTECTED]> wrote: > for some reasons ,i put some html fragment if the db and then render them > in the template. > but when i update to django 1.0, > what i get in the rendered html are esceped. > in django 1.0 > When migrating code from 0.96 to 1.

Re: tutorial bug

2008-10-18 Thread Karen Tracey
On Sat, Oct 18, 2008 at 8:01 PM, Brendan Miller <[EMAIL PROTECTED]>wrote: > > I was running through the tutorial to get up to speed on django. > > Most of the way down tutorial 2, it asks you to add a list display to > the PollAdmin: > list_display = ('question', 'pub_date', 'was_published_today')

Re: How to send emails when after an event happened?

2008-10-18 Thread Karen Tracey
On Sun, Oct 19, 2008 at 2:04 AM, Net_Boy <[EMAIL PROTECTED]> wrote: > > Hi, > > I am doing a new project and (doing a function that checks for a > specific event, if it happened then the system should send email to > the user? so how can I do that? > You might try searching the docs for "emai

<    1   2   3   4   5   6   7   8   9   10   >