Re: generic views 'extra_context' value via function call utility

2007-04-09 Thread Martin J Hsu
On Apr 10, 10:14 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 4/9/07, Martin J Hsu <[EMAIL PROTECTED]> wrote: > > > > > The a value (a callable) in the 'extra_context' dict passed to a > > generic view (like django.views.generic.list_d

generic views 'extra_context' value via function call utility

2007-04-08 Thread Martin J Hsu
I'm new to Django and have been trying to read up on generic views and sessions. I might be missing something, so please correct me as needed. The a value (a callable) in the 'extra_context' dict passed to a generic view (like django.views.generic.list_detail.object_list) can be used to

Re: Unique_together question

2007-03-12 Thread Rob J Goedman
n 3/11/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: > >> >> Any reason I can't combine these 2 fields to get a valid >> 'isUniqueday_sch' >> in the AddManipulator? Full traceback at the end of the email. >> > > This is a problem already reported. See

Unique_together question

2007-03-11 Thread Rob J Goedman
. Any reason I can't combine these 2 fields to get a valid 'isUniqueday_sch' in the AddManipulator? Full traceback at the end of the email. Thanks, Rob On Mar 9, 2007, at 2:14 PM, Rob J Goedman wrote: > Hi, > > If I upgrade to revision 4693 (or higher) I get below error. > Revisio

Re: Tutorial part 2, Problem with edit_inline

2007-03-09 Thread Rob J Goedman
; On 3/9/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: >> If I upgrade to revision 4693 (or higher) I get below error. >> Revision 4692 >> works fine. > > I need to do some digging to see what's up with that; it's definitely > the changeset, not your code. On

Inline incompatibility/issue?

2007-03-09 Thread Rob J Goedman
Hi, If I upgrade to revision 4693 (or higher) I get below error. Revision 4692 works fine. Any hints? I did start to play with unique_together earlier today when I noticed it, but don't think that's the reason. It's currently (and has been for several months) commented out. Another small

Job Ad: Full-time Python software developer, Wimbledon, London, England

2007-02-27 Thread John J Lee
`ReportLab `_ (Wimbledon, London, England) **Job Description**: ReportLab develop enterprise reporting and document generation solutions using cutting-edge Python technology, and have a growing

How could/should I save subsequent objects when I save an object?

2007-02-23 Thread Patrick J. Anderson
I'm trying to come up with the best working solution to allow my application to save subsequent objects when I save an object. Here's my model: class Milestone(models.Model): """Catalogue of project milestones""" ... deadline = models.DateField() ... def save(self):

Adding multiple rows/objects in admin at one go

2007-02-22 Thread Sambhav J
Hi everyone, I want to modify the 'Add page' for a model in Django admin to enable me to add multiple rows at one go in the admin? Default behavior is one new row/object at a time. Can I, say, add 10 objects at one go? I am aware of this - http://www.djangoproject.com/documentation/tutorial2/

Re: plotting queryset objects into a calendar

2007-02-12 Thread Patrick J. Anderson
On Mon, 12 Feb 2007 17:54:55 +, Patrick J. Anderson wrote: > On Mon, 12 Feb 2007 13:06:19 +, Patrick J. Anderson wrote: > >> I want to plot my milestones into a 28-week calendar using Django. What >> would be the best approach to doing that? >> >

Re: plotting queryset objects into a calendar

2007-02-12 Thread Patrick J. Anderson
On Mon, 12 Feb 2007 13:06:19 +, Patrick J. Anderson wrote: > I want to plot my milestones into a 28-week calendar using Django. What > would be the best approach to doing that? > > I have the following code: > > > [dashboardcalendar.py (custom template tag)] >

plotting queryset objects into a calendar

2007-02-12 Thread Patrick J. Anderson
{% else %} {% if d|isSunday %}{% else %}{% endif %} {% if d|isFirstOfMonth %}{{ d|date:"j N" }}{% else %}{{ d|date:"j" }}{% endif %} {% endif %}

Re: date template filter + ifequal weirdness?

2007-02-12 Thread Patrick J. Anderson
On Mon, 12 Feb 2007 05:50:32 +, Patrick J. Anderson wrote: > On Mon, 12 Feb 2007 15:32:07 +1100, Malcolm Tredinnick wrote: > >> On Mon, 2007-02-12 at 03:49 +0000, Patrick J. Anderson wrote: >>> I think I might be missing something, but I have a problem with >>

Re: date template filter + ifequal weirdness?

2007-02-11 Thread Patrick J. Anderson
On Mon, 12 Feb 2007 15:32:07 +1100, Malcolm Tredinnick wrote: > On Mon, 2007-02-12 at 03:49 +, Patrick J. Anderson wrote: >> I think I might be missing something, but I have a problem with >> date filter. Why doesn't this template code work? >> >> {%

date template filter + ifequal weirdness?

2007-02-11 Thread Patrick J. Anderson
I think I might be missing something, but I have a problem with date filter. Why doesn't this template code work? {% ifequal d|date:"l" "Sunday" %} {% else %} {% endifequal %} {{ d|date:"l" }} But inside the HTML list item {{ d|date:"l" }} produces full weekday names. Can and

compare date string in template

2007-02-11 Thread Patrick J. Anderson
Hi, I'm building a calendar for my site and in my template I need to evaluate whether the day is the first of the month. But I cannot do this, or it doesn't work as I expected: {% if equal "1" day|date:"j" %}do something{% endifequal %} or {% if equal "01&quo

Re: Large scale Django deployment - advice needed

2007-01-29 Thread J
Mike - Thanks, I'll check 'er out. J On Jan 27, 11:09 am, "Mike" <[EMAIL PROTECTED]> wrote: > Jason, > > Have you seen Chapter 21 of The Django Book, just released a few days > ago? > > Chapter 21: Deploying Djangohttp://www.djangobook.com/en/beta/chapter2

Large scale Django deployment - advice needed

2007-01-26 Thread J
The Star Tribune is considering changing our default development environment from Java/PHP to Django. This could be as small as developing database applications like the Washington Post and as large as developing all technology (CMS, templating, registration, etc) for startribune.com. I am

FC5/modpython/Django0.96pre

2007-01-20 Thread Rob J Goedman
Hi, A project, developed on OSX, needs to be moved to FC5, headless. ./ manage.py runserver works fine. But behind Apache 2.2/mod_python I get below error. FC5 does use python 2.4.3 (on OSX I use python2.5). Any hint where I should be looking. If I modify settings so it does not find the

Context-sensitive 'upload_to' parameter for FileField

2007-01-19 Thread Patrick J. Anderson
Hi, I was wondering if it is possible, and if so then how, to have a context-sensitive 'upload_to' parameter set for FileField. Let's say, I have the following model concept: class MyModel(models.Model): folder = models.CharField(maxlength = 8) file_html =

Re: Internationalization problem in template system

2007-01-18 Thread Patrick J. Anderson
On Thu, 11 Jan 2007 16:58:34 -0600, Jacob Kaplan-Moss wrote: On 1/11/07 2:35 PM, Nuno Mariz wrote: Any idea to resolve this , this don't scale. If I what to add another language, I have to patch all of my templates. If I were you, I'd write a simple accessor on your model to get the current

Re: Portuguese (pt) request.LANGUAGE_CODE problem

2007-01-17 Thread Patrick J. Anderson
On Wed, 17 Jan 2007 17:27:05 +, Nuno Mariz wrote: Hi, I'm portuguese and I'm going to translate django to pt-pt in this month. Stay tune. Nuno Mariz That'd be great! Looking forward to it being included in the framework! --~--~-~--~~~---~--~~ You

Re: Portuguese (pt) request.LANGUAGE_CODE problem

2007-01-16 Thread Patrick J. Anderson
James Bennett wrote: On 1/16/07, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: I'd appreciate some help with figuring out how to go about adding that locale to my site in simplest and sensible way. The simplest way is to produce a translation for the 'pt' locale ;

Portuguese (pt) request.LANGUAGE_CODE problem

2007-01-16 Thread Patrick J. Anderson
Hi, everybody! I wanted to post about a little problem I have while developing multilingual site I'm working on. I plan to include content in various languages, focusing on 3 at the moment: English, Spanish and Portuguese. I have followed the docs on i18n and this are working great,

Re: Newbie question

2007-01-13 Thread Rob J Goedman
! Super. On Jan 13, 2007, at 1:37 PM, James Bennett wrote: On 1/13/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: Normally the delays are natural and are controlled via Twisted (TCP and callLater). Above program is stable if I comment out the cpl=list (...) statement, otherwise it grows f

Newbie question

2007-01-13 Thread Rob J Goedman
= list(ControlPanel.objects.all()) for j in range(1, 100): j += 1 if i % 10 == 0: print '.' # gc.collect() Normally the delays are natural and are controlled via Twisted (TCP and callLater). Above program is stable if I comment out

Re: a candidate for a custom decorator?

2007-01-11 Thread Patrick J. Anderson
Brian Beck wrote: > I think your problem is the return values. args is a tuple and request > should be there instead. In both of your decorators, return fn(request, > *args, **kwargs) instead of fn(args, kwargs). > > > > > Yes, Brian, that was the problem. Thanks for your help.

a candidate for a custom decorator?

2007-01-11 Thread Patrick J. Anderson
Hello, I wanted to ask for some advice on a little issue I have with implementing decorators in my views. I have this piece of code, which I include in each view, to redirect anonymous and staff users to a notice page (I don't want them to access site members stuff): def my_view(request):

Re: Update database field

2006-11-18 Thread Manu J
Hi, This is what i ended up doing in a project of mine.But this involved two DB calls One to retrieve and another to save, but with just SQL can be accomplished in a single UPDATE statement. Django docs menthion that if you explicitly specify an id (primary key ) it should update the db. So I

Re: Want to see your favorite branch merged? Here's how you can help!

2006-11-16 Thread Manu J
1. Row level permissions 2. Schema Evolution -- Manu --~--~-~--~~~---~--~~ 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

Re: How to find out the id of the last record in a table?

2006-11-16 Thread Manu J
On 11/16/06, Don Arbow <[EMAIL PROTECTED]> wrote: > > On Nov 15, 2006, at 9:58 PM, simonbun wrote: > > > > The problem with getting the last record's id and using it, is that > > someone might have inserted yet another record while you're still > > working on the previous one. > > > > For single

Re: How to find out the id of the last record in a table?

2006-11-15 Thread Manu J
There is a get_last_insert_id() function defined in the backend models. Can that be used somehow ? -- Manu On 11/15/06, Pythoni <[EMAIL PROTECTED]> wrote: > > Thank you very much for help > L. > > > > > --~--~-~--~~~---~--~~ You received this message because

Re: filters on form objects

2006-10-26 Thread Patrick J. Anderson
RajeshD wrote: > >> Or do I have to pass this list of >> albums to the template: >> >> my_albums = Album.objects.filter(owner = request.user) > > This will work. > >> and then construct a select box based on that list. If so, I'd probably >> "break out" of {{ form.albums }} and loose {{

Re: date navigation inclusion tag (problems with context)

2006-10-25 Thread Patrick J. Anderson
Patrick J. Anderson wrote: > Here's one of the inclusion tags I wrote this morning for my blog date > navigation: > > --- > > from django.template import Library,Node > from project.apps.news.

date navigation inclusion tag (problems with context)

2006-10-25 Thread Patrick J. Anderson
Here's one of the inclusion tags I wrote this morning for my blog date navigation: --- from django.template import Library,Node from project.apps.news.models import Article register = Library() def articles_months(context):

Accessing session variables in templates

2006-10-12 Thread Patrick J. Anderson
Hi! I have a member_id session variable, which I set at login (it is different than "user"). I need to check that variable in my templates to display member-specific navigation. How can I check do this? Or do I need to do the checking in each view function and pass the value in a template

Re: NullBoolean/Boolean Field weirdness

2006-10-11 Thread Patrick J. Anderson
Malcolm Tredinnick wrote: > On Wed, 2006-10-11 at 22:45 -0500, Patrick J. Anderson wrote: > [...] >> Thanks for your comments, Malcolm. I realize that a determined person >> could submit an altered form and edit other profiles. >> >> I guess this is not a Djan

Re: NullBoolean/Boolean Field weirdness

2006-10-11 Thread Patrick J. Anderson
Malcolm Tredinnick wrote: > On Wed, 2006-10-11 at 22:45 -0500, Patrick J. Anderson wrote: > [...] >> Thanks for your comments, Malcolm. I realize that a determined person >> could submit an altered form and edit other profiles. >> >> I guess this is not a Djan

Re: NullBoolean/Boolean Field weirdness

2006-10-11 Thread Patrick J. Anderson
Malcolm Tredinnick wrote: > On Wed, 2006-10-11 at 21:33 -0500, Patrick J. Anderson wrote: > [...] >> I guess the concept of approving members needs to be refined. My project >> has some "special" requirements and this is one of them. > > There's no problem w

Re: NullBoolean/Boolean Field weirdness

2006-10-11 Thread Patrick J. Anderson
Malcolm Tredinnick wrote: > On Wed, 2006-10-11 at 21:33 -0500, Patrick J. Anderson wrote: > [...] >> I guess the concept of approving members needs to be refined. My project >> has some "special" requirements and this is one of them. > > There's no problem w

Re: NullBoolean/Boolean Field weirdness

2006-10-11 Thread Patrick J. Anderson
Malcolm Tredinnick wrote: > On Wed, 2006-10-11 at 15:07 -0500, Patrick J. Anderson wrote: >> I have extended Django User model (site members as opposed to users) and >> I want to approve them before they can use all site features. Below is >> my model: >> &

NullBoolean/Boolean Field weirdness

2006-10-11 Thread Patrick J. Anderson
I have extended Django User model (site members as opposed to users) and I want to approve them before they can use all site features. Below is my model: class Member(models.Model): user = models.ForeignKey(User) ... is_approved - models.NullBooleanField(default =

Re: global template tags

2006-10-04 Thread Patrick J. Anderson
RajeshD wrote: > Firstly, the statement "user = User.objects.get(id=request.user.id)" is > redundant -- you could directly use request.user instead of that query > with the same effect. > > As far as the actual problem is concerned, your Queryset is returning > multiple rows because

Re: global template tags

2006-10-04 Thread Patrick J. Anderson
RajeshD wrote: > You could use: > > 1. a regular tag or > 2. an inclusion tag with takes_context=True > (See: > http://www.djangoproject.com/documentation/templates_python/#inclusion-tags) > > In both cases, your render or tag function will get called with a > context object from which you can

Re: global template tags

2006-10-04 Thread Patrick J. Anderson
Waylan Limberg wrote: > On 10/4/06, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: >> Hi, everyone! >> >> I have a question I've been trying to find answers to in the docs, but >> perhaps I'm not looking in the right places, because I can't find it.

global template tags

2006-10-04 Thread Patrick J. Anderson
Hi, everyone! I have a question I've been trying to find answers to in the docs, but perhaps I'm not looking in the right places, because I can't find it. I'm wondering about the use of templatetags in project instead of application scope. I put my applications in 'apps' subdirectory and

Re: User object available in base template

2006-10-04 Thread Patrick J. Anderson
Don Arbow wrote: > On Oct 3, 2006, at 9:30 PM, Patrick J. Anderson wrote: >> def main(request): >> posts = Post.objects.filter(is_approved = >> True).order_by('-time_added')[:5] >> t = loader.get_template('homepage.html') >> c = RequestContext({

Re: User object available in base template

2006-10-03 Thread Patrick J. Anderson
Forgot to add my specific error: Exception Type: AttributeError Exception Value:'dict' object has no attribute 'user' Exception Location: /usr/lib/python2.4/site-packages/django/core/context_processors.py in auth, line 17 Patrick J. Anderson Patrick J. Anderson wrote

User object available in base template

2006-10-03 Thread Patrick J. Anderson
In my project, I have a root template called base.html, which all other templates extend. I'd like to create a simple navigation with user information, which I want to write once and put in the base template to be shown on every page. I'm not sure what the best way of retrieving information

slug field and generic create view

2006-10-03 Thread Patrick J. Anderson
Is there a simple way to add the slug field to a custom form template? I'm using django.views.generic.create_update.create_object and my model has a slug field. Whenever I try to add a new item to database, I receive error saying that my "title" is similar to the on existing in the database,

__str__ question

2006-09-14 Thread Patrick J. Anderson
I'm not totally clear, perhaps it's a Python and not Django-specific question, but in my e-commerce app model, I have Currency and ExchangeRate classes: class Currency(models.Model): name = models.CharField(maxlength = 50) code = models.CharField(maxlength = 3) class Meta:

Re: LANGUAGES in template

2006-09-07 Thread Patrick J. Anderson
gjiro wrote: > Hi Patrick, > > Check if your settings.py conforms to: > http://www.djangoproject.com/documentation/settings/#languages > > The context processor that exposes LANGUAGES to the template's > "context": >

LANGUAGES in template

2006-09-07 Thread Patrick J. Anderson
I'm following the docs on i18n. In there, there's a sample of template code for a language selection form: {% for lang in LANGUAGES %} {{ lang.1 }} {% endfor %} But LANGUAGES is empty for me in the template. How can I use LANGUAGES variable in the

Http authentication and the multiple auth backend model.

2006-08-08 Thread Pawel J. Sawicki
Hello! I'm developing a web based application using the Django framework. One of the requirements for my software state that the program must, whenever possible, automatically "deal" with users that had been previously authenticated via http capabilities. It does not mean it should always log

Re: Has djangoproject.com's database been recently restored from a backup?

2006-08-08 Thread Pawel J. Sawicki
Adrian Holovaty wrote: > I routinely go through the djangoproject.com comments and delete > comments that either aren't directly related to the documentation or > are incorrect. (...) Well... I've just tried to follow the discussion that started in those two topics. I'll rephrase my question

how to return unique days in month_archive generic view

2006-08-03 Thread Patrick J. Anderson
Hi! I'm building a day-based navigation for my blog posts. I'm using generic view (month_archive) object_list to get all post for a specific month. How can I get unique days in my template loop on object_list if I have multiple posts per day? Is there a way to do it "generically", or do I

Re: logged-in user id as default value on ForeignKey relation

2006-07-17 Thread Patrick J. Anderson
Malcolm Tredinnick wrote: > On Mon, 2006-07-17 at 09:41 -0700, Patrick J. Anderson wrote: >> Sorry, but would you be able to explain this in detail? I was thinking >> about acomplishing this in model classes, not in views, so I'm not sure >> if I understand what you mean.

Re: logged-in user id as default value on ForeignKey relation

2006-07-17 Thread Patrick J. Anderson
Sorry, but would you be able to explain this in detail? I was thinking about acomplishing this in model classes, not in views, so I'm not sure if I understand what you mean. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

logged-in user id as default value on ForeignKey relation

2006-07-17 Thread Patrick J. Anderson
In my model I'd like to keep track of who added/updated a particular record. class Entry(models.Model): ... time_added = models.DateTimeField(auto_now_add = True, editable = False) user_added = models.ForeignKey(User, default = ?, editable = False) time_updated =

Re: ManyToMany and filter_interface

2006-07-12 Thread Patrick J. Anderson
[EMAIL PROTECTED] wrote: > I can't seem to get filter_interface on M2M relationships to work. > There are no errors but the admin interface looks identical with and > without the extra directive in there. Here's the relevant field: > > attributes = models.ManyToManyField(Attribute, >

Populating multiple text fields from a set of values. Possible?

2006-06-29 Thread Patrick J. Anderson
I am wondering if it is possible to populate a list of text input fields in admin forms from a default store (database or text). Perhaps a problem I'm trying to solve will illustrate it better. Code: class Project(models.Model): """ Production Projects """ name

Re: SuspiciousOperation: User tampered with session cookie

2006-06-28 Thread Patrick J. Anderson
On Tue, 27 Jun 2006 23:30:56 -0500, Patrick .J. Anderson wrote: > Malcolm Tredinnick wrote: >> [quoted text muted] > > Hi, Malcolm > > Yes, I noticed that too. Perhaps it would be good if I tested this > behaviour on another distro, but I don't want to resetup my dev

Re: SuspiciousOperation: User tampered with session cookie

2006-06-27 Thread Patrick .J. Anderson
Malcolm Tredinnick wrote: > On Tue, 2006-06-27 at 23:09 -0500, Patrick .J. Anderson wrote: >> Jacob Kaplan-Moss wrote: >>> Hi Patrick -- >>> >>> What happens when you clear out your sessions table? >>> >>> FYI, there's nothing about Ubuntu

Re: SuspiciousOperation: User tampered with session cookie

2006-06-27 Thread Patrick .J. Anderson
Jacob Kaplan-Moss wrote: > Hi Patrick -- > > What happens when you clear out your sessions table? > > FYI, there's nothing about Ubuntu versus mod_python that would/could > cause this (I use both). > > Jacob > > > > I cleared the session table and tried to login using my apache/mod_python

Re: SuspiciousOperation: User tampered with session cookie

2006-06-27 Thread Patrick .J. Anderson
Nikolaus Schlemm wrote: >> I've heard that the problem might be related to md5 hashing (someone >> just recently posted it here in the groups with the same error >> message). I looked at the django code and that where that error message >> is thrown and it seemed to confirm that, but I don't know

Re: SuspiciousOperation: User tampered with session cookie

2006-06-27 Thread Patrick .J. Anderson
Patrick .J. Anderson wrote: > [EMAIL PROTECTED] wrote: >> Clear the cookies in your browser and the problem will go away. >> >> > clearing the cookies doesn't help (I guess you answered that one). > > hmm, i don't know exactly what to do here, as I haven't tamp

Re: SuspiciousOperation: User tampered with session cookie

2006-06-27 Thread Patrick .J. Anderson
[EMAIL PROTECTED] wrote: > Clear the cookies in your browser and the problem will go away. > > > > > clearing the cookies doesn't help (I guess you answered that one). hmm, i don't know exactly what to do here, as I haven't tampered with anything. I'll try to recreate the project (extra

Re: SuspiciousOperation: User tampered with session cookie

2006-06-27 Thread Patrick J. Anderson
Hmm, I haven't changed domains. I simply took my previous setup on Fedora Core 5 with apache+mod_python and put it on Ubuntu Dapper with apache+mod_python. I've heard that the problem might be related to md5 hashing (someone just recently posted it here in the groups with the same error

Re: list_display (ManyToManyField)

2006-06-23 Thread Patrick J. Anderson
Thanks, that works well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

list_display (ManyToManyField)

2006-06-23 Thread Patrick J. Anderson
I'd like to display a list of tags (ManyToMany relationship to Articles) in admin list_display. I'm getting a reference to an object. Is there a way to do this in Admin class inside my model? Below is a code chunk from my model: class Article(models.Model): #... tags=

Re: Comments: Failed lookup for key [id] in ''

2006-06-22 Thread Patrick J. Anderson
That's right! Thanks for spotting this silly mistake. --~--~-~--~~~---~--~~ 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

Re: Best way to resuse admin pagination?

2006-06-22 Thread Patrick J. Anderson
Yes, that's true, but what would be the easiest way to reuse the pagination "widget" (if you can call it that) instead of writing my own? Sorry, if I haven't explained it in more detail --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Comments: Failed lookup for key [id] in ''

2006-06-22 Thread Patrick J. Anderson
}} {{ p.intro|truncatewords:"100" }} Posted on {{ p.time_added|date:"M j, Y" }} at {{ p.time_added|date:"P" }}| {{ comment_count }} Comments {% endfor %} What could be the reas

Best way to resuse admin pagination?

2006-06-22 Thread Patrick J. Anderson
What is the best way to reuse admin pagination in a generic object_list view template? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Problem with date_based generic views

2006-06-21 Thread Patrick J. Anderson
Well, that fixed it. I guess development using mod_python can be a little cumbersome. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Problem with date_based generic views

2006-06-21 Thread Patrick J. Anderson
I'm trying to display my records based on date. I've removed object.list... same result, page returns the same error message. It's weird, because it was working fine just a few minutes ago. --~--~-~--~~~---~--~~ You received this message because you are

Problem with date_based generic views

2006-06-21 Thread Patrick J. Anderson
Hi, I've been working with date_based generic views in my application, and while everything was going great, all of a sudden I'm getting this error on, while trying to access records for a specific month: ViewDoesNotExist at /projects/2006/jun/ Could not import

Re: How would Django handle a large number of records

2006-06-21 Thread Patrick J. Anderson
Thanks, guys! That's what I thought, but it helps to have a conformation, Wilson:). Great job on Django! There are a few small admin interface issues I'd still need to work out, mainly I might have a similar number of records related to articles (the number of article assignments might be

Re: Am I reading the tutorial incorrectly?

2005-10-11 Thread J. Davis
Brilliant! Thanks very much.

Re: Admin login Problem (not the one in the FAQ)

2005-09-01 Thread J. Davis
That did the trick. Thanks Adrian! -Jake

Admin login Problem (not the one in the FAQ)

2005-09-01 Thread J. Davis
Hello, I'm greatly enjoying this excellent project. However, I have a problem with users created through the admin web interface being able to log into the admin site. I get "Please enter a correct username and password." Even though all users have "is_active" and "is_staff" set to True. It's

Re: list_display = ForeignKey?

2005-08-30 Thread J. Davis
I figured out what I was missing. If you want your model to show up in the admin list page you must supply a value for all defined foreign key contraints. Not sure if that's an SQL thing (mysql did not complain about their absence) or a Django thing. Removing "blank=True" from all the foreign

Re: list_display = ForeignKey?

2005-08-26 Thread J. Davis
Ok, I've updated to the new Model syntax as shown below and I'm still getting "No sites matched your search criteria" in the admin page when I put a foreign key in the list_display definition. Everything works great as soon as I take "thing" out of the list_display. I've also tried adding

list_display = ForeignKey?

2005-08-25 Thread J. Davis
Hi there, I'm writing my first Django app and trying to get the Admin( list_display ) to display ForeignKey names. Here's how I'm trying to do it: class Thing(meta.Model): fields = ( meta.CharField('name' maxlength=60, primary_key=True), ) class Entry(meta.Model): def

<    2   3   4   5   6   7