How to use the Django with Google App Engine ?
--
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...@googlegrou
http://www.google.com/search?hl=en&q=google+app+engine+django&aq=f&aqi=g1g-c1g3g-c3g2&aql=&oq=
Tsolmon Narantsogt wrote:
> How to use the Django with Google App Engine ?
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this grou
Hey guys,
In the dev version of Django I keep getting CSRF in the Admin.
Sometimes I don't, sometimes I do, but shouldn't this work kinda
automagically?
Reason given for failure: CSRF cookie not set.
This error seems to happen to different ppl with different browsers,
for example with chrome in
I want to make a simple reservation app with a arrival date en a
departure date. I have this simple model:
class Booking(models.Model):
Houses = models.CharField(max_length=3)
Reservation = models.ForeignKey('Data', blank=True)
def __unicode__(self):
return s
On Mar 16, 5:27 am, pyleaf wrote:
> I want to use manage.py as a command in script file.
> e.g,
>
> >> python manage.py shell
> >>from testproject.testapp.models import Testee
> >>from testproject.others.modules import utils
> >>utils.do(Testee)
>
> Above are commands in command window manually.
>
Hi,
I got this error when I'm trying to run my project on a production
server with mod_python.
"Template u'base.html' cannot be extended, because it doesn't exist"
This looks weird to me, because base.html DOES exist and it's in the
same directory as the file extending it. when I remove the {% ext
This is a bit of a modeling question that I am struggling to get my
head around. How would you model this scenario?
I have to record expenses that are of 3 different types.
1. Fixed - The name of the expense and unit amount are fixed. For
example, "inconvenience allowance" of £30 per day.
2. Clas
... I suppose this would be the approach for extending a base model.
My question is ... does it really matter which approach to take? Does
one approach have advanteages or pitfalls?
>>.
class BaseCost(models.Model):
markettingevent = models.ForeignKey(Event)
un
On Mar 16, 3:08 am, django_jedi wrote:
> > Assuming that 'groupA' is a model field, there's no such property as
> > 'selections.groupA', because as you've stated, selections is a
> > queryset - ie a collection of model instances, not a single one.
>
> > However in general you'd be better off using
hi,
can i use the MultiWidget approach in the django admin? (i guess it
should work)
im trying to build a widget composed by a textinput and a select but
with no luck.
can someone provide me a working example? im trying to find what i need
on google but i cant find a simple example which combines
On Mar 15, 2:38 pm, "ge...@aquarianhouse.com"
wrote:
> {% with o.id as key %}{{ dictionary.key }}{% endwith %}
>
> would be better, as in comments mentioned
It might be, if it worked. That will try and look up dictionary['key']
still.
Peter
--
You received this message because you are subscr
On Mar 15, 10:17 pm, Henry Andersen wrote:
> Thanks for your answer, but I do need a ManyToManyField().
>
> In case anyone is curious about the answer, I solved my problem by
> overriding my custom admin form's save method. In save(), I checked for the
> existence of the file field in self.files
hi
Ive just started experiencing DJango i am an undergrad student i was
given a Django project on which to extend functionality but after
installing all the necessary apps for it but i cant seem to run it
i get "Database wit does not exist " (wit is the database for this
proj but i dont if i shou
HI, I'm a newbie in Django.
I'm in admin.py. Is there any way to force this decorator to be
dynamically related to an object?
IE:
def get_link_organization_detail(self, obj):
return """%(name)s""" % {
'reverse_url':
reverse('admin:organization_organization_detail', obj.id),
Hey all,
I'm a fresh Python/Django user and I'm experiencing a couple of
problems to check if Django is correctly installed on my machine. Well
I guess it's not honestly.
I used Windows XP and untarred Django 1.1.1 directly on my C: drive.
When I try to import django in IDLE, this is what I get
Hello, Dear community!
I'm working on django-project, that gathers the information from files
and folders. The main idea of project is follow: settings.py contains
the path to folder, afterwards the specific django view will create
the tree of DB records with names of child folder and files of par
Hi
I still cant get this to work. Everything elese in the template works
fine, i.e. accessing several tables from the database.
I have the following in the settings.py
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddlewar
On Tue, Mar 16, 2010 at 5:16 AM, Sander wrote:
> Hi,
>
> I got this error when I'm trying to run my project on a production
> server with mod_python.
> "Template u'base.html' cannot be extended, because it doesn't exist"
> This looks weird to me, because base.html DOES exist and it's in the
> sam
Hi,
if you've untarred the Django archive, you have a new directory
called (probably) Django-1.1.1. Just go into that directory (in the
command line, do "cd Django-1.1.1") and then run installation the
standard Python way (for Python packages): "python setup.py install".
It should run for a
On Mar 16, 9:49 am, Archidjango wrote:
> Hey all,
>
> I'm a fresh Python/Django user and I'm experiencing a couple of
> problems to check if Django is correctly installed on my machine. Well
> I guess it's not honestly.
>
> I used Windows XP and untarred Django 1.1.1 directly on my C: drive.
>
> W
> i get "Database wit does not exist " (wit is the database for this
> proj but i dont if i should make it in postrgres or ??,i tries making
> it and then i got other errors)
> im working in Linux
Hi,
it seems that your database setup is incorrect or the database just
does not exist. If it is t
On Tue, Mar 16, 2010 at 6:09 AM, Viktor Burdeinyi wrote:
>
> I'm working on django-project, that gathers the information from files
> and folders. The main idea of project is follow: settings.py contains
> the path to folder, afterwards the specific django view will create
> the tree of DB records
I'm using version 1.2 beta. Is there some kind of workaround? or do I
have to downgrade to 1.1.1?
On 16 mrt, 12:35, Karen Tracey wrote:
> On Tue, Mar 16, 2010 at 5:16 AM, Sander wrote:
> > Hi,
>
> > I got this error when I'm trying to run my project on a production
> > server with mod_python.
>
On Tue, Mar 16, 2010 at 6:58 AM, Sander wrote:
> I'm using version 1.2 beta. Is there some kind of workaround? or do I
> have to downgrade to 1.1.1?
>
You could try the latest patch on the ticket, but I think you'd need to get
an SVN checkout for that, since I know there has been at least one ot
i try to sync it and then i get
...File "/var/lib/python-support/python2.6/django/db/backends/util.py",
line 19, in execute
return self.cursor.execute(sql, params)
psycopg2.InternalError: current transaction is aborted, commands ignored
until end of transaction block
any idea what that me
Ah, I understand,
I thought the actual error was the template could not be found. But
the problem was that the base.html was raising an exception. Fixed the
error and everything is fine.
Thanks Karen.
On 16 mrt, 13:14, Karen Tracey wrote:
> On Tue, Mar 16, 2010 at 6:58 AM, Sander wrote:
> > I'
On Tue, Mar 16, 2010 at 7:34 AM, Sander wrote:
> Ah, I understand,
>
> I thought the actual error was the template could not be found. But
> the problem was that the base.html was raising an exception. Fixed the
> error and everything is fine.
>
Could you explain what exactly was wrong with your
Thank you, Karen
The issue was solved by setting export LANG="ru_RU.UTF-8" in /etc/
apache2/envvars
Viktor Burdeinyi
On 16 мар, 13:50, Karen Tracey wrote:
> On Tue, Mar 16, 2010 at 6:09 AM, Viktor Burdeinyi wrote:
>
> The default Apache setup on Ubuntu seems to include a LANG setting (C) that
>
lol, I'm really having a hard time reproducing the error :S
I actually removed a couple of lines in base.html and the template
loaded. After that I put them back in one by to see where the error
was and guess what; after put back in all lines It still loads. I
reverted back to my first version and
On Mar 16, 8:03 am, Tsolmon Narantsogt wrote:
> How to use the Django with Google App Engine ?
Use Django nonrel:
http://www.allbuttonspressed.com/blog/django/2010/01/Native-Django-on-App-Engine
BTW, that website/blog is built with Django nonrel (in case you
wondered how far the project is).
By
On Tue, Mar 16, 2010 at 8:13 AM, Sander wrote:
> lol, I'm really having a hard time reproducing the error :S
>
> I actually removed a couple of lines in base.html and the template
> loaded. After that I put them back in one by to see where the error
> was and guess what; after put back in all lin
http://www.djangosnippets.org/snippets/217/
i found this simple example which explains it pretty good.
andreas schmid wrote:
> hi,
>
> can i use the MultiWidget approach in the django admin? (i guess it
> should work)
> im trying to build a widget composed by a textinput and a select but
> with no
Hi,
I have a pecuilar requirement and was wondering the best possible
solution for it.
My site powered by django will run a on at least a few hundred
different domain names(something like google apps). I am thinking of
using Django's site framework to handle the database. Few properties
in my setti
On Mar 16, 3:21 am, ALJ wrote:
> This is a bit of a modeling question that I am struggling to get my
> head around. How would you model this scenario?
>
> I have to record expenses that are of 3 different types.
>
> 1. Fixed - The name of the expense and unit amount are fixed. For
> example, "in
On Mar 15, 10:27 pm, pyleaf wrote:
> I want to use manage.py as a command in script file.
> e.g,
>
> >> python manage.py shell
> >>from testproject.testapp.models import Testee
> >>from testproject.others.modules import utils
> >>utils.do(Testee)
>
> Above are commands in command window manually
Is your middleware getting called? Is the else clause of your try ever
reached? Is reali_p in the format you expect? (In the development server
a pdb.set_trace() can help you with that.
If that's working, does the request that reaches your view (another
pdb.set_trace()) contain your tweak to re
Hello,
Even if there was a reliable way to reuse the same code base with
different settings on a per request basis, which I doubt, I believe
the safest and easiest way to extend a base configuration with
twod.wsgi:
http://packages.python.org/twod.wsgi/manual/paste-factory.html#multiple-configurati
Hi Preston,
Sorry, I don't get it.
The certainly do have the same fields, but sometimes the fields are
derived from a linked table, or are a foreign key or sometimes text.
So I don't understand how having the interface adapt to what the
current type is would work.
ALJ
On Mar 16, 3:04 pm, Presto
Gustavo Narea wrote:
Hello,
Even if there was a reliable way to reuse the same code base with
different settings on a per request basis, which I doubt, I believe
the safest and easiest way to extend a base configuration with
twod.wsgi:
http://packages.python.org/twod.wsgi/manual/paste-factory.ht
Hello,
When i used Django web-server there were no problems with debugging
Django projects in Eclipse IDE.
I had to deploy it on Apache web server.
How can i debug the same project if it is deployed on Apache with
module mod_wsgi?
With regards, Stefan
--
You received this message because you a
I'm using the development server and seeing a POST request that
results in a 500 error:
[16/Mar/2010 10:10:51] "POST /mysite HTTP/1.1" 500 56458
I'm not getting any errors logged or tracebacks. The request isn't
reaching my view even though my urls.py is correct and the app is
enabled in settings
I think i made some progress. The first tests with this query are
promising:
bereik = Data.objects.exclude(Aankomst__range=(Check_aankomst,
Check_vertrek), Vertrek__range=(Check_aankomst, Check_vertrek))
--
You received this message because you are subscribed to the Google Groups
"Django users"
Thanks.
This is a development server:
./manage.py runserver 0.0.0.0:8080
Debug is on:
DEBUG = True
TEMPLATE_DEBUG = DEBUG
I'll read up on setting up a 500 error page to see if that helps.
On Mar 16, 11:32 am, "ge...@aquarianhouse.com"
wrote:
> We need more infos.
>
> Is it on the test server
We need more infos.
Is it on the test server or on the prodution server?
Is DEBUG on?
If debug is off and 500 is beeing showed when maybe django is trying
to find "500.html" and if it's not available when this error happen
like you have.
On Mar 16, 4:22 pm, Stodge wrote:
> I'm using the develo
it this case djago will show a 500 page with infos, stackstrace, etc.
if 500 happen, which infos do you see?
On Mar 16, 4:39 pm, Stodge wrote:
> Thanks.
>
> This is a development server:
>
> ./manage.py runserver 0.0.0.0:8080
>
> Debug is on:
>
> DEBUG = True
> TEMPLATE_DEBUG = DEBUG
>
> I'll re
[Forgot to reply to the mailing list]
Hi, John.
I'm afraid the only publicly available example is this:
http://bitbucket.org/Gustavo/weesgo/src/
You could then create config1.ini and config2.ini which extend
config.ini with different options.
HTH,
- Gustavo.
On Mar 16, 3:04 pm, John Griessen
How will the model be used? It looks to me like what you're after is
the 'editable' parameter, as in something like:
class Unclassified(models.Model):
name = models.CharField(max_length=50)
cost = models.DecimalField(max_digits=5,decimal_places=2)
class Classified(Unclassified):
name =
model
On 16/03/10 14:27, Gustavo Narea wrote:
Hello,
Even if there was a reliable way to reuse the same code base with
different settings on a per request basis, which I doubt, I believe
the safest and easiest way to extend a base configuration with
twod.wsgi:
http://packages.python.org/twod.wsgi/manu
Thanks for the link, that was an interesting read.
On Mar 16, 9:07 am, Preston Holmes wrote:
> On Mar 15, 10:27 pm, pyleaf wrote:
>
>
>
> > I want to use manage.py as a command in script file.
> > e.g,
>
> > >> python manage.py shell
> > >>from testproject.testapp.models import Testee
> > >>from
2010/3/16 shitiz
> Hi,
> I have a pecuilar requirement and was wondering the best possible
> solution for it.
> My site powered by django will run a on at least a few hundred
> different domain names(something like google apps). I am thinking of
> using Django's site framework to handle the datab
I am working on a project that has a portion of the admin with three
different "choices" options. The section of the model that this
thread is concerned with looks like this:
Department_Choices = (
('Advertising', 'Advertisinf'),
('NIC', 'NIC'),
('Production', 'Production'),
)
Department_Groups
Hi aditya,
I wasn't aware of the editable parameter (which means I've learnt
something) but I still don't think it will help me.
The user will create an 'invoice' for want of a better word, that will
be made up of lots of different entries. Some of these are fixed
(description and unit price) and
*I know that I should serve static files using a static file server
that was built for doing such, but save me the lecture and indulge me
on this please*
I am serving large video files (180+MB) through HttpResponse in
Django, and returning the file iteratively using Django's FileWrapper:
http://co
If you run buildout it checks out what you made changes to -- wiping the
changes.
Am I supposed to be using any particular version control with buildout? It
seems
to mention many kinds.
So, my buildout.cfg looks like:
[buildout]
eggs-directory = /home/john/buildout/eggs
extensions = mr.deve
On ma, 2010-03-15 at 00:14 +, Alastair Campbell wrote:
> Is there a way to loop through the members at the same time? Or some
> other way of accessing the matching objects?
Each ModelForm has an instance attribute, so you can use
{{ form.instance.whatever }}
--
Dennis K.
The universe tends
this is a good place to get started:
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
On Mar 16, 10:11 am, Stefan wrote:
> Hello,
>
> When i used Django web-server there were no problems with debugging
> Django projects in Eclipse IDE.
> I had to deploy it on Apache web server.
>
> How
John Griessen wrote:
> If you run buildout it checks out what you made changes to -- wiping
> the changes.
> Am I supposed to be using any particular version control with
> buildout? It seems
> to mention many kinds.
right if you run buildout it checks if there are changes in some app or
configura
andreas schmid wrote:
John Griessen wrote:
If you run buildout it checks out what you made changes to -- wiping
the changes.
Am I supposed to be using any particular version control with
buildout? It seems
to mention many kinds.
right if you run buildout it checks if there are changes in some
That's great, sorted it. Thanks for your help
On Mar 15, 9:46 pm, Shawn Milochik wrote:
> If you're doing a 'get,' then you're always going to return exactly one
> results (or get an error).
>
> If you do a 'filter' you can use count().
>
> Shawn
--
You received this message because you are s
Hi guys,
Just taking my first steps with Django and in fact web frameworks in
general. I understand that in a Django based CMS a URL is passed via a
variable in urls.py which then locates a row in a database containing
the html code to send to a template. What I want to know is, is this
done with
On di, 2010-03-16 at 15:23 -0700, gvernold wrote:
> Just taking my first steps with Django and in fact web frameworks in
> general. I understand that in a Django based CMS a URL is passed via a
> variable in urls.py which then locates a row in a database containing
> the html code to send to a tem
I've noticed this a few times in my code, and it seemed to come and go as an
issue:
Using various revisions from the SVN trunk over the last 4 months, the
following has caused my admin changelist view for a model to go completely
blank:
# events/models.py
class Event(models.Model):
Hi,
sorry, but it seems that you need to take another look at the Django
documentation to figure out how it works. Let me point out couple of
things that were not exactly right in your email.
First, Django is not a CMS (although there are CMS systems based on
Django). Django is a *web developm
I upgraded this morning from Django 1.1.1 (r11312, I think) to the
most recent HEAD revision (r11794) and it appears that some changes
have been made to the form validation scheme again. I have a blog app
wherein I want the application to be able to automatically generate
slugs from post titles.
I upgraded this morning from Django 1.1.1 (r11312, I think) to the
most recent HEAD revision (r11794) and it appears that some changes
have been made to the form validation scheme again. I have a blog app
wherein I want the application to be able to automatically generate
slugs from post titles.
Ah, small mistake: my current Django revision is r12794, not r11794.
--
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+
On Mar 16, 4:58 am, hk wrote:
> hi
>
> Ive just started experiencing DJango i am an undergrad student i was
> given a Django project on which to extend functionality but after
> installing all the necessary apps for it but i cant seem to run it
> i get "Database wit does not exist " (wit is the d
I should also note that in the AddArticleForm class, the slug field
has the "required" attribute set to False, like so:
slug = forms.CharField(max_length=25, required=False)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
I guess I should try a little harder before asking for help. Turns
out that I also needed to define the slug field in the model with
"blank=True."
Sorry for the spam.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
On Tue, Mar 16, 2010 at 8:51 PM, saxon75 wrote:
> I guess I should try a little harder before asking for help. Turns
> out that I also needed to define the slug field in the model with
> "blank=True."
>
Yeah but, if it worked previously under 1.1, it ought not be broken by
updating to 1.2.
Sou
Sorry guys, thought I had been a bit more clear when I wrote the email
but my mind was wrapped up in getting URL's to work a certain way. I
know Django isn't a CMS which is why I wrote "Django based CMS". I
also know that templates are used for the bulk of the HTML but I was
kind of wondering when
ALJ,
In that case, I think you need multiple models, without inheritance...
Aditya
On Mar 16, 1:48 pm, ALJ wrote:
> Hi aditya,
>
> I wasn't aware of the editable parameter (which means I've learnt
> something) but I still don't think it will help me.
>
> The user will create an 'invoice' for wan
thank you all!
On Wed, Mar 17, 2010 at 12:33 AM, aditya wrote:
> Thanks for the link, that was an interesting read.
>
> On Mar 16, 9:07 am, Preston Holmes wrote:
> > On Mar 15, 10:27 pm, pyleaf wrote:
> >
> >
> >
> > > I want to use manage.py as a command in script file.
> > > e.g,
> >
> > > >
You can store HTML in a database if that is how you need your project
to work!
This is how some CMS store user input. Flatpages and dbtemplates are
some examples.
On Mar 16, 4:05 pm, Dennis Kaarsemaker wrote:
> Neither should you store html code in a database.
Toodle-lo
creeco
Hello all, i have a question about a certain query i have. Here is my
model setup:
class Term():
term = CharField()
class Image():
image = FileField()
terms = ForeignKey(Term)
These have been abbreviated for simiplicity, ut you get the gist of
it. Anyhow i have to query for a few h
it works pretty well, however i couldn't get m2m to work. i guess
that doesnt translate well to BigTable
On Mar 16, 6:17 am, Waldemar Kornewald wrote:
> On Mar 16, 8:03 am, Tsolmon Narantsogt wrote:
>
> > How to use the Django with Google App Engine ?
>
> Use Django
> nonrel:http://www.allbutt
Is there any way you could reduce the # of images to return? Another
thing you could do is cache this info so you don't have to do it
multiple times.
Aditya
On Mar 16, 10:24 pm, TheIvIaxx wrote:
> Hello all, i have a question about a certain query i have. Here is my
> model setup:
>
> class Ter
i suppose i could, but that will be a last resort :) What about
dropping down to raw SQL just to get the IDs:
SELECT term_id FROM image_term WHERE image_id = %i
or is that discouraged? Can it be done with the ORM?
On Mar 16, 8:32 pm, aditya wrote:
> Is there any way you could reduce the # of
Hi See this Site www.dumpsquestions.com You can download all the latest dumps (free of cost) for certification exams at www.dumpsquestions.com The famous dumps like CCNA Dumps, IBM Dumps, Oracle Dumps, Sun SCJP Dumps can be downloaded for free.
Thanks
Admin
--
You received this me
You can, and I'd be interested to know how much of a speedup that
gives. Here's the relevant page on writing raw SQL:
http://docs.djangoproject.com/en/dev/topics/db/sql/
If you know SQL (and it looks like you do) it should be familiar
territory. The interesting bits are deferring fields, and addin
I've tested a buildout of django with mysql database and used
bin/django runserver to get the django internal server going with
no errors on starting.
When I try browsing to http://127.0.0.1:8000/ I get a the debug version
of a 404 page, which is OK for the copy of the tutorial polls app
that is
On Wednesday 17 Mar 2010 9:07:47 am TheIvIaxx wrote:
> i suppose i could, but that will be a last resort :) What about
> dropping down to raw SQL just to get the IDs:
>
> SELECT term_id FROM image_term WHERE image_id = %i
>
> or is that discouraged? Can it be done with the ORM?
>
look at 'get
anyone get this working? I've followed the instructions in the
install docs for django-tiny and still have the ole ugly text box up
there.
--
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...@googleg
Thanks.
Good article.
On 16 мар, 22:53, dan levine wrote:
> this is a good place to get started:
>
> http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
>
> On Mar 16, 10:11 am, Stefan wrote:
>
>
>
> > Hello,
>
> > When i used Django web-server there were no problems with debugging
> > Dj
> I assume Django is passing the file to PIL and asking if the file
> is in a format that PIL can deal with and is in a valid format.
My question is about the assumption...
As far as I can find, it actually only uses PIL to read the file and
return the dimensions. The code looks like if PIL thro
There has been some change between 1.1 and trunk regarding questions
whether to enforce defaults at the form or the model level. Might be
relevant, or provide a clue:
http://stackoverflow.com/questions/1436327/does-model-charfieldblankfalse-work-with-save
On Mar 17, 12:11 pm, Karen Tracey wrote:
On Wednesday 17 Mar 2010 11:21:45 am john2095 wrote:
> Maybe I should post this on the developers list? Would that upset
> them?
>
most of them read this list
--
regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS
http://certificate.nrcfoss.au-kbc.org.in
--
You received this message because yo
87 matches
Mail list logo