to do this?
Regards,
Martin
from django.db import models
class Refered(models.Model):
x = models.IntegerField()
class Base(models.Model):
ref = models.ForeignKey(Refered)
class Inherited(Base):
pass
# Then having run manage.py syncdb:
r1 = Refered(x = 1)
r1.save()
r2 = Refered(x =
Hi,
I've just started using both python and django, so bear with me if I'm
making a newbie mistake. I've done a small example model and want to
be able to administer it through the built-in admin interface in
django.
First I've expanded the user model in django, as described in [1] to
add some e
elForm)
and at the end, save some fields into model A, some into model B and
some in C?
I know this questions are little wierd, but i only want some
suggestion on how to approach this problem.
Thanks, martin
--~--~-~--~~~---~--~~
You received this message because you
ave a solution to this kind of problem?
Thanks in advance,
Martin
--~--~-~--~~~---~--~~
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
Did you browse google code already?
http://code.google.com/p/django-captcha/
I bet there are more apps there...
Best regards,
Martin
2009/4/8 Joshua Partogi
>
> Hi all,
>
> Can anyone recommend me any good django captcha apps? I tried search
> on the list but the results that
times hard
for me to understand the history.
Django Revision 10732
Regards,
Martin
--~--~-~--~~~---~--~~
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@go
On 11 Mai, 02:07, George Song wrote:
>
> The ticket doesn't appear to be what you're asking for. I think the
> easiest way is for you to insert an extra context variable in your view,
> since `GET` and `POST` are verbs associated with a request, not a response.
>
> --
> George
Thank you for the
way of thinking wrong? Adding the User-Field as a hidden field
to the form and then doing something like form.User=request.user
sounds pretty ugly. Especially when I just want to keep the original
value.
Regards,
Martin
--~--~-~--~~~---~--~~
You received this messa
> If you intend your form to save changes to an existing object, you
> must pass that object in as 'instance' when creating the form.
Thank you very much. You were right, I forgot to add the instance
object.
--~--~-~--~~~---~--~~
You received this message because
Is this the right syntax? If it's not, how would i display the first
video?
I really appreciate any help,
thanks, martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
In my manager i'm
just filtering articles that have videos, like
Article.live.filter(video__isnull=False).. and when i add 2 videos to
an article, templatetag doesn't return one article with 2 videos, ut 2
same articles with 2 videos..
So my question here is.. what am i doing wrong? I just
icle has
videos (Article.objects.filter(video__isnull=False))? if this the
right way, what is (should i add costum method in my model)?
I would appreciate any help,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
that didn't work too, because it selects only those articles, that
have the first video (video in model Video, with id=1) attached. i
have figured it out that i have to use dictinct().. now it works like
it's supposed to work ;)
thanks anyway,
enjoy
martin
On Feb 13, 3:13 pm, Mich
is need for
extra manager methods?
Thanks for your replys,
Martin
--~--~-~--~~~---~--~~
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 unsu
accomplish this, or does Django admin have a clever way to achieve
this?
Thanks.
/Martin
--~--~-~--~~~---~--~~
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
order_with_respect_to might be the solution, but it does not seem to
work.
/Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
Hi,
I'm having the same problem on shared hosting (asmallorange). Did
anybody find a solution? I have the 1.2.2 version of python-mysql and
the latest trunk of django (svn).
Thanks, Martin
--~--~-~--~~~---~--~~
You received this message because yo
revision 6300 seems to work fine for me.
--~--~-~--~~~---~--~~
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
(everything is in urls.py)?
thanks, martin
--~--~-~--~~~---~--~~
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
reate_user_profile}),
(r'^accounts/', include('registration.urls')),
(r'^accounts/profile/$', redirect_to, {'url': '/'}),
(r'^accounts/$',direct_to_template, {'template':
'registration
, because this code works
fine on my server.
thanks again for quick reply and solved problem!
bye, martin
On Nov 15, 11:12 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> > I'm sorry for this long paste.. i could you dpaste.
> > thanks, martin
>
> Yes, it's probably
ndif %}
my question here is, is this html code right? how should slug fields
be presented in html templates? i could find this in django
documentation (about slug fields).
thanks, martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
ists in my db.
could someone tell me where to look to fix this problem?
thanks in advance, martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
where i have prepopulate slug
field. if slug field was required i would always get errors consurning
slug. so, slug field should have blank=True, right?
but anyway, the code doesn't work..
any help is appreciated! thanks, martin
--~--~-~--~~~---~--~~
You receive
btw, after this change, object gets created, but the slug field is
empty.. so i can't view the object, because of
(r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(?
P[-\w]+)/$',object_detail, dict(komentar_date_dict,
slug_field='slug
I have an parameter in my querystring which i would like to access in
a template, fx:
---
---
is this possible?
Thanks.
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Got it, thanks.
I just had to insert this into my settings.py:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_pr
object
gets created, without it i get an error about duplicate entry in my
db.
i'll play a little more, but i guess i'll have to use newforms ;)
thanks for the help!
martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
t - i hope you understand what i'm asking.
i have this ideas, but i'm not sure they're right so i thought i'll ask
here.
thanks in advance, martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Thanks, James, for the advice. i'll try to do it this way and i hope it
works;) i actually wanted to play a video on the site (not to download
it), but i think that requires only a little modification of the code.
thanks for the help, again.
bye,m
there a way I can use django without the need to alter the apache
installation at all?
Thanks for any kind of information,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
r my needs.
So, if anyone is interested in the code, I could make it available
somewhere...
Again, thanks for the response,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
at the moment).
So, what's the best way to proceed here?
Martin
--~--~-~--~~~---~--~~
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
OK,
sounds simple enough but guess my code needs some tweaking to match
your coding guidelines
So, will change it and create the ticket during the weekend,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
ing for.
But before I go ahead with this solution I would like to see if
somebody has a better idea on how the extend the default tags?
Is it using the `add_to_builtins` the way to go?
Is a middleware the way to go or is there a better solution?
Any com
Malcolm,
thanks for the suggestion... I tried it and it wokrs like expected.
I don't know why, but I had the impression that an application only
load templatetags define it it's own namespace. I should have read the
documentation a more carefully.
Than
OK,
I have splitted my file into a handler and `server file` and attached
them to a new ticked http://code.djangoproject.com/ticket/2407) (Ignore
the first version of CGI.py, I have forgotten to remove my standard
file header...)
Martin
reason for this?
Thanks,
Martin
--~--~-~--~~~---~--~~
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, sen
I have the very same problem and can't figure out what's wrong...
First I created a profile for ipython and edited the ipython_config.py,
which gets executed when I launch 'ipython'.
But when I start manage.py shell or shell_plus it's not executed (I still
get the Django iPython shell though).
W
This comment explains why it is not loaded:
https://code.djangoproject.com/ticket/17078#comment:8
Not sure how to go on from that though.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.
I think this depends on how you set your python path.
Mine is usually set to a virtualenv AND to /foo/bar/yourproject/ (the path
to your project).
That means you can do the following imports in any file:
from a.views import yourview
from b.views import yourview
Best regards,
Martin
On Sun, Jun
Ubuntu 11.04
Wing IDE
virtualenv
pip
github
TDD using the inbuild dev server
Production:
Hosted on Webfaction
nginx for static files
Apache with mod_wsgi
Best regards,
Martin
On Sun, Jun 5, 2011 at 11:11 PM, Developr wrote:
> Hi!
>
> I'm currently developing for Django using the
ut project inside your project folder.
Otherwise you would have to create several repositories (one for your apps
and views and one for your templates) which doesn't really make sense.
But in the end that is probably up to you.
Best regards,
Martin
On Mon, Jun 6, 2011 at 9:47 AM, Christopher
means your static
/ media files are not served correctly)
- Refresh your browers cache, restart the browser and try again
- delete your database and run a fresh syncdb --all
Best regards,
Martin
On Mon, Jun 6, 2011 at 6:57 PM, Aidan wrote:
> I'm having trouble with the Django A
Oh and:
- delete all *.pyc files from your project and restart the development
server <-- this is a nice one that often solves mysterious problems that
seem to be impossible and drive you insane
Best regards,
Martin
On Mon, Jun 6, 2011 at 7:13 PM, Martin wrote:
> I faced this
What is listed under Coming Soon makes sense. In that order.
Best regards,
Martin
On Tue, Jun 7, 2011 at 8:01 AM, David wrote:
> Let's start with a more concrete question: what do users think should
> be in tutorial 5 and beyond?
>
> On Jun 6, 1:20 pm, Paweł wrote:
>
Why not create a Manager?
Give it a method foo1_related() which then returns something like
self.foo1_set.filter( your filters ) and a similar method foo2_related (if
needed).
You can then call A.foo1_related() and get what you need.
Best regards,
Martin
On Tue, Jun 7, 2011 at 4:08 PM, mhulse
all the work for you.
Best regards,
Martin
On Wed, Jun 8, 2011 at 7:23 AM, raj wrote:
> I got completely lost when looking at that. I don't even know how to
> describe my confusion. I guess my issue is that I'm not seeing the big
> picture when reading to the tutorial. And
Use django-compressor.
On Thu, Jun 9, 2011 at 9:21 PM, DrBloodmoney wrote:
> On Thu, Jun 9, 2011 at 9:16 AM, Malcolm Box wrote:
> > On 9 June 2011 08:09, Thomas Guettler wrote:
> >>
> >> My static files (JS/CSS) are cached in the browser. But if there is a
> bug
> >> in a file, an update won't
IntegerField. This form field basically just makes sure, that people don't
enter anything stupid, but what is being saved will just be a normal
integer, I guess.
Sorry, don't have enough time to give a better hint.
Best regards,
Martin
On Sat, Jun 11, 2011 at 9:53 AM, mhulse wrote:
> I f
Do you know that every time you ask questions on mailing lists without
googling, a kitten dies? And a pony!
http://stackoverflow.com/questions/44109/extending-the-user-model-with-custom-fields-in-django
https://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
h
Hi.
I would like to use subdomains in my URL-dispatch. Thats not supported
by Django.
Is it possible to replace Django URLResolver with my own? Must this be
done as a Middleware class?
(Why is Django URL resolver not implemented as a Middleware class?)
Input appreciated.
Thanks.
/Martin
Maybe, but it would be nice to unplug it and plug in your own.
/Martin
--
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
alls. So I don't really know
how to locate the issue.
This is all I get when I load my site: http://dpaste.com/293197/
Tried to reproduce it in the shell by importing all models, views,
urls, etc. but nothing.
Could someone point out where I should look at?
Thank you for your time! :)
Be
',
(r'^account/', include('foo.pluggables.userprofile.urls')),
userprofile/urls.py:
urlpatterns = patterns('',
url(r'^profile/$', overview, name='profile_overview'),
The function overview can be empty, doesn't affect the erro
I added my case to this Django ticket. As far as I can tell its
related to the changes mentioned there.
http://code.djangoproject.com/ticket/15025
--
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...@
Hi Alex,
many thanks for your suggestion but I think {{ block.super }} will not help.
In order to have a parent template I would first have to write something
like {% extends "admin/base.html" %} but this already is not possible
because it would mean inheriting itself.
Best regards,
I would just like to note here that when I first installed django with
apache and mod_python most of the problem I had was on the apache side
with vhosts not django. Each operating system handles apache configs a
little different. The guide on django's web site is great for the base
informatio
erstand that mysite.settings is supposed to be the location of my
> settings.py, but is it just supposed to be the path of that file?
Try removing the mysite part so it is juat
SetEnv DJANGO_SETTINGS_MODULE settings
--
Brandon Martin
--~--~-~--~~~---~--~
I have this is my apache virtualhost:
SetHandler None
Brandon
On Tue, 11 Nov 2008 15:09:22 -0500, "Keith Eberle" wrote:Alias
/media /home/dev//Django-1.0/django/contrib/admin/media
^
could be that extra slash. i assume you reloaded
> -- Raja
>
> On Nov 12, 11:57 pm, Brandon Martin <[EMAIL PROTECTED]> wrote:
>> I had everything running fine with my django setup and apache vhost.
>> My project root dir was:
>>
>> /home/user/public_html/django/project
>>
>> I wanted to change th
I had everything running fine with my django setup and apache vhost.
My project root dir was:
/home/user/public_html/django/project
I wanted to change the dir so I moved everything to:
/srv/django/project
I went into my vhost and changed the paths so they correspond to the
new ro
print Refered.objects.get(base=b).x
1
>>> print Refered.objects.get(base=i).x
2
Martin
On Wed, Nov 19, 2008 at 3:33 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
>
> Hi Martin,
>
>> I have been trying to use inherited models and back references for
>> filter queries,
oject/app2/tests/module2_tests.py
Thanks in advance!
-Martin
--~--~-~--~~~---~--~~
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 u
Beat me to it.
I suppose someone should file a bug to update these:
http://www.djangoproject.com/documentation/
http://www.djangoproject.com/documentation/add_ons/
and add a link to the admin doc.
On Jul 19, 2008, at 7:54 PM, Karen Tracey wrote:
> On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culag
Couldn't you just create a dummy file in /channel_a for part2.html,
and in /channel_b for part1.html, such that the dummy files do nothing
but include the content of the corresponding parent?
On Jul 17, 2008, at 8:04 AM, 3xM wrote:
>
>
>
> On Jul 17, 1:59 pm, Arien <[EMAIL PROTECTED]> wrote:
I would suspect that #2 is a mime-type problem, which is just an S3
property. Presuming the ImageField translates to a basic href into S3,
the mime-type property of the file would need to be set or else it is
going to come across as a Binary file. Some browsers are ok with this
non-standa
Python but I don't seem to be able to run just
the test file as it complains about my Django settings module being
undefined etc, as well as my actual app not existing if I try and use
the full module name. I know that manage.py is adjusting my Python
path for me.
Thanks,
M
There is a currently a discussion an even newer discussion on Dev,
where Jacob has proposed a new syntax, and has a patch that would
allow this:
{% url django-admindocs-docroot as docroot %}
Then docroot becomes a variable, containing the url, that can be used
in a {% blocktrans %}, obvi
I would suggest that first you learn about forms and widgets apart
from the admin. Once that is done, it's pretty trivial to crate your
own ModelForm and assign it to your admin.
As to a tutorial, there's the newforms-admin HOWTO, that may be of use:
http://code.djangoproject.com/wiki/Newform
On Aug 29, 2008, at 2:22 PM, Benjamin Buch wrote:
>
> Clumsy subject, I know...
>
> I know there was a recent discussion about this, but I lost it, so
> sorry for asking again.
> So here's the question:
>
> How can you allow your users to add something like pictures into
> something like blog pos
>>
> That's a really bad idea. Users can bring the whole site down with
> malformed content if you do it like that.
>
> At least you should do something like that:
>
> try:
>usercontent = render_to_string('whatever.html', {...})
> except TemplateSynatxError: # maybe other exceptions?
>user
On Aug 31, 2008, at 4:10 PM, Leaf wrote:
>
> I've recently discovered how incredibly customizable Mac OS 10.5's
> Terminal can be. For example, I created a custom setup that is useful
> for Django developers. Whenever it opens, it automatically starts my
> Django server, and instead of using Ctrl
The problem with fixtures in documented on the django-mptt page on
Google code. There is a patch you need to apply to get them to work.
The patch is not necessary for Trunk, however django-mptt does not
work on trunk, as too much has changed - in particular, signals.
I would really caution
On Sep 4, 2008, at 6:35 AM, peter_g wrote:
>
>
> Hi!
>
> Playing with the wonderful mptt code:
> http://code.google.com/p/django-mptt/
>
> I would like to ask if someone knows how to do this:
> (I play with some kind of navigation for websites)
>
> I have a tree where some nodes are marked "inact
You need to add:
admin.autodiscover()
in your urls.py
Regards,
Martin
On Sep 8, 9:14 pm, KillaBee <[EMAIL PROTECTED]>
wrote:
> I am editing my Admin.py to use the new ModelAdmin. All my change has
> no effect. I wanted it to come up with all my app automaticlly.
>
>
something
like django-sphinx? I would also like to filter on dates just as it
works in the admin.
Thanks in advance!
Regards,
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
Perhaps you should direct this to a MySQL list somewhere? This in not
a Django question.
On Sep 6, 2008, at 2:43 PM, TheIvIaxx wrote:
>
> After searching around for a bit for a build of MySQLdb, i have found
> that i will probably need to build the module for AMD64 on windows.
> Is there a gu
It's rather hard to help you when we don't know what is not working
for you.
What is the error? What doesn't work?
On Sep 8, 2008, at 9:12 PM, TameR wrote:
> settings.py http://dpaste.com/76851/
> admin.py http://dpaste.com/76852/
> view.pyhttp://dpaste.com/76853/
> models.py ht
In some way.. it seems to, does anybody knows if its posible to add
mod_python to XAMPP ???
I dont like the risky only for development way to show media !
On Thu, Sep 11, 2008 at 6:01 AM, Matthias Kestenholz <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On Thu, Sep 11, 2008 at 9:41 AM, msagas <[EMAI
On Sep 6, 2008, at 11:36 AM, Posi wrote:
>
> Still though, how tied are we to a true relational model and how does
> that tie to a column based DB.
So utterly and completely, that if you wished to use HBase, there
would be no possible way to integrate in into the current ORM. In
fact, the on
On Sep 13, 2008, at 7:11 PM, Russell Keith-Magee wrote:
>
> On Sun, Sep 14, 2008 at 7:24 AM, Martin Diers <[EMAIL PROTECTED]> wrote:
>>
>> On Sep 6, 2008, at 11:36 AM, Posi wrote:
>>>
>>> Still though, how tied are we to a true relational model and how
On Sep 9, 2008, at 10:39 AM, Haku wrote:
>
> Hello, i'm quite frustrated by this problem.
> Today i had the idea to update my svn from the old 0.97 to the 1.0
> release, and now nothing is working anymore.
>
> I always get an anonymous "Internal Server Error"
> Maybe because my project included
On Sep 14, 2008, at 5:16 PM, djandrow wrote:
>
> I have the folling urls:
>
> (r'^(?P\d{4})/$',
> 'django.views.generic.date_based.archive_year', archive_info),
> (r'^(?P\d{4})/(?P[a-z]{3})/$',
> 'django.views.generic.date_based.archive_month', archive_info),
>
> and archive_info is:
>
> archive_
On Sep 14, 2008, at 12:59 PM, n00m wrote:
>
> What is the http://www.thomas-guettler.de/?
>
> Remove from your sig this link to your f**king spam-like site.
>
> On Sep 12, 4:36 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
>> Thomas Guettler,http://www.thomas-guettler.de/
>
Chill out. It's a pe
On Sep 14, 2008, at 4:22 PM, sal wrote:
>
> Have looked extensively but cannot find a solution :(
>
> While trying to follow tutorial in a django book, I get the following
> error when running manage.py a second time:
>
> _mysql_exceptions.OperationalError: (1050, "Table 'people_person'
> already
When creating your widget, you need to set empty_label = None, this
will supress the '' choice.
Also, I think you want to use forms.ModelMultipleChoiceField in
conjunction with the widget forms.CheckboxSelectMultiple.
On Sep 20, 6:26 pm, "Vance Dubberly" <[EMAIL PROTECTED]> wrote:
> End resu
Assuming you're using Django v1.0 ... you could override the queryset
method in your class that defines the admin properties for your class.
For example:
class MyAdminClass(admin.ModelAdmin):
def queryset(self, request):
# Limit the queryset to some subset based on the value of
reque
:"F Y" }}{% endifchanged
%}
{{ entry.title }} on {{
entry.pub_date|date:"l jS \o\f F Y" }}
{% endfor %}
but that added for every post.
-Martin
2009/2/19 Malcolm Tredinnick
>
> On Wed, 2009-02-18 at 23:35 -0800, Marlun wrot
= forms.CharField(...)
5 super(MyForm, self).__init__(*args, **kw)
What is the correct syntax for line 4? Is this even possible?
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
I was never able to get psycopg2 to compile on osx I recommend
using sqlite for development or another database. If you must use
psycopg2, you may want to try to get it through something like
darwinports.
On Tue, Jun 23, 2009 at 1:19 PM, Chris Haynes wrote:
>
> Using what I believe is the la
I've noticed with some mild consternation that there's absolutely no
documentation for using AUTH_PROFILE_MODULE in the new edition of
_Definitive Guide to Django,_ nor is there any indication of something
else I should be using instead of that if this is being deprecated.
So is this safe to use?
On Aug 11, 5:30 pm, James Bennett wrote:
> Seeing as how Django's documentation still covers everything you need
> to know about it, it's unlikely there's something newer you're
> missing.
I didn't *think* so, but I am very good at making assumptions that
prove to be wrong in practice!
> It's t
is means Django can't find the image, probably for the reasons I
stated above.
If it says 200 (or 304) next to the filename in the terminal window,
then Django has found the image, but your CSS/HTML is the problem.
Hope that helps.
- Martin
On Mar 27, 8:33 am, Gath wrote:
> Guys,
>
I spoke too soon. Re-reading your comment, it does seem to be entirely
a CSS/HTML issue - not Django related. Since the inlined style works,
Django is finding the image.
Sorry about that misleading response.
On Mar 27, 9:07 am, Martin Ostrovsky
wrote:
> Without seeing your settings.py file
You're POSTing the form instance, rather than the postedData.
So:
response = self.client.post('/myApp/post', form)
should be:
response = self.client.post('/myApp/post/', postedData)
More info here:
http://docs.djangoproject.com/en/dev/topics/testing/#making-requests
On Mar 28, 9:14 pm, tsme
You're passing your template variable `classcolors` to the template
filter `random`. Looking at the code for random.py:
File "/usr/lib/python2.5/random.py", line 248, in choice
return seq[int(self.random() * len(seq))] # raises IndexError if
seq is empty
IndexError: string index out of range
Hi Sergio
> - Google App Engine[1] - you will need adapt somethings in your code.
There is the project appEnginePatch to deploy django on Google
appEngine out of the box.
http://code.google.com/p/app-engine-patch/wiki/Documentation
The app-engine-patch has got a ready made sample. Download
http
Hi cgarvey
there is the appEnginePatch project too. Dedicated to deploy existing
Django on appEngine.
http://code.google.com/p/app-engine-patch/wiki/Documentation
It has got a ready made app-engine-patch sample. Download
http://app-engine-patch.googlecode.com/files/app-engine-patch-sample-1.0.zi
Hi cgarvey
On 10 Apr., 15:25, cgarvey wrote:
> It (migrating Django to appEngine via appEnginePatch) required changes to the
> models,
You are right, model changes are unevitable when migrating from a
relational database, MySQL for example to Google's big table.
Google doesn't use a relationa
1 - 100 of 565 matches
Mail list logo