error fixed.
The problem: I was using c:\documents and settings\hp_propietario
\mysite\ emplates\polls
\index.html (File does not exist)
instead of:
c:/documents and settings/hp_propietario/mysite/templates/polls
/index.html (File does not exist)
thanks..
--
You received this message because
Hi.
I'm following the tutotial for my first Django app, in part 3 after
edit the views.py file I'm getting the error.
I already created the polls directory with the index.html file as
indicated in the tutorial, also I've edited the setting.py to indicate
where the templates are located. When I r
Hi Tom,
I given try but not printing any values in html.
can you please add some more code
--
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
I have a model that may have a lot (billions) of records. I understand
that the "id" field of a model is defined as a 32-bits int. So it may
not be big enough.
Is it safe to just ALTER the database schema to change the "id" field
from int to bigint? Would Django break? What happens when the "id"
v
it worked,thanks aaa ton
--
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
django-users+unsubscr...@googlegroups.com.
For more optio
Hello,
I'd rather check for self.pk as you can use primary_key argument on a
field whatever is its name.
Regards,
--
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 unsubscr
On 13 March 2011 00:40, Julian Hodgson wrote:
> I need to set up some default values on a ManyToMany field only when a model
> is first created.
>
> How can I find out in the save() override if the object is being created for
> the first time?
>
> Do I check the table for rows which have self.id o
I need to set up some default values on a ManyToMany field only when a model
is first created.
How can I find out in the save() override if the object is being created for
the first time?
Do I check the table for rows which have self.id or is this not defined till
after the save?
Julian
--
You
On Mar 12, 9:06 pm, Igor Ischenko wrote:
> Hi hassan,
Hi
> try to add {% csrf_token %} somewhere inside form in your template
I have it there
and with it does nothing I mean: no error no response, just a form
reload!!!
> On 11 ÜÐà, 23:41, hassan wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am testing
On 14 фев, 15:21, myx wrote:
> Thank you for the reply. But I meant a slightly different case:
>
> Item.objects.filter(...).order_by(...).values_list('id', flat=True)[:
> 10]
>
> As you can see, there are four cloning operations. Wouldn't be
> chaining possible without cloning the queryset? The me
Hi hassan,
try to add {% csrf_token %} somewhere inside form in your template
On 11 мар, 23:41, hassan wrote:
> Hi,
>
> I am testing django 1.3 class based generic views. I have a model like
> this one:
>
> class Book(models.Model):
> name = models.CharField(max_length=50)
> author = mod
I recently used FeeFighters and they have a really awesome setup to
help you compare and find merchant processors and gateways. It's
pretty neat because the merchant processors "bid" based on your
preferences and all of their pricing is transparent and easy to
understand.
As for gateway, I am goi
Thanks Thomas,
These two solutions look interesting, but they are a lot more than I
required :)
I also think that a recommendation to copy a file and override it is
wrong - it kills future compatibility, regardless of how this would
really be solved..
Let's wait a few days and if not answer is a
El 12/03/11 13:31, yongzhen zhang escribió:
> Hi, i want to rendering JSON from Django views, here is my models:
> class Continent(models.Model):
> name = models.CharField(max_length='10',unique=True)
> code = models.CharField(max_length='5',unique=True)
> class Country(models.Model):
>
Hi, i want to rendering JSON from Django views, here is my models:
class Continent(models.Model):
name = models.CharField(max_length='10',unique=True)
code = models.CharField(max_length='5',unique=True)
class Country(models.Model):
name = models.CharField(max_length='10',unique=True)
The site is called Alamead.com, helping small business owners market
their goods/services efficiently and effectively. We will offering
website design, logo design, face book page design for only $99.
http://alamead.com/about-us
--
You received this message because you are subscribed to the Goog
I`ve asked the same question just a few days ago with little or no
luck. You`ll probably get somebody who recommends Grappelli (
http://code.google.com/p/django-grappelli/wiki/Grappelli_2 ) and/or
http://pypi.python.org/pypi/django-admin-tools and they might be what
you`re looking for, but I`ve tri
Hi,
Is there an easy way I'm missing to EXTEND the admin site's index.html
without copying the file and altering it, which kinda sounds like the
wrong solution?
Basically, I live with the current template well enough and want to
get updates with new versions of django, but I would like, for
examp
Well,
MAX_CUISINES = 3
def clean(self):
# three cuisines max. allowed
if self.pk is None:
# That's the case that raise the error
# you're inserting a new Restaurant
pass
else:
# Here, you're editing an existing Restaurant
Hi,
I am trying to evaluate django-tagging or taggit for a potential project and
was wondering if
anyone has done a study on the performance of the respective libs - i mean,
performance
in terms of scaling. Also, mptt for that matter. Was wondering whether
performance of the
app would be impacted
> When you define an abstract model, you have to define the ``abstract''
> property inside its
> Meta.http://docs.djangoproject.com/en/1.2/ref/models/options/#abstracthttp://docs.djangoproject.com/en/1.2/topics/db/models/#abstract-base-...
>
> That way your abstract class can inherit models.Model
Hi,
As far I can tell from the documentation, to use Django's extended
TestCase, you should use django.test.TestCase [1]. Using
django.utils.unittest allows you to benefit from python 2.7 unittest2
library, [2]
Regards,
[1]
http://docs.djangoproject.com/en/dev/topics/testing/#django.test.T
On Sat, Mar 12, 2011 at 12:06 AM, vamsy krishna wrote:
> I'm doing a file upload from one of my forms and writing the content
> to a temp file on the server. The problem is any file of size more
> than 250 KB is throwing the below error:
>
> Request Entity Too Large
> The requested resource
> /ter
Yeash. Don't know how I missed that. Thanks!
On Sat, Mar 12, 2011 at 5:27 AM, Shawn Milochik wrote:
> You can put a sort order in the model's meta info. That way you'll always
> have a default sort.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django user
You can put a sort order in the model's meta info. That way you'll always
have a default sort.
--
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, se
If I have a Product model which has a one-to-many relationship with
ProductImage model...
I can get the images in the template using product.productimage_set.all,
however, is there any way to sort that or will I instead have to query the
product images in the view?
--
*Green Tackle* - *Envir
I'm using the emencia newsletter, and things are essentially fine,
except that I've run into a very strange permissions issue in the
admin
backend. I have my regular user login, and the superuser. I've given
my
regular user all permissions for all newsletter models, and yet some
of
the inter-modal
Many thanks for the idea! I'll try the setup you're referring to.
Regards, Nick Rosencrantz
On Mar 12, 9:48 am, Jiten Singh wrote:
> Hi Nick,
>
> While working with GAE I use django provided onhttp://allbuttonspressed.com,
> it is django non rel i know you must
> have heard about it.
>
> I have
Hi Nick,
While working with GAE I use django provided on
http://allbuttonspressed.com, it is django non rel i know you must
have heard about it.
I have django1.2.4 final installed in my machine ,
however i use django non rel for GAE apps.. and make it part of my gae
project by symlinking to it d
Dnia 11-03-2011 o 22:45:34 greenie2600 napisał(a):
'Restaurant' instance needs to have a primary key value before a many-
to-many relationship can be used.
That is the answer You need to understand. afiak You can't perform m2m
validation on model level due that very reason.
That's why i di
Dear Group, Here's a question I try to solve, Maybe you know what's
the change between GAE+django 0.96 and GAE+django 1.2 with respect to
localization? Putting .po and .mo files in APP_NAME/conf ... used to
work and upgraded to django 1.2 it won't work anymore. Having upgraded
from django 0.96 to 1
Keep in mind am using this on appengine as django-nonrel. Perhaps someone in
the nonrel project or someone with some experience with it could tell us
whether this is a known issue
On 12 March 2011 12:11, Ndungi Kyalo wrote:
> It is a django.contrib.auth.models.User , as you say.
>
>
> On 11 Marc
It is a django.contrib.auth.models.User , as you say.
On 11 March 2011 22:06, Jason Culverhouse wrote:
>
> On Mar 11, 2011, at 10:46 AM, Daniel Roseman wrote:
>
> > On Thursday, March 10, 2011 11:59:15 PM UTC-8, Ndungi Kyalo wrote:
> > Hi guys. Am using django non-rel on appengine. I am using dj
Yes, the form validates and returns true.
On 11 March 2011 21:46, Daniel Roseman wrote:
> Are you sure that the condition is true - that the form is valid? Put some
> logging in to be sure.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
On Friday, March 11, 2011 11:37:38 pm Kenneth Gonsalves wrote:
> and all is well. I think the dev docs need to be clearer on this point
> and mention this at the outset. After all they *are* dev docs.
http://docs.djangoproject.com/en/1.2/topics/testing/#testcase
Mike
--
Would that my hand were
35 matches
Mail list logo