Re: has "newforms-admin" branch been integrated?

2008-03-02 Thread James Bennett
On Mon, Mar 3, 2008 at 1:48 AM, Niklas Collin <[EMAIL PROTECTED]> wrote: > I was wondering if (and I quote the manual chapter 17 ;) the > "newforms-admin"-branch has been integrated yet? Have you considered looking for an announcement regarding that, or perhaps looking at the timeline for a "ne

has "newforms-admin" branch been integrated?

2008-03-02 Thread Niklas Collin
Hi! I was wondering if (and I quote the manual chapter 17 ;) the "newforms-admin"-branch has been integrated yet? Niklas > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Tredinnick > Sent: den 3 mars 2008 02:28 > To: django-use

RE: How to integrate with admin?

2008-03-02 Thread Niklas Collin
Thanks Steve! I should've seen it myself :-o but I've ordered all the current Django books so at least i'll be smarter in the future hopefully ;-) Niklas > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Potter > Sent: den 2 mars

Re: revert database migration

2008-03-02 Thread James Bennett
On Sun, Mar 2, 2008 at 11:45 PM, stranger <[EMAIL PROTECTED]> wrote: > Is there a way in django where we can migrate the changes in model, > or revert back database changes to the original(fresh). You probably want to search the archive of this list, which is publicly available and powered by

revert database migration

2008-03-02 Thread stranger
Hello group, I have a quick question. I have a django project where I have model. I 'syncdb' the database with the model. After that I again added few attributes to the model. but when I apply the syncdb command its not syncing with the database. Is there a way in django where we can m

Re: Error when calling the metaclass bases __init__() got an unexpected keyword argument 'get_absolute_url'

2008-03-02 Thread stranger
Thank you for the help. On Mar 2, 5:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-03-02 at 09:25 -0800, stranger wrote: > > Hello group, > > >             I am trying to setup a blog using django on webfaction. I > > have a get_absolute_url() in meta class of Entry model

Selected option in bounded ModelChoiceField

2008-03-02 Thread james
I have created a bounded ModelChoiceField like this : Model: -- class Project(models.Model): name = models.CharField() class Staff(models.Model): name = models.CharField() project = models.ForeignKey(Project) Forms: -- class StaffForm(newforms.Form): name = forms

Re: blocks in multiple inheritance

2008-03-02 Thread AJ
Turns out I figured out the problem. In the profile/profile.html file there was an {% ifequal %} block, and the {% block profile_content %} was inside that. This was causing the if to fail for the profile/ edit_profile.html template, thus no content. On Mar 2, 6:12 pm, AJ <[EMAIL PROTECTED]> wr

Re: Ordering by Foreign Key in Admin

2008-03-02 Thread Malcolm Tredinnick
On Sun, 2008-03-02 at 09:38 -0800, watusee wrote: > Thanks for you quick and helpful reply Malcolm! A few clarifications > if I may. I couldn't quite figure out how to connect what the admin > tool does to seeing queries in connection.queries. I can however see > the the offending query when I ge

Re: Error when calling the metaclass bases __init__() got an unexpected keyword argument 'get_absolute_url'

2008-03-02 Thread Malcolm Tredinnick
On Sun, 2008-03-02 at 09:25 -0800, stranger wrote: > Hello group, > > I am trying to setup a blog using django on webfaction. I > have a get_absolute_url() in meta class of Entry model which returns > the url of the Entry. > > But I am getting an error stating > > Exception Type:

Fwd: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread David Marquis
Or rather : {% for a in entries %} Date: {{ a.date|date:"jS o\f F" }} {% endfor %} -- David Begin forwarded message: From: David Marquis <[EMAIL PROTECTED]> Date: March 2, 2008 8:15:00 PM EST (CA) To: django-users@googlegroups.com Subject: Re: How to display a date in my template as Mar

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread David Marquis
You forgot the pipe | character and the colon : {% for a in entries %} Date: {% a.date|date:"jS o\f F" %} {% endfor %} If a is your date, then: {% for a in entries %} Date: {% a|date:"jS o\f F" %} {% endfor %} Have you read the docs? They are pretty clear about the syntax of templa

blocks in multiple inheritance

