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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
> 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
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:/
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
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
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
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
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
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
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
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
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
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
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
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
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
--~
> 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
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
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
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
> @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,
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
> 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
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
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
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:
>
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--- 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
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
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
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
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
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
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
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
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 =
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
51 matches
Mail list logo