On Sun, Oct 19, 2008 at 12:58 AM, justind <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> No one has any ideas?
Settle down, Tiger. You asked this question on a Friday night. You may
need to wait a little more than 18 hours if you want a response.
We're all volunteers here, and many of us have professi
> The tutorial, though, puts it on the Poll model. Where is yours?
Ah, thanks. It seems that I put it in the PollAdmin for some reason.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
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
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 received this message because you are subscribed to the Google G
I think there are two issues at play here:
1. Separate your site or application into multiple Python projects to
promote re-usability, maintainability, extensibility.
2. Place your packages within a top-level package to prevent
namespace collisions to increase re-usability.
Note there is a di
On Sun, Oct 19, 2008 at 4:00 AM, Ian J Cottee <[EMAIL PROTECTED]> wrote:
>
> Given a backend of postgres and a simple test to test that, for
> example, your model does not accept fields with more characters than
> it should ... how do you do it?
>
> I have a part database which has two fields - co
On Sun, Oct 19, 2008 at 2:40 AM, Low Kian Seong <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> Is there another form the foreignkey field can take besides the dropdown? I
> mean if there are 10,000 enteries for a particular foreign key and I am not
> using the admin interface won't it slow things down
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')
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.
On Sat, Oct 18, 2008 at 9: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
It's amazing what sort of useful infor
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
I get My name is Stephane
.
from django.template import Template
from django.template import Context
t =
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.
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')
When viewing the relevant page, this explodes with:
TemplateSyntaxError at /admin/
Hi,
I'm about to write an app, which is going to do long running (~1 to
~60 minutes) calculations (meanwhile, the user who triggered the
calculation will get message like "calculation in progress" or smth).
I'm wondering what is the right place or best practice to do such
calculations, custom mi
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.5.1.
There is no trace-back. Removing cookies and .pyc files does not
resolve
On Oct 14, 12:54 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-10-13 at 19:39 -0700, tvaughan wrote:
> > let's say i'm building and on-line sudoku game. i want two types of
> > users. the first are those users that would play the game. and the
> > second are those that are built
Hello everyone,
I am working on a CMS that includes a bunch of applications (like
Story, Event, etc...) with some being propriatary and some being third
party. When it comes to our naming conventions, we've had a bit of
discussion over namespace issues. Now I have been referencing James
Bennett's
Dana, sorry for the late response, you want
http://code.google.com/p/django-dbtemplates/
It is an additional template loader that loads from the db, so by
putting it before the standard template loaders, db templates can
override file templates. Also, the include templatetag works, so you
can ha
Actually the test form is (I forgot to change the name)
class MyForm(forms.Form):
text = forms.CharField()
link = forms.URLField()
On Oct 18, 4:21 pm, justind <[EMAIL PROTECTED]> wrote:
> I get exactly the same thing.
>
> Here's what I'm entering.
>
> >>> import simplejson
> >>> simple
I get exactly the same thing.
Here's what I'm entering.
>>> import simplejson
>>> simplejson
>>> from myproject.app.models import MyForm
>>> f = MyForm({'link': 'footext'})
>>> f.errors
{'text': [u'This field is required.'], 'link': [u'Enter a valid
URL.']}
>>> simplejson.dumps(f.errors)
Trace
Could you try this with simplejson not bundled with Django? If that works
this is probably a bug in the version bundled with Django.
On Sat, Oct 18, 2008 at 6:58 PM, justind <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> No one has any ideas?
>
> The code I'm actually using in my view is almost identic
Given a backend of postgres and a simple test to test that, for
example, your model does not accept fields with more characters than
it should ... how do you do it?
I have a part database which has two fields - code and description. e.g.
class Part(models.Model):
code = models.CharFi
Hello, first of all I'll like to thank everyone that worked on this,
it's really cool and a lot of knowledge has been put into one place
for easy consumption.
I did found some inconsistencies on the docs I'll like to point out:
1- the different installation docs use a methodology with little
chan
Dear all,
Is there another form the foreignkey field can take besides the dropdown? I
mean if there are 10,000 enteries for a particular foreign key and I am not
using the admin interface won't it slow things down?
Thanks.
--~--~-~--~~~---~--~~
You received this m
it sure does, thank you, i think thats exactly what i need.
On Oct 15, 11:16 am, Katja Loeffler <[EMAIL PROTECTED]> wrote:
> > I found couple of googlecode projects that seem like they may help me,
> > but they seem to be SERIOUSLY pre alpha!.
>
> > Any pointers? or ideas on how i can go about th
You can also try this:
or_query = Q()
if places:
or_query = or_query | Q(persplace__icontains=places)
if names:
or_query = or_query | Q(persname__icontains=names)
results = Person.objects.filter(or_query)
--~--~-~--~~~---~--~~
You received this
Thank you James!
That is actually cool behavior as they do show up on the list page and
are indeed not needed on the detail page.
Should your note below be added to
http://docs.djangoproject.com/en/dev/ref/models/fields/#datefield
?
Thanks again,
Rob
On Oct 18, 2008, at 11:27 AM, James
Are you saying, instead of saying r^'some_pattern/',
include(urls_to_include), basically cut and paste that included url
file into my project's url file then decorate the views (in this case,
they are all generic)? While I understand you can write any urls you
want, I guess I don't understand why
Thanks!
On Oct 18, 12:07 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> 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.
On Sat, Oct 18, 2008 at 12:25 PM, Heather <[EMAIL PROTECTED]> wrote:
> What do you mean by "set up the urls so you'll have it"?
Somewhere in your URL configuration, put URL patterns which point to
the views you want at the URLs you want, and wrap the views with
login_required there.
Remember: UR
On Sat, Oct 18, 2008 at 12:20 PM, Rob Goedman <[EMAIL PROTECTED]> wrote:
> I couldn't find this in the ticket list. Has anybody else encountered/
> tried this?
This is really sort of intended behavior; auto_now and auto_now_add on
a model field implicitly set "editable=False", which means it's no
What do you mean by "set up the urls so you'll have it"?
On Oct 18, 12:12 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Sat, Oct 18, 2008 at 10:22 AM, Heather <[EMAIL PROTECTED]> wrote:
> > Well, after trying to work this out a bit more, it looks like a nice
> > solution is to make a midd
Hi,
With below example, using the 1.1 pre-alpha SVN-6477 version:
class Entity(models.Model):
...
name = ...
created_on = models.DateTimeField(auto_now_add=True)
created_by = ...
...
and
class EntityAdmin(admin.ModelAdmin):
fieldsets = [
Hello,
No one has any ideas?
The code I'm actually using in my view is almost identical to the
validage_contact view from
http://toys.jacobian.org/presentations/2007/oscon/tutorial/ (single
slide:
http://toys.jacobian.org/presentations/2007/oscon/tutorial/images/django-master-class.081.png)
and
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
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 my hosting provider..
"from django.newforms import form_for_model"
But doesnt work on my local
On Sat, Oct 18, 2008 at 10:22 AM, Heather <[EMAIL PROTECTED]> wrote:
> Well, after trying to work this out a bit more, it looks like a nice
> solution is to make a middleware class and use the process_views() but
> I'm not quite at the answer yet.
Generally, I don't consider the URLs for an appli
Well, after trying to work this out a bit more, it looks like a nice
solution is to make a middleware class and use the process_views() but
I'm not quite at the answer yet.
On Oct 17, 11:15 am, bruno desthuilliers
<[EMAIL PROTECTED]> wrote:
> On 17 oct, 16:18, Heather <[EMAIL PROTECTED]> wrote:
The period for submitting tutorial proposals for Pycon 2009 (US) is open and
will continue through Friday, October 31th. This year features two
"pre-conference" days devoted to tutorials on Wednesday March 25 & Thursday
March 26 in Chicago. This allows for more classes than ever.
Tutorials are 3-h
A very common problem is that the timezone or system clock is off.
Most Blog implementations allow you to create a blog entry "in the
future" so it shows up on your web page only after a specified time.
This capability plays havoc with noobies who haven't bothered to set
their timezone correctly i
i think you may need to "name" the argument. For example:
url(r'^$', list_detail.object_list, {'queryset': Project.objects.all()},
name='project-home'),
keith
On Fri, Oct 17, 2008 at 4:59 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 17, 2008 at 3:30 PM, dkadish <[EMAIL PROTECTED]
Dear Christian,
Thanks a lot, this is exactly what I needed and it works like a charm!
For the moment, I am using a list, as you suggested, since I am not
using the keys of the dictionary. And I had to make a slight change,
since what I needed was an AND operator, not or, so I ended up with:
hi all.
A friend of mine is hosting a number of websites over at webfaction.
I've got them setup as follows.
/staticserves static content
/www django install serving 5 sites
/www2 django install serving 5 sites
/www3 django install serving 3 sites
all of the sites seem to be pointing
On Oct 18, 2008, at 7:48 PM, Ned Batchelder wrote:
> One advantage of the Python literal over pickles: in a pinch, you
> can use ad-hoc SQL queries to find stuff in Python literals, ugly as
> it is. With pickles, the data is completely opaque until
> unpickled. I'm not saying you'd use WH
On Sat, Oct 18, 2008 at 6:10 PM, Philippe Raoult
<[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I've starting porting my little app (20k loc) from 0.96 to 1.0 and
> I've been hitting a wall of reverse/url errors. I haven't seen
> anything in the porting wiki page so I'm wondering if anyone has
> al
One advantage of the Python literal over pickles: in a pinch, you can
use ad-hoc SQL queries to find stuff in Python literals, ugly as it is.
With pickles, the data is completely opaque until unpickled. I'm not
saying you'd use WHERE python_literal LIKE '%image_type%' in production
code, but
please try restarting your webserver after uploading or, use the
internal django testserver on a local machine
On 17 Okt., 20:22, ashbii <[EMAIL PROTECTED]> wrote:
> I am new to Django, but love it so far. I went through a tutorial and
> created a basic blog app. I'm using Django's admin i
chris wrote:
> Dear django users,
>
> Being rather new to django, I can't wrap my head around the
> following:
> I am trying to execute a query from a search form. The search form
> has three fields, Names, Dates and Places. I want to AND the queries,
> so that if Names and Places are filled in
Hello all,
I've starting porting my little app (20k loc) from 0.96 to 1.0 and
I've been hitting a wall of reverse/url errors. I haven't seen
anything in the porting wiki page so I'm wondering if anyone has
already encountered similar issues ?
I'm seeing stuff like: Reverse for '' with arguments
Hallöchen!
I try to achieve the following HTML table layout:
.+--+---+
.| 1 | |
.+--+---+
.| 2 | |
.+--+---+
.| 3 | |
.+--+---+
In the cells 1, 2, 3, I'
Dear django users,
Being rather new to django, I can't wrap my head around the
following:
I am trying to execute a query from a search form. The search form
has three fields, Names, Dates and Places. I want to AND the queries,
so that if Names and Places are filled in, I want to return only
rec
ashbii wrote:
> I am new to Django, but love it so far. I went through a tutorial and
> created a basic blog app. I'm using Django's admin interface to add
> new blog posts -- I have a blog "Post" model.
>
> My problem is that whenever I enter and save a new blog post via
> admin, its not showi
Kevin wrote:
> album_uri_to_copy might look like:
> http://www.ggpht.com//data/feed/api/user/someuser/album?id=4rdioE_s&kind=photo
>
> When calling:
> album_feed = gclient1.GetFeed(album_uri_to_copy)
>
> from a Python shell it works fine. When calling it from Django it
> returns an Exception say
Wayne Collier wrote:
> from Cookie import SimpleCookie
> ImportError: cannot import name SimpleCookie
It sounds like your python installation is broken. What about when you
fire up a plain python shell and type:
>>> from Cookie import SimpleCookie
Cookie is a bundled module in the standar
54 matches
Mail list logo