2008-03-02 Thread AJ
I'm having a trouble using some multiple inhertiance. The page seems to inherit properly but I can only define blocks for the "grand parent" and not the parent. Example: site/base.html -- {% block title %}{% endblock %} {% block content %} {% endblock %} stuff {% block profi

Re: 'admin_list' is not a valid tag library

2008-03-02 Thread Jepheree
I experienced this exact situation with my 'calendar' app. Your post saved me hours of trial and error. Cheers, Jeffery /jd On Jan 29, 2:04 pm, "David Sauve" <[EMAIL PROTECTED]> wrote: > Thanks, I figured out the problem. > > For anyone else that might experience this; in my case I had created

Re: How to integrate with admin?

2008-03-02 Thread Steve Potter
Take a look at chapter 17 of the django book http://www.djangobook.com/en/1.0/chapter17/ it covers exactly this. Steve On Mar 2, 1:53 pm, NoiZe <[EMAIL PROTECTED]> wrote: > Hi! > > I'm building an e-commerce site in Django and wonder how to add > functionality to the admin? Is it just like dev

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Evert Rol
> Daniel, > Now i'm getting the error: > > Could not parse the remainder: ' "jS o\f F"' from 'a.date|date "jS o\f > F"' >> It's a variable, not a tag, so use {{ a.date|date "jS o\f F" }} - ie >> {{ }}, rather than {% %}. > Shouldn't there be a colon between the filter and its arguments: {{ a.dat

Re: How to integrate with admin?

2008-03-02 Thread Nicola Larosa
NoiZe wrote: > I'm building an e-commerce site in Django and wonder how to add > functionality to the admin? Is it just like developing the public > site with views and controllers? Not really answering, but make sure to look at Satchmo: http://www.satchmoproject.com/ -- Nicola Larosa - http:/

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Greg
Daniel, Now i'm getting the error: Could not parse the remainder: ' "jS o\f F"' from 'a.date|date "jS o\f F"' /// I just looked at my Admin. And when I open each record I see the value 'True' in my date field. However, when I look at it in the template it shows the correct date '2

How to integrate with admin?

2008-03-02 Thread NoiZe
Hi! I'm building an e-commerce site in Django and wonder how to add functionality to the admin? Is it just like developing the public site with views and controllers? Thanks a lot for helping out a noob :) --~--~-~--~~~---~--~~ You received this message because

Re: Problem with contrib.syndication

2008-03-02 Thread Brian Luft
In your urlpatterns, you are passing a string for the value of feed_dict ("feeds"). You need to pass the actual dictionary object that you setup for yourself: ...{ 'feed_dict' : feeds } Cheers -Brian On Mar 2, 10:39 am, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > I try to create an RS

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Daniel Roseman
On 2 Mar, 18:45, Greg <[EMAIL PROTECTED]> wrote: > Justin, > I tried that but I'm still getting the following error: > > Invalid block tag: 'a.date|date' > > > > My Model file is setup this way: > > class Guestbook(models.Model): > name = models.CharField(maxlength=100) > loca

Meet with Hot Girls

2008-03-02 Thread Hot Girls
Downlaod Free Softwares Just Click Here http://softwares8501.blogspot.com/ --~--~-~--~~~---~--~~ 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 un

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Greg
Justin, I tried that but I'm still getting the following error: Invalid block tag: 'a.date|date' My Model file is setup this way: class Guestbook(models.Model): name = models.CharField(maxlength=100) location = models.CharField(maxlength=100) state = models.USStateFiel

Problem with contrib.syndication

2008-03-02 Thread Florian Lindner
Hello, I try to create an RSS feed for my blog. I have in my application urls.py: from feeds import * feeds = { 'latest' : LatestEntries, } urlpatterns = patterns("", [...], (r'^feeds/(?P.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict':'feeds'}) ) in feeds.py: from djan

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Justin Lilly
Assuming a.date is a valid datetime, you're probably looking for: {% for a in entries %} Date: {% a.date|date "jSo\f F" %} {% endfor %} which is explained on the previous link. On Sun, Mar 2, 2008 at 1:14 PM, Greg <[EMAIL PROTECTED]> wrote: > > Alex, > I tried that however I get the following

