I think I'm making this harder than it should be. Could someone help
me out here please? The gist is that I'm trying to display a list of
events like the following. I'm getting the error "'offset' is not
allowed without 'limit'" which doesn't seem right. I'm thinking
someone will spot a much s
On Fri, 2006-05-12 at 01:33 -0700, Rob Hudson wrote:
> I think I'm making this harder than it should be. Could someone help
> me out here please? The gist is that I'm trying to display a list of
> events like the following. I'm getting the error "'offset' is not
> allowed without 'limit'" which
Rob Hudson wrote:
>def list(request):
>"""
>Sets up a list of tuples: (month, list of events)
>[("March", [, ]), ("April", [<>])]
>"""
>
>
Malcolm has answered your question but I want to add that with Django
templates you can do this thing much simpler without two nested loops
Hi,
we are thinking about creating a small application with Django and
deliver it to our customers.
We would like to use Django without a database.
Reason:
1) Installation without database is easier
2) Our small application won't use a database, but our own search
engine that has a python api.
I
You can use sqlite, fast and easy db interface.
On 5/12/06, Anja <[EMAIL PROTECTED]> wrote:
>
> Hi,
> we are thinking about creating a small application with Django and
> deliver it to our customers.
> We would like to use Django without a database.
> Reason:
> 1) Installation without database is
Can django run without a DB ?
Vladimir Pouzanov wrote:
> You can use sqlite, fast and easy db interface.
>
> On 5/12/06, Anja <[EMAIL PROTECTED]> wrote:
>
>>Hi,
>>we are thinking about creating a small application with Django and
>>deliver it to our customers.
>>We would like to use Django with
can Django's database-roadmap add XML or CSV ./etc
On 5/12/06, Vladimir Pouzanov <[EMAIL PROTECTED]> wrote:
>
> You can use sqlite, fast and easy db interface.
>
> On 5/12/06, Anja <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > we are thinking about creating a small application with Django and
> > de
I think django has automatic CRUD method to any DB object,
So, without DB maybe so diffcult on It's archieve .
On 5/12/06, Peter Ma <[EMAIL PROTECTED]> wrote:
> can Django's database-roadmap add XML or CSV ./etc
>
> On 5/12/06, Vladimir Pouzanov <[EMAIL PROTECTED]> wrote:
> >
> > You can use sqli
Django makes use of a database backend for authentication,
sessions and so on. I would also advise you to look at sqlite
(http://www.sqlite.org/whentouse.html).
No specific installation except the sqlite shared libraries,
and the python bindings (http://initd.org/tracker/pysqlite).
Do you have a
Hi,
According to the documentation, the generic view
'object_detail' requires a QuerySet parameter and the
object_id. Before MR, it required only a model class and the
object_id (more logical to me).
What does this QuerySet look like?
It works if I use MyModel.objects.all(), but I doubt I need
t
Hi Anja,
On Fri, 2006-05-12 at 03:44 -0700, Anja wrote:
> Hi,
> we are thinking about creating a small application with Django and
> deliver it to our customers.
> We would like to use Django without a database.
> Reason:
> 1) Installation without database is easier
> 2) Our small application won
On Fri, 2006-05-12 at 13:30 +0200, [EMAIL PROTECTED] wrote:
> Hi,
>
> According to the documentation, the generic view
> 'object_detail' requires a QuerySet parameter and the
> object_id. Before MR, it required only a model class and the
> object_id (more logical to me).
It takes a QuerySet now
i use the command
sqlite3 foo.db .schema > foo.sql
(or similar for pg) or
sqlreset app > foo.sql
to create a text version of the schema. foo.sql is versioned by svn and
i can easily see diffs. with those diffs i do the
ALTER TABLE bar ADD COLUMN something;
by hand when needed.
--~--~--
propably something related to mime-type of the file?
what kind of file do you try to download?
--~--~-~--~~~---~--~~
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
I knew about the consistency between QuerySets and generic
views, but I missed the point about laziness
(http://www.djangoproject.com/documentation/db_api/#querysets-are-lazy).
This seems more logical now.
Thanks Malcolm, your explanation saved my day - and my weekend :-)
Accédez au courrier él
Reason for not using sqlite or not using any database:
1) My application does not need a database, it stores the data in the
indexes of a search engine.
2) We would like to deliver that application to some customers. The
easier the installation the better. The more steps an installation has
the mo
Dear group,
sorry for starting another thread on this issue. I am both new to Python and
Django. -
I have been trying for two days now to transfer a little sample project from
the development server to Apache (2.0.54) with mod_python (3.2.8) on OpenSuSE
10.0; following exactly(?) the document
Hey, that's a good idea.
I was thinking about a nice addition to Django where you would keep
your old model files around and offer a few utility classes to do the
diff / alter output for you. But your idea is a nice immediate step.
Cheers,
Sandy
--~--~-~--~~~---~--~
Hi Doulgas.
It's not db related.
Somehow my fcgi script was setting the DJANGO_SETTINGS... env variable
on the wrong path.
Thanks a lot anyways,
arthur
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django us
On 5/11/06, Gacha <[EMAIL PROTECTED]> wrote:
>
> I'm using django with mod_python. When someone using internet explorer
> is trying to download some file and in the promt box he chose "Open"
> then the file is downloaded, but IE says that the file doesn't exists,
> but if chose to "Save" the file
I guess the thing I like the least about the helper module scheme is
that it is easy to forget that it is there, and reinvent the wheel. I
thought about experimenting with mixins, so that my model class would
derive from my controller class. It feels a little upside-down, but I
think it would
Hi Gunnar,I had a few issues when setting up my first Django project through mod_python, the main tricky bit being the setup of the correct PythonPath variable. However, seems you've got that right.The only other thing I can think of is that Apache doesn't have permission to access your Django pro
On 5/12/06, Alexandre CONRAD <[EMAIL PROTECTED]> wrote:
> Can django run without a DB ?
Yes, you can use Django without a DB, in the latest development
version (trunk). A database connection is required in 0.90 and 0.91,
but removing that dependency is one of the many, many improvements we
made i
Can anyone point me to examples of django apps that either do not use
a database, or use it for only part of the app? Looking for source.
I'm specifically interested in examples with models that use other
persistence backends (like a config file), and the associated
views and templates.
--~--~-
On 5/12/06, Karl Fast <[EMAIL PROTECTED]> wrote:
>
> Can anyone point me to examples of django apps that either do not use
> a database, or use it for only part of the app? Looking for source.
>
> I'm specifically interested in examples with models that use other
> persistence backends (like a con
My inclination was it could be done with a lot less code. Thanks for
giving me this. The only thing I had to change was to put all() before
order_by b/c I got some error about all() not being a method of the
querySet (or something like that).
What I'm not clear on is what ifchanged looks at.
I actually went to the shell and looked at my evts with "dir(evts)" and
it looked like a simple list so I thought slicing would be no problem.
Thanks for explaining what was really going on.
-Rob
Malcolm Tredinnick wrote:
> I suspect we might be seeing this sort of question a bit now. You have
I have an app deployed on lighttpd, but I am getting this memory error.
My local codebase runs fine (both on the devserver and on my local
lighttpd),which leads me to think it's a server issue. I am hosted on
textdrive - we're running lighttp + fcgi.
This only happens when uploading large files (
On 5/12/06, arthur debert <[EMAIL PROTECTED]> wrote:
> This only happens when uploading large files (+1 MB) on the admin
> interface.
Related:
Jason from TextDrive replied to the TXD forum thread on this issue[1]
and indicated that it's probably due to the file being stored in
memory during uplo
On Thursday 11 May 2006 10:13, PythonistL wrote:
> Is there a way how to prevent a page from being cached?
from django.views.decorators.cache import never_cache
@never_cache
def myview(request):
# etc
I'm not sure if it's documented anywhere, I think it is.
Luke
--
"Mediocrity: It takes
Please forgive my ignorance. I am not the sharpest knife out of the web
development drawer. I have a question about database replication as it
relates to Django.
I used to work at a place that had a somewhat high
availability/performance/whatever application where we had a MySQL db
replicated acr
On 5/12/06, hernan43 <[EMAIL PROTECTED]> wrote:
>
> Some time ago there was a
> thread(http://groups.google.com/group/django-users/browse_thread/thread/d08f4975da831bb/42a458eba506cda9?q=database+replication&rnum=1#42a458eba506cda9)
> on the Django list that alluded to adding this type of capabili
Joseph Kocherhans wrote:
> It's certainly wanted, but I don't think anyone has worked on it yet.
> There's a ticket open at: http://code.djangoproject.com/ticket/1142
Nur. I completely neglected to search the tickets!
--Ray
--~--~-~--~~~---~--~~
You received thi
Ned, can you elaborate on what you dislike about combining the field
definitions and the helper functions together in one file?
As a practical matter I find that I need to have the model at hand to
write helper functions, so for that reason alone I've come to
appreciate having them all together,
> I was thinking about a nice addition to Django where you would keep
> your old model files around and offer a few utility classes to do the
> diff / alter output for you. But your idea is a nice immediate step.
There's some discussion of that idea here:
http://code.djangoproject.com/wiki/Sch
On Friday 12 May 2006 11:32, Luke Plant wrote:
> On Thursday 11 May 2006 10:13, PythonistL wrote:
> > Is there a way how to prevent a page from being cached?
>
> from django.views.decorators.cache import never_cache
>
> @never_cache
> def myview(request):
> # etc
>
> I'm not sure if it's docum
I'm starting to work on my first Django app, and I'm experiencing some
weird behaviour with render_to_response.
I have a base template (base.html), that uses LANGUAGE_CODE in the
attributes.
I currently only have one view:
def upload_file(request):
manipulator = VsslUpload.AddManipulator(
Jay Parlar wrote:
>Is there something about render_to_response that makes it that
>LANGUAGE_CODE doesn't get properly populated?
>
>
All those things that are populated in templates automatically work with
the help of context processors
(http://www.djangoproject.com/documentation/templates_py
Rob Hudson wrote:
>What I'm not clear on is what ifchanged looks at. Does it look at the
>for loop and "event", or does it look at what's in the body of
>ifchanged? In this case the event.date_from?
>
>
It looks at the string between {% ifchanged %} and {% endifchanged %} no
matter how it
Perfect, thanks so much!
Jay P.
On 5/12/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
>
> Jay Parlar wrote:
>
> >Is there something about render_to_response that makes it that
> >LANGUAGE_CODE doesn't get properly populated?
> >
> >
> All those things that are populated in templates automatically
Installed from subversion. Ran "django-admin.py startproject
greenleaftech; cd greenleaftech; python manage.py runserver" and I get
the following. Can anyone help out?
Thanks, Tom
python manage.py runserver
Validating models...
admin.logentry: 'user' has relation with uninstalled model User
adm
On 5/12/06, tomass <[EMAIL PROTECTED]> wrote:
> Installed from subversion. Ran "django-admin.py startproject
> greenleaftech; cd greenleaftech; python manage.py runserver" and I get
> the following. Can anyone help out?
Run 'python manage.py syncdb'.
--
"May the forces of evil become confused o
On 5/12/06, tomass <[EMAIL PROTECTED]> wrote:
>
> Installed from subversion. Ran "django-admin.py startproject
> greenleaftech; cd greenleaftech; python manage.py runserver" and I get
> the following. Can anyone help out?
>
> Thanks, Tom
>
>
> python manage.py runserver
> Validating models...
> ad
[Tom]
> admin.logentry: 'user' has relation with uninstalled model User
> admin.logentry: 'content_type' has relation with uninstalled model
> ContentType
I had this problem recently, and it was because I only had
'django.contrib.admin' listed in INSTALLED_APPS, when I also needed its
dependenci
> "The semantics of one-to-one relationships will be changing soon, so we
> don't recommend you use them. If that doesn't scare you away, keep
> reading."
>
> It scares me a bit. Can anyone expand on the "changing semantics" or
> point me to an existing discussion?
+1
I need to use this, and woul
Okay, so I try python manage.py syncdb and I get:
Error: None couldn't be installed, because there were errors in your
model:
admin.logentry: 'user' has relation with uninstalled model User
admin.logentry: 'content_type' has relation with uninstalled model
ContentType
Here is the contents of my
As part of my web-app, I would like to allow users to upload files. Towards
this end
I have a model field:
zipfile = meta.FileField(upload_to =".")
This has a custom manipulator with the field line:
formfields.FileUploadField(field_name="zipfile"),
and a template entry of:
On Friday 12 May 2006 16:56, Frank Miles wrote:
> Am I missing something obvious? I'd appreciate any insights, including any
> specific documentation. So far, pouring over the docs and user-lists
> hasn't yielded the insight I still lack.
>
> TIA!
> -frank
Hi Frank,
I too amd on 0.91.
Joseph Kocherhans wrote:
>
> Looks like you need to add 'django.contrib.contenttypes' and
> 'django.contrib.auth' to your INSTALLED_APPS setting.
#2.5 in
http://code.djangoproject.com/wiki/MagicRemovalCheatSheet#URLsandsettings
Add additional applications to your INSTALLED_APPS to satisfy depe
I can't figure out a way of using a simple blog app for each user in my
project. Ideas?
--~--~-~--~~~---~--~~
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@googleg
Is there a way to combine python properties with Django fields so that
one can essentially use both regular (persistent) and callable fields
transparently ? If the previous sentence didn't make any sense, here's
a simplest example:
from django.db.models import Model, IntegerField
class Foo(Model
> Hi,
>
> I'm working on a ticket management system (a la Trac)
> for in-house applications for my company.
I stopped reading here... why reinvent the (trac)wheel ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
On Sat, 2006-05-13 at 01:33 +, George Sakkis wrote:
> Is there a way to combine python properties with Django fields so that
> one can essentially use both regular (persistent) and callable fields
> transparently ? If the previous sentence didn't make any sense, here's
> a simplest example:
>
On 5/12/06, Andrew Badstubner <[EMAIL PROTECTED]> wrote:
> I need to use this, and would love some more information.
Fromwhat I understand, one-to-one relationships will be obsoleted by
proper subclassing of models; rather than tying a new model to an old
one, you'll just subclass the old.
--
"
hi,
in 0.91, i have the following models:
town - just a name
coaches - contains a foreign key to towns
I want to get a list of towns which have coaches in them. In sql
this would be:
"select distinct towns.name, towns.id from towns where towns.id in
(select town from coaches)"
what is the
On 5/12/06, Karl Fast <[EMAIL PROTECTED]> wrote:
> Can anyone point me to examples of django apps that either do not use
> a database, or use it for only part of the app? Looking for source.
>
> I'm specifically interested in examples with models that use other
> persistence backends (like a confi
Hello,
I found the solution: Phil was right in supposing that the apache user did not
have access to the directories that my project is located in. A simple 'chmod
o+rx -R' on the parent project directory solved my problem.
Have a nice weekend, Gunnar :)
Am Freitag, 12. Mai 2006 16:11 schrie
57 matches
Mail list logo