Hello all,
I have a problem with get objects from User
when i give
user = User.objects.get(email='[EMAIL PROTECTED]')
if only one data is there it is executing ok... but if there are two
or more it showing and AssertionError
get() returned more than one User -- it returned 2!
Is there any way
Hi...
Still trying to fix the fixtures... The yaml file is
- fields: {d_name: 'Every day'}
model: utils.Day
pk: 1
- fields: {d_name: 'All open days'}
model: utils.Day
pk: 2
and my model is
class Day(models.Model):
name=models.CharField(max_length=20)
class Admin
Hi... Thanks alot for trying to help me out... It is a typing mistake
made while posting the message. I did not make that mistake here. I
get a localsettings.py not set, using default settings when I try to
run the dev server, when don't have such a file in my project.Any idea
what's wrong?..
You are right - you don't want to do all that in the view. You should
be able to pass in your railway_list as an object to the template then
in your template show each item as {{railway_list.name}} or something
like that.
Dan wrote:
> Hello All
>
> I seem to be having a bit of a problem with
On Sun, 2007-09-30 at 20:37 -0500, James Bennett wrote:
> On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote:
> > I'm not sure what drove me to call it "fragment caching".
> > What I really meant to point at are the little things (such as
> > form_for_model()) that would likely benefit from some obj
On Sun, 2007-09-30 at 20:29 -0500, James Bennett wrote:
> On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote:
> > My question was really only about the former, a much simpler problem:
> > How to keep a tcp connection persistent and re-use it across requests?
>
> By using a pooling connection manage
Hello All
I seem to be having a bit of a problem with separation of markup and
code.
I would like to output from 3 different models; railways, rail lines
and stations a nested unordered list, so far i have got this to work:
def view_transport(request):
railway_list = Railway.objects.all()
going to sleep, enough for tonight... zzz
the subject is self-explanatory guys, I tried using attrs={'checked':
something} but rendering is not on my side here, i falls to <...
checked="checked" ...>, please gimme some light to this, and a little
gift for tomorrow :)
VideoForm.base_fields['k
Instructions for unsubscribing are in the bottom of every message sent
from this list:
>
A minor plea for those who are still subscribed: please don't pile on
with responses. It's an easy mistake to make.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~
--~--~-~--~~~---~--~~
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 PROTECTED]
For more opti
> A search of the group didn't turn this up, so I thought I'd ask: is
> there any way to get an HTML version of the docs other than slurping
[snipped]
Since the documentation is in reST format you can generate the HTML
yourself. Install docutils and then use rst2html to convert the
documentation
[snipped]
> I get the error message:
>
> SMTP AUTH extension not supported by server.
It would be helpful if you could post the exact error message.
Cheers
Thejaswi Puthraya
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote:
> I'm not sure what drove me to call it "fragment caching".
> What I really meant to point at are the little things (such as
> form_for_model()) that would likely benefit from some object
> caching instead of burning cycles for each request.
You c
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote:
> My question was really only about the former, a much simpler problem:
> How to keep a tcp connection persistent and re-use it across requests?
By using a pooling connection manager external to Django. Again,
complicating the application layer wi
anyone who has opinion on this?
thanks
james
On Sep 29, 10:01 am, james_027 <[EMAIL PROTECTED]> wrote:
> hi all
>
> the 2 methods below have no errors but are different in a way that the
> first one doesn't give me the resultset in the order that I want while
> the second method give me the resu
On Sun, 2007-09-30 at 16:16 -0500, James Bennett wrote:
> On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote:
> > Hm, this raises some serious scalabity questions for me.
> > >From your description it sounds like there is no template
> > fragment caching, not even db connection pooling possible
> >
I am trying to use the send_email facility from django.core.mail with
the following
in my settings.py
EMAIL_HOST = 'smtp-server.cfl.rr.com'
EMAIL_PORT = '25'
EMAIL_HOST_USER = 'username'
EMAIL_HOST_PASSWORD = 'password'
I get the error message:
SMTP AUTH extension not supported by server.
I
Richard
Thanks for that - I appreciate it
Cat
On Sep 29, 12:19 pm, r_f_d <[EMAIL PROTECTED]> wrote:
> Cat,
> I will be posting what I am doing within the next day or to for you.
> -richard
>
> On Sep 27, 8:47 pm, Cat <[EMAIL PROTECTED]> wrote:
>
>
>
> > Richard
>
> > I am currently developing a
I was misunderstanding where the app_directories loader looks for
files. It makes sense now.
Thanks,
Steve
On Sep 30, 3:58 pm, AndrewK <[EMAIL PROTECTED]> wrote:
> You need to place your tag templates into the subdirectory called
> "templates" of your application directory.
> In that case
> d
On Sep 30, 2:23 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Given the age of that ticket, however, is the procedure that "requires
> a bit of work" documented anywhere?
Or you could just use SmileyChris' implementation [1]_ for now (which
works well).
.. [1] http://smileychris.tactful.c
On Sep 29, 4:16 pm, Alper Çuğun <[EMAIL PROTECTED]> wrote:
> At this point I'm suspecting my webserver from doing something
> strange. Any way I can diagnose this and contact my admin with a solid
> error?
It was. Found the solution, it seems that SCGI is buggy:
http://barryp.org/blog/entries/mod
On 9/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Given the age of that ticket, however, is the procedure that "requires
> a bit of work" documented anywhere?
Don't be put off by the ticket being old; for a while there really
wasn't a suitable "champion" for the idea, and so not much hap
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote:
> Hm, this raises some serious scalabity questions for me.
> >From your description it sounds like there is no template
> fragment caching, not even db connection pooling possible
> with django?
You can cache anything you want to cache; read the c
HI all,
I am trying to implement opening hour feature for a seller so that
they can put two sets of opening hours per day. WOuld be great if
anyone already has implemented similar code and wants to share it!:-)
This is the way I am trying to do it and at the end you will find my
questions.
I ha
You need to place your tag templates into the subdirectory called
"templates" of your application directory.
In that case
django.template.loaders.app_directories.load_template_source would be
able to found your custom tag template. And you don't need to add this
directory's path to TEMPLATE_DIRS v
Thanks.
Given the age of that ticket, however, is the procedure that "requires
a bit of work" documented anywhere?
Regards,
-scott
On Sep 28, 11:25 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > A search of the group didn't turn t
I created a custom inclusion tag that makes use of a template file
named menu_tag.html. I placed that file in the app's subdirectory of
the template directory.
When I tried to make use of it I got a template does not exist
error.
I was able to resolve this by adding the app's subdirectory to th
Hello,
I tried to fill this Item with data (non english texts): (Django version
0.97-pre-SVN-unknown)
class StoreItem(models.Model):
ITEM_TYPES = ( ('VHS','VHS'),
('CD','CD'),
('VHS','VHS')
)
class Admin:
list_display = ('na
On Fri, 2007-09-28 at 22:34 -0600, staff-gmail wrote:
> James Bennett wrote:
> > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote:
> >
> >> i'm looking for a way to perform a bunch of initialization tasks
> >> right after django startup.
> >>
> >
> > There really is no such thing as "Djang
On Fri, 2007-09-28 at 22:29 -0500, James Bennett wrote:
> On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote:
> > i'm looking for a way to perform a bunch of initialization tasks
> > right after django startup.
>
> There really is no such thing as "Django startup"; remember that
> Django is hosted
We just finiched a really cool RSS feed news reader. I need people
comments on it.
here is the link of the web site.
If you wish to know more about RSS feeds here is a group link that I
just started.
http://groups.google.com/group/adsense-and-rss-feeds/web/netsplorer-com?hl=en
all the best to ever
Hi,
I have the following models for each item in my shopping cart:
class CartItem(models.Model):
option = models.ForeignKey(Option) #product option tied to a
particular product
cart = models.ForeignKey(Cart) #contains all cart items
quantity = models.IntegerField(blank=Tr
Earn upto $5000 Join FREE Now
IF YOU WANT NON-STOP INCOME
NOTE: THIS MESSAGE IS SENT TO INTERESTED MEMBERS OTHERS PLEASE IGNORE
For more details please log on to
http://www.ezinfocenter.com/9844946/CB
Instead of 9844946 you can use your Own ID
PLEASE COMPLETE THE FOUR STEPS TO STEP UP YOU
Hello everyone! I am trying to setup FastCGI for my Django project,
using the following dispatch.fcgi script:
#!/usr/bin/env python
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/me/projects/django/trunk")
sys.path.insert(0, "/home/me/projects/flup/trun
On Sep 29, 1:18 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 28-Sep-07, at 11:16 PM, Milan Andric wrote:
>
> > Is there some standard practice on a machine that has production code
> > running in mod_python but also has developers running their django-
> > python web server? Is that disc
On Sep 30, 12:42 pm, Steve Potter <[EMAIL PROTECTED]> wrote:
> On Sep 29, 6:58 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
> > What version of Apache are you using? The ordering or rule evaluation
> > in Apache 1.3 is actually based on order of LoadModule/AddModule lines
> > in Apache con
Thanks guys,
I didn't fully understand the meaning of "redirect_field_name".
@login_required() on it's own works as expected.
Paddy
On Sep 30, 3:19 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/29/07, Paddy Joy <[EMAIL PROTECTED]> wrote:
>
> > views.py
> > @login_required(redirect_fiel
Hi,
Studying the new features in the newform admin, querysets give great
control over which instances will be shown.
I wonder if it is/will be possible to restrict inline fields (on a
foreign key) in a similar way?
Also, there is a ticket for 'classes': 'collapse' in newforms-admin
( tick
38 matches
Mail list logo