Re: Multiple Database Support

2008-03-02 Thread Ben Ford
Hi Lee, There's been a lot of historic discussion about multi-database support, and the upshot is that no it isn't supported well right now. There's a branch in SVN, but it's pretty much defunct. I believe the current thinking is to use SQLAlchemy if you need to access other databases (try looking

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Greg
Alex, I tried that however I get the following error: TemplateSyntaxError: Invalid block tag: 'a.date' Here is my template {% for a in entries %} Date: {% a.date "jS o\f F" %} {% endfor %} On Mar 2, 12:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Use the date filter:http://www.d

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread [EMAIL PROTECTED]
Use the date filter: http://www.djangoproject.com/documentation/templates/#date On Mar 2, 11:57 am, Greg <[EMAIL PROTECTED]> wrote: > I'm querying a table in my db. Each record that gets returned > contains a DateField (the date it was created). I'm able to show the > date in the template...how

Admin Site Searching

2008-03-02 Thread Lee Connell
I have configured my django admin site to allow searching. My question is when a user logs in and chooses the table they wish to make changes to, it automatically queries ALL data and then gives the ability to search. Is there an option to default to NOT grabbing ALL data and allowing the user t

How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread Greg
I'm querying a table in my db. Each record that gets returned contains a DateField (the date it was created). I'm able to show the date in the template...however I want to change the format it's being displayed as. In this case it's 2008-03-01. I want the date to show Mar. 1 2008. Thanks --~

Re: Template caching?

2008-03-02 Thread Peter Rowell
> I have a sitemap at the bottom of my website that contains recent > additions to the web page. When records are added to the database, > although most of the pages reflect the change, the sitemap doesn't. Welcome to the swamp called Cache Invalidation. Doing it precisely is one of the genuine

Re: Ordering by Foreign Key in Admin

2008-03-02 Thread watusee
Thanks for you quick and helpful reply Malcolm! A few clarifications if I may. I couldn't quite figure out how to connect what the admin tool does to seeing queries in connection.queries. I can however see the the offending query when I get an error in the admin. If I do see a query that is not wh

Re: Template caching?

2008-03-02 Thread Michael
Depends on what is in that include. If there are external files being brought into the html then I would bet on it. But if it is just static code then that won't be the case. On Sun, Mar 2, 2008 at 11:33 AM, PB <[EMAIL PROTECTED]> wrote: > > No worries! > > I though about browser caching, but why

Error when calling the metaclass bases __init__() got an unexpected keyword argument 'get_absolute_url'

2008-03-02 Thread stranger
Hello group, I am trying to setup a blog using django on webfaction. I have a get_absolute_url() in meta class of Entry model which returns the url of the Entry. But I am getting an error stating Exception Type: TypeError Exception Value:Error when calling the metaclass ba

Re: Context Processing and per View Caching

2008-03-02 Thread Peter Rowell
> @cache_page(60 * 60 * 24) > def advert_detail_ver2(request,offer_id): ... > Is the cache holding just "offer" or all the variables? I have > {{ user }} in the template and this changes with each user, which > suggests that the context is not being cached - but I want to be > sure. Actually,

Re: Template caching?

2008-03-02 Thread PB
No worries! I though about browser caching, but why would the browser just a segment of a page? Also it seems a bit to coincidental that it would cache the same area that is the included template. Peter On Mar 2, 3:37 pm, Michael <[EMAIL PROTECTED]> wrote: > Ahh gotcha, sorry about that. No I d

Re: django under xampp under windows

2008-03-02 Thread Evert Rol
> I put this in my urls file: > > (r'^site_media/(?P.*)$', 'django.views.static.serve', > {'document_root': 'C:\django\Django-0.96.1\django\contrib\admin > \media'}), > > but the program still can't find the dashboard: > > Check your ADMIN_MEDIA_PREFIX in your settings.py file, and make su

Multiple Database Support

2008-03-02 Thread Lee Connell
Hello, I seen some code in trak for multiple db support. Is this something that is usable now, is there some documentation on it? I have my app that mainly interacts with mysql but I need to pull some data from a mssql database for specific reasons, is this possible or should i just use ado-mss

Re: Template caching?

2008-03-02 Thread Michael
Ahh gotcha, sorry about that. No I didn't get what you were talking about, and I apologize. To be honest, I have never really had this problem without a caching mechanism set up on the server. Could it be your browser caching something? Beyond that I have no idea. On Sun, Mar 2, 2008 at 10:12 AM

Re: django under xampp under windows

2008-03-02 Thread Carl
I put this in my urls file: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': 'C:\django\Django-0.96.1\django\contrib\admin \media'}), but the program still can't find the dashboard: What am I missing? On Mar 1, 10:51 am, cjl <[EMAIL PROTECTED]> wrote: > Carl: >

Re: Template caching?

2008-03-02 Thread PB
Hi, I'm not sure if we're talking about the same thing. The issue I am describing takes place when the database is modified, but the models, views and templates are unmodified. I have a sitemap at the bottom of my website that contains recent additions to the web page. When records are added to

$$$$$$$$www.200836.com----Beijing/peking 2008 Olympic GamesBeijing Olympics promote spread of Olympic Movement in China

2008-03-02 Thread allen23456
$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 5,we accept all payment methods,such as paypal,credit card, telegraphic transfe

Re: Doing SQL subquery in extra

2008-03-02 Thread itpaul
Wooops I just realised my template var had a typo so it wasn't getting anything. Sorry. Nice tip for checking the sql though. It has been noted. a note to others: i was getting nothing to start with until i remembered that querysets are lazy. you might need to force evaluation to get your sql

Re: Doing SQL subquery in extra

2008-03-02 Thread itpaul
Wooops I just realised my template var had a typo so it wasn't getting anything. Sorry. Nice tip for checking the sql though. It has been noted. a note to others: i was getting nothing to start with until i remembered that querysets are lazy. you might need to force evaluation to get your sql

Downlaod Free Softwares

2008-03-02 Thread Hot Girls
Just Click Here http://softwares8501.blogspot.com/ --~--~-~--~~~---~--~~ 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 grou

Re: newforms 0.96.1 error list display

2008-03-02 Thread Panos Laganakos
I *think*, I'm starting to get it :) Found what was keeping the 'required_field' errors from showing though: if request.method is 'POST': should be: if request.method == 'POST': yeah, I know... On Mar 2, 12:41 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-03-02 at

Re: newforms 0.96.1 error list display

2008-03-02 Thread Malcolm Tredinnick
On Sun, 2008-03-02 at 02:24 -0800, Panos Laganakos wrote: > I am used to doing things like: > label for="id_title">Title: {{ form.title }} > {% if form.username.errors %} > {{ form.username.errors|join:", " }} > {% endif %} > > so, yeah :/ > > I thought if the fo

Re: newforms 0.96.1 error list display

2008-03-02 Thread Panos Laganakos
I am used to doing things like: label for="id_title">Title: {{ form.title }} {% if form.username.errors %} {{ form.username.errors|join:", " }} {% endif %} so, yeah :/ I thought if the form was bound (ie, in that case request.POST), it should display the e

Re: newforms 0.96.1 error list display

2008-03-02 Thread Malcolm Tredinnick
On Sun, 2008-03-02 at 02:04 -0800, Panos Laganakos wrote: > It seems weird, true. It might be my mistake, but I can't seem to > figure it out. Here it is: > > form: > > class CustomerForm(forms.Form): > username = forms.CharField(label=_('Username'), max_length=30) > first_name = fo

Re: newforms 0.96.1 error list display

2008-03-02 Thread Panos Laganakos
It seems weird, true. It might be my mistake, but I can't seem to figure it out. Here it is: form: class CustomerForm(forms.Form): username = forms.CharField(label=_('Username'), max_length=30) first_name = forms.CharField(label=_('First name'), max_length=30) last_name =

Re: ImageField width/height validation

2008-03-02 Thread Giuliani Vito, Ivan
On Mar 2, 12:25 am, Michael Newman <[EMAIL PROTECTED]> wrote: > You can't check the size of a image with python until the image is > actually uploaded. The best way to check before the file is uploaded > is with javascript. Sorry. Actually, validators are ran *after* that all the fields have been