How do i create a long long integer field in my model ? Do I use
decimal ? (worried about performance of the decimal field). I am using
the mysql backend.
Simon.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
options). If
I put a variable like ?lite=1 on the URL, is there a way to access
this variable from the flatpages base template, and adjust the context
accordingly?
Thanks!
--
Simon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Looks good. Thanks :)
On 21 Apr, 14:31, Tom Evans wrote:
> On Tue, 2009-04-21 at 06:02 -0700, Simon wrote:
> > I'm using Django flatpages for all the "one-off" pages on my website,
> > but I'd like to create a "lite" version of the site for iPh
Hi all,
I am sure this must be a real noob question as it's so easy to do in
SQL.
I am trying to replicate something like the following in Django:
SELECT DATE(created) AS created_day, COUNT(id) AS NumberOf FROM
my_table GROUP BY created_day
Effectively, all I want to do is a count grouped by
what you think about the app.
Regards,
Simon.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@goog
> Is their an option of positioning the Captions associated with the images?
The captions for the images are positioned below the image by default.
To change this, you would have to dive into the javascript in /static/
css/imageflow.jss. Search for captionDiv. The JS between lines 218
=and 280 ba
On Jun 11, 4:26 pm, backdoc wrote:
> The examples are pretty slick.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
dj
ile a bug report, I wanted to check here if it's a known issue.
If anyone has any input I'll be very grateful to hear it.
Thanks!
Simon
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
ld take in the xml file
through stdin,
but since I don't know much about django and would like to use it for
its database
capabilities I was wondering if this would even be possible?
Thanks for all the help.
-Simon
--~--~-~--~~~---~--~~
You received this message
Thank you for the quick reply DR.
I'll look into it.
--~--~-~--~~~---~--~~
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 gr
I created a unit test on Django to create a user account and send a
verification e-mail. The user is created, but the e-mail fails to send. The
e-mail's default contents are supposed to be created as a field in the user
when a user is created, but for some reason, Django is claiming -
Databas
Hi,
I've got a webservice built on top Django which requires that every request
(except authentication) include an auth token.
I've implemented this restriction as Middleware...
def process_view(self, request, view_func, view_args, view_kwargs):
if hasattr(view_func, 'NoAuthenticati
Hello,
I am using Django 1.2.3. I was trying to check user permissions on a
certain model using the perms context variable from
contrib.auth.context_processors.auth. As per the documentation, I
tried this (foo is the app label, Bar is the model, and I'm using
default permissions):
{% if perms.foo
eld.
I'm not sure if I've missed something obvious. Searching around turns up an
old bug which gives the same problem but was fixed years ago.
Any suggestions would be appreciated, TIA.
--
Simon
--
You received this message because you are subscribed to the Google Groups
"Dja
Spot on. Thanks.
--
Simon
--
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
Good afternoon all,
Perhaps someone can give me a pointer here:
I'm an old hand at Django (1.0 to 1.6) but now in 1.8.2, the documented
process of writing and attaching custom handlers for '404' and '500'
appears to have stopped working.
As per the dox, I have added into my ROOT url file, the
module to call the JVM, just as
you would from the command line, or you might perhaps take a look at
<http://jpype.sourceforge.net/> or <http://jpe.sourceforge.net/>.
--
Cheers,
Simon B.
[EMAIL PROTECTED]
http://www.brunningonline.net/simon/blog/
--~--~-~--~~~
Hello, i'm new with python (and french so my english may seem very
poor, sorry about that).
I would like to list a model's fields and return a dict, here is the
example :
I have a model class with :
meta_title : CharField(...)
meta_description : CharField(...)
body_header_title : CharField(...)
thanks dude.
any idea to split the dict on the _ char ?
recursive function ?
--~--~-~--~~~---~--~~
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
I've written more about the release here:
http://simonwillison.net/2008/Sep/3/dmigrations/
The project (including documentation and a tutorial) is here:
http://code.google.com/p/dmigrations/
I'll be discussing the project on the schema migration panel at
DjangoCon this weekend.
return False
return obj.user == request.user
def has_delete_permission(self, ...)
# similar
Cheers,
Simon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" g
On Sep 19, 10:24 am, "Nick Sandford" <[EMAIL PROTECTED]> wrote:
> Is there some kind of limit the admin imposes on the number of items
> it will show in a or the horizontal filter list? If so, can I
> change it? Also, is there any better way to do this?
raw_id_fields is the admin option you need
profile,
...
where
class Character(Model):
user_profile = ForeignKey(UserProfile, related_name='characters')
...
I get a ValueError:
Cannot assign "": "Character.user_profile" must be a "UserProfile"
instance.
The user is logged in, and has
profile = user.get_profile()
D'oh, got it.
~Simon
On Sep 23, 2:47 pm, Simon Forman <[EMAIL PROTECTED]> wrote:
> I'm getting an error I can't figure out.
>
> I have a "UserProfile" class that is the AUTH_PROFILE_MODULE setting,
> but then when I
Thanks Karen, I must have gotten it just as you posted your reply,
Thanks anyhow,
~Simon
On Sep 23, 2:59 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 23, 2008 at 5:47 PM, Simon Forman <[EMAIL PROTECTED]> wrote:
>
> > I'm getting an e
look at the code, and it appears you
> are correct. ``--traceback`` exists as a top-level command option, but
> it doesn't appear to be exploited at all inrunserver. This actually
> surprised me - it seems like a reasonable suggestion for an
> impr
x27;m using a queryset filtered with a callable (datetime.now) which
appears to be set only once/on load time?!
Does anyone no a way to work around this?
Regards,
Simon
On Feb 2, 9:21 am, Simon Westphahl wrote:
> Hi,
>
> I'm getting the following 404 when accessing an
the 'service_detail' dict passed to the
'object_list' generic view?
It seems as if the the queryset is outdated and only evaluated once?
Thanks in advance!
Simon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
the 'service_detail' dict passed to the
'object_list' generic view?
It seems as if the the queryset is outdated and only evaluated once?
Thanks in advance!
Simon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
I finally got it to work! I wrapped the object_detail view with a view
that calls the manager method as suggested by Carl.
Thank you!
On 2 Feb., 16:38, Carl Meyer wrote:
> I think you've got the right idea of what's going wrong, but you're
> looking for the problem in the wrong place. This met
ic view seems to to some
kind of caching.
This behavior can be prevented by wrapping the generic view:
###
def object_detail(request):
return django.views.generic.list_detail.object_detail(
request,
queryset = Service.valid_objects.all()
)
###
It seems to me as if there is some m
That's correct, it has to be the name of the profile model as written
in app/models.py.
s/
On Mar 11, 5:25 am, Micah Ransdell wrote:
> Viktor,
>
> Try capitalizing UserProfile so that it is 'membership.UserProfile' instead
> of all lowercase. That has worked for me in the past.
>
> Micah
>
> On
On Mar 12, 3:11 pm, simong wrote:
> I'm creating a profile form that includes first_name and last_name
> fields that write to the User model and additional fields that write
> to my user profile model derived from Alex S's post
> here:http://groups.google.com/group/django-users/msg/00e49ca16c
Hi men,
I'm using Django + Grappelli and I'd like to know if there is a simple
way to make some improvements to the dashboard (index) of the admin
such as :
- hide modules (like Django_Evolution)
- merge modules (Auth entries with my User module)
- rename existing modules (not for now, just to k
Thanks, I don't though about users perms !
Grappelli just turn your admin more pretty, you should try:
http://code.google.com/p/django-grappelli/ !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
0.0.1] File "/Users/
myname/mysite3/django/contrib/sessions/middleware.py", line 9, in
process_request
[Wed Aug 19 11:00:26 2009] [error] [client 127.0.0.1] ImportError: No
module named db
--
I tried everything that I found on the web but nothing seems to work.
Any sugges
n2.6/lib-dynload', '/Library/Frameworks/
Python.framework/Versions/2.6/lib/python2.6/site-packages', '/Users/
myname', '/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django', '/Library/Frameworks/Python.framework/
Versions/2.6/lib/pyt
tz.py is in the directory: "'/Library/Frameworks/Python.framework/
Versions/2.6/lib/python2.6/site-packages/psycopg2" which is in the
sys.path list. Why does the import still fail? Please advise.
Simon
On Aug 20, 4:37 pm, Thomas Guettler wrote:
> The important part: cannot im
d "su - 70". It asked for the password.
I entered my root password, that's the only password that I set before
and the only password I know. But it said the password is wrong. I
cannot go any further as your advised. What should I do? I am not too
familiar with using Linux. Please help
I entered my root password (the only password that I
know) and it complained that the password is wrong.
Please advise.
Simon
On Aug 22, 2:30 am, Randy Barlow wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Simon Lee declared:
>
> > Hi Thomas,
>
> > O
quot; %
ENVIRONMENT_VARIABLE)ImportError: Settings cannot be imported, because
environment variable DJANGO_SETTINGS_MODULE is undefined.
I searched "/Users/myname/mysite3/settings.py" for the variable SESSION_ENGINE
but it is not defined in that file. I don't know where settings.S
not found: _PQbackendPID
[Tue Aug 25 19:12:24 2009] [error] [client 127.0.0.1] Referenced
from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/psycopg2/_psycopg.so
[Tue Aug 25 19:12:24 2009] [error] [client 127.0.0.1] Expected in:
dynamic lookup
[Tue Aug 25 19:12
Be more specific, is model in the context ? is name a property of
model ?
On 2 sep, 17:44, Sandra Django wrote:
> Hi friends, Can I do a condition depending on my model name? For example, I
> did that:
> {% ifequal model.name "Mymodelname" %}
> do something
> {% endifequal %}
>
> But don't
velopment server is not running and I typed in
http://localhost/myapp/admin, it prompt me the login page but without
all the styling as before. I can login and go to the admin dashboard
page but again the display is not with the django admin template.
I try leaving the TEMPLATE_DIRS in the settin
them
in /Users/my_name/??? How should I set the permission of the files/
directories under the production sites' directories? Should I set the
user/group to be apache, root, or just under my_name? Please advise.
Simon
On Sep 9, 7:52 pm, Karen Tracey wrote:
> On Wed, Sep 9, 2009 at 7:23 A
On Apr 3, 4:05 pm, Ayaz Ahmed Khan wrote:
> On 03-Apr-09, at 7:43 PM, simong wrote:
>
> > if request.method == 'POST':
> > productform = ProductForm(request.POST, instance=product)
> > productform.user = user
> > if productform.is_valid:
>
> `is_valid` is a method bound to t
On Apr 3, 5:42 pm, Karen Tracey wrote:
> On Fri, Apr 3, 2009 at 12:07 PM, Simon Greenwood wrote:
>
>
>
>
>
> > On Apr 3, 4:05 pm, Ayaz Ahmed Khan wrote:
> > > On 03-Apr-09, at 7:43 PM, simong wrote:
>
> > > > if request.method == 'POST
me int) and where
> should I be converting it? In validation, in the pre-save signal, in
> the save signal? Or should I be trying to convert it on the form
> itself? Where is the ForeignKey instance save process documented?
>
To bump this and to add more detail: now, when I attempt to s
On May 18, 12:02 pm, Simon Greenwood wrote:
> On May 15, 5:58 pm, simong wrote:
>
>
>
> > There's probably a very simple answer to this but I can't see it at
> > the moment:
>
> > This model:
>
> > class Product(models.Model):
>
On May 18, 3:32 pm, Simon Greenwood wrote:
> On May 18, 12:02 pm, Simon Greenwood wrote:
>
>
>
> > On May 15, 5:58 pm, simong wrote:
>
> > > There's probably a very simple answer to this but I can't see it at
> > > the moment:
>
', 'Confirmed'))
elif self.fields['STATUS'] == 'R':
self.fields['STATUS'] = (('N', 'Cancelled'),
('C', 'Confirmed'))
return self
Thanks
Simon
--~--~-~--~
Thanks v
What you said echoes what I found on a posting on djangosnippet.org
about populating the choices in the init field. It works fine now.
On May 26, 9:30 am, V wrote:
> On May 25, 1:27 pm, Simon Davies wrote:
>
>
>
> > I have a choices field called status in my model
OK, I found, I have to write the path in request.path_info !!!
It works !
--~--~-~--~~~---~--~~
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 uns
Hi there !
I try to understand why my form doesn't render anything. No exception
is raised and i'm going crazy !
In my forms.py I got these (simplified for instance) classes :
class SignupPasswordWidget(forms.MultiWidget):
def __init__(self, attrs=None):
widgets = (
form
Don't you find my problem really funny ?
--~--~-~--~~~---~--~~
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 em
Ouh thanks ... because of the TEMPLATE_DEBUG setting, I though
exceptions within templates were raised ... my sentence seems weird.
Ill try that tonight.
Thanks again.
JF
On 24 sep, 14:42, Karen Tracey wrote:
> On Thu, Sep 24, 2009 at 2:49 AM, JF Simon wrote:
>
> > Hi there !
&g
I launched form.as_table() in my terminal and the traceback is :
File "", line 1, in ?
File "/usr/lib/python2.4/site-packages/django/forms/forms.py", line
190, in as_table
return self._html_output(u'%(label)s%(errors)s%
(field)s%(help_text)s', u'%s',
'', u'%s', False)
File "/usr/lib/pyt
Ah I found something ...
In my forms.MultiWidget subclass, "decompress" method was returning
None and not a couple of values !
I just done that :
def decompress(self, value):
if value is None:
return (None, None)
return value
I don't know if it's the best way, bu
hat can I do to build
x86_64 for psycopg2?
I am using the Apache that comes with Apple (I think it is in 64 bit).
I am also using the python2.5 that comes with Leopard. The PostgreSQL
was downloaded from www.postgresql.org under the Binary Packages for
Mac OSX. Any advise is greatly appreciated.
Hi,
I tried in vain to make it work !!! I've got some models modules in a
pckage named "models" in my app, I tried these 2 solutions (who are
mostly the sames) :
- http://www.acooke.org/cute/UsingaDire0.html
-
http://www.ifisgeek.com/2009/01/26/splitting-django-models-into-separate-files/
So:
-
I made some tests, it seems that imports don't work.
In th __init__ I tried:
from project.app.models.module import Class
... and Class is not imported
Is the project package in the python's path as call manage.py
syncdb ?
GRRR
On 5 oct, 17:24, JF Simon wrote:
> Hi,
>
>
Ooops, it's me ... these tricks work perfectly, sorry !
On 5 oct, 17:37, JF Simon wrote:
> I made some tests, it seems that imports don't work.
>
> In th __init__ I tried:
> from project.app.models.module import Class
> ... and Class is not imported
>
> Is the
A great new feature. It's exactly what I need, thanks !!
On 20 sep, 09:37, patrickk wrote:
> you can now use GrappelliSite instead of AdminSite which gives you
> some options for the admin index page. take a look
> athttp://code.google.com/p/django-grappelli/wiki/customizingindexfor
> more inf
2009/12/15 'chiru'tha :
> hi..
> I'm new to Django, i need it in my project applications, can any one
> guide me to create a new model project(using MySql database). plz give
> the process in detail..
http://lmgtfy.com/?q=django+tutorial
--
Cheers,
Simon B.
--
u tell us what went wrong? Perhaps we can help.
--
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
djan
s to talk to
MySql - see <http://bit.ly/7r0trL>.
--
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this gro
2009/12/15 chiranjeevi muttoju :
> i've downloaded the mysql connector "MySQL-python-1.2.3c1.tar.gz'
> could u please tellme how to instal that in linux..
If you untar it, you should find installation instructions in the README.
--
Cheers,
Simon B.
--
You received this me
2009/12/15 chiranjeevi muttoju :
> hey i installed django on one machine, and sql in another machine.. in which
> mechine i need to install the sql connector.
The Django machine.
--
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups
"D
2009/12/15 chiranjeevi muttoju :
> ImportError: No module named setuptools
Seems pretty self-evident to me. Try installing setuptools first.
--
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
For anyone else who learned about DKIM recently [1], I've uploaded a
snippet for a DKIM-signing email backend [2].
[1]
http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html
[2] http://www.djangosnippets.org/snippets/1995/
--
You received this message because
Are there any django forum applications available which come packaged
with polling functionality?
Cheers
Simon
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To u
Hello,
I'm lost in Python !!
If I write this
class Dated(Behavior):
created_on = models.DateTimeField(_('Created on'))
updated_on = models.DateTimeField(_('Updated on'))
class Events:
def __init__(self):
super(Events, self).__init__()
I get an error :
OK, Events is not in the 'global' scope !
Thanks (i'm tired)
On 3 juin, 07:18, Daemoneye wrote:
> class A:
> class B:
> pass
> a=A()
> B=A.B()
> you should add A. to control the class B
> ÔÚ Thu, 03 Jun 2010 12:50:06 +0800£¬JF Simon Ð
online at
http://www.char10.org/
Please register in next two weeks to avoid late booking fees.
See you there!
--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Training and Services
--
You received this message because you are subscribed to the Google Groups
t;http://south.aeracode.org/>.
--
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@g
On 22 June 2010 12:33, samie wrote:
> sir i am not able to install django development version on my machine
> i am using vista 32 basic..
>
> problem is occurring during svn checkout command,,
And the problem is?
--
Cheers,
Simon B.
--
You received this message because you are s
its=8, decimal_places=2)
admin.site.register(DecTest)
###
Thanks in advance!
Regards
Simon
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscrib
For clarification: The output in the admin list view is properly
localized. Only the input doesn't work.
I'm using Django 1.2.1 and a almost vanilla Django project only with
this one test app installed.
On 3 Jul., 22:07, Simon Westphahl wrote:
> Hi,
>
> I tried to im
= DecTest
class DecAdmin(admin.ModelAdmin):
form = LocalDecForm
list_display = ('dec',)
[...]
###
But is this realy the way it's meant to work? A "DateTimeField" is
localized by default ...
On 4 Jul., 11:03, Simon Westphahl wrote:
> For clarification: The outp
DateTimeField is localized by default and the
DecimalField is not.
Regards
Simon
On 5 Jul., 19:33, saboter wrote:
> I have mixed models with admin in my example. Sorry.
>
> It should be like this:
>
> ### models.py
> [...]
> class JobForm(ModelForm):
> def __init
I'm using Django 1.2.1 and it doesn't work any longer ;)
Just switched back to Django 1.2 and it works. But I think that's not
a solution.
Regards
Simon
On 6 Jul., 15:21, saboter wrote:
> I used the workaround in project that runs under django 1.2 and it
> looks goo
On Fri, 2010-07-16 at 20:33 +0530, Venkatraman S wrote:
> I thought South was DB agnostic.
It is, but databases provide different feature sets. If databases were
all the same there would not be so many to choose from.
--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Development, 2
2nd Vote for Nonrel
http://www.allbuttonspressed.com/projects/django-nonrel
If you'd prefer not to use that, there's also Google's App Engine
Helper for Django -
http://code.google.com/p/google-app-engine-django/
http://code.google.com/appengine/articles/appengine_helper_for_django.html
But unlik
"e-mail" can't have a hyphen in it. Python thinks you're "assigning"
to the operation e - mail
just type into a shell to see.
e-mail = "blah"
SyntaxError: can't assign to operator
rename to e_mail or email or something and you should be good to go
On 22 July 2010 06:10, strayhand wrote:
> I ap
Your authentication has failed somehow and authenticate() has returned
an AnonymousUser object.
calling .save() on this raises the exception
(code =
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/models.py#L399
)
On 22 July 2010 23:33, Jeff wrote:
> Hi,
>
> I get a Not
are
un-ordered data structures. If you iterate over the items in a
dictionary, you'll see its entries in an arbitrary order.
--
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email t
Use the "safe" filter to disable the auto-escaping that templates
apply to all variables:
http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#safe
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djan
"/apps/frontend/modules/homepage/".
Can anybody help?
--
Simon Tite
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email
Ouch, many apologies, I sent the last message to the wrong mailing list!
Can an admin delete it please?
--
Simon Tite
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegrou
I know I'm missing something really simple really but I keep getting
this error:
SyntaxError: Non-ASCII character '\xc2' in file /home/simon/
djangoprojects/bikerescue/bikeshop/models.py on line 46, but no
encoding declared; see http://www.python.org/peps/pep-0263.html for
detail
or, bin versus trash
can), spelling (e.g. colour versus color), punctuation (e.g. with the
placement on puctuation in relation to quote marks), and occasionally
even grammar ("my bank are dreadful" versus "my bank is dreadful").
--
Cheers,
Simon B.
--
You received this message
obj, decimal.Decimal):
return "%s" % obj
return super(MyJsonEncoder, self).default(self, obj)
The simplejson.dumps() method takes an optional cls keyword argument -
that's where you plug MyJsonEncoder in.
--
Cheers,
Simon B.
--
You received this message because y
ng django to do too much??
Looks to me like prices_demand.items is a dictionary, but whatever is
in states.1.items.6.1 is *not* a dictionary - it's a float, and
there's no sensible way to do a for loop over a float.
--
Cheers,
Simon B.
--
You received this message because you are s
u'm', 28)' and keyword arguments '{}'
not found.
Is there any way of using the current date without passing in an
additional variable from the view. As its the default
django.views.generic.date_based.py, this would be rather difficult.
Regards
SImon
--
You received this
ems.all():
b = UsedBike.objects.all().filter(id=elem.id)
or is there a neater way of doing this.
Cheers
Simon
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To un
ing
this approach a try myself over the next few days.
--
Cheers,
Simon B.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, sen
d
class MyForm2(TestForm2):
extra_field = forms.BooleanField()
print MyForm2().fields.keys()
# prints: ['test_field']
# extra fields not registered if superclass imported from other
app/module!
#
Python 2.6.4, Django
he webfaction server
somehow, everything still works fine locally, so I'm puzzled. Could
it be some kind of cache issue?, but surely anything would have been
deleted when I trashed the database.
Puzzled!!!
Thx in advance
Simon
--
You received this message because you are subscribed to the G
Duh!! yeah restarting apache did it. How did I forget something so
simple!!
Thanks
Simon
On 22 Feb, 15:04, Shawn Milochik wrote:
> Did you manually restart the Apache instance for this app?
>
> I had a similar problem, and it turned out that I had a bit of code in one of
> my mo
rderForm(ModelForm):
class Meta:
model = StockOrder
exclude = ('cancelled',)
However I run into the same problem as in 1, how can I manipulate the
exclude parameter. Is it possible to do so in __init__?
Thanks
Simon
--
You received this message because you are subscribed
1 - 100 of 710 matches
Mail list logo