Check out: http://ant.apache.org/
These types of deployment & initialization tasks should be handled by
the surrounding environment, not Django itself. I suggest you use ant
or something similar to set up some scripts for yourself that
coordinate everything.
--~--~-~--~~--
Hello Django Developers,
We're looking for Django developers to work on various web
applications. You can be located anywhere in the world, but your
English has to be very strong. You should be familiar with the
following:
- source control (svn)
- unit testing with Django
- AJAX
- and of course,
On Oct 3, 2007, at 7:55 AM, Xan wrote:
>
> In http://code.djangoproject.com/ticket/5534 there is a howto for
> doing that.
> But it's only when the script is in the root project directory.
> What happens if we want the script in other location? What line we
> have to add?
>
> Thanks a lot,
> Xan.
I'm trying to write a custom QuerySet, but I'm a bit confused about
how to properly use the method extra(). From my understanding,
extra() accepts both "select" and "where" arguments, both of which can
contain bind variables. You then pass the appropriate bind variable
values to the "param" argu
Am 03.10.2007 um 12:36 schrieb Andrey Khavryuchenko:
> I know about MySQL Cluster. The obvious disadvantage is that the
> whole
> database should be in main memory. Kiss goodbye to a bunch of cheap
> servers sitting close to actual users.
>
> There are also replication tweaks like multi-mast
After the few responses here and Malcolm telling me I was on drugs
(grin) I dug deeper and found the problem...
On my list result page I had a model method returning an empty string
for a URL to a related image which resulted in the following HTML:
That cause an extra GET request to the sa
I have used both mochikit and yahoo YUI for this, both of them work well.
JQuery show a great deal of promise as well although I have never used it.
-richard
On 10/3/07, Emmchen <[EMAIL PROTECTED]> wrote:
>
>
> @ Hraban - Thank you for your reply.
>
> Yes, I want to display up to four columns. The
Am 2007-10-03 um 20:52 schrieb Emmchen:
> Is it possible to use two or more forms at the same time? And is it
> possible to desplay the selected values from one form while the next
> form doesn't have a selected value yet. How does this work with
> request/response?
>
> My experience with JavaScr
On 10/3/07, fdraft <[EMAIL PROTECTED]> wrote:
> So I'm keeping uploaded files in an S3 bucket. For private documents,
> their S3 permissions are set to private. So my plan has been that
> Django will check if a user is authenticated, and if so, pull the
> document from S3 and send it to the client
On 10/3/07, staff-gmail <[EMAIL PROTECTED]> wrote:
> So my question was how do I do ORM in a view ?? Where is "choice_set"
> coming from ??
http://www.djangoproject.com/documentation/db-api/#backward
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~
the thing is that i am trying to update this site for a previous
developer and he created a base template that extends to all the
pages in the site, so i assume that he used those functions and when
clicking around the site and seeing his other views,
all he did was put at login required, and when
Chris Brand wrote:
> staff-gmail wrote:
>> Where is "choice_set" coming from ??
> That one's easy -
> http://www.djangoproject.com/documentation/db-api/#backward
>
> Chris
>
Oh, and the explanation for it's use in a template is at
http://www.djangoproject.com/documentation/templates/#variables
@ Hraban - Thank you for your reply.
Yes, I want to display up to four columns. The content of one column
depend on the selection in the previous column (exept for the first
one).
Column 1: Display a list of choices - (eg Systematic, Collection,
Growthplace, Heritage).
Column 2: Display a filter
"when i connect to the pages that should handle the upload, the person
is no longer logged in"
If that's true, then the problem isn't with this bulk_reg() function -
presumably it isn't running if you aren't logged in, right? Are you
using the suggested methods for loggin a user in (
http://www.d
staff-gmail wrote:
> Where is "choice_set" coming from ??
That one's easy -
http://www.djangoproject.com/documentation/db-api/#backward
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
On Wed, 2007-10-03 at 12:40 -0600, staff-gmail wrote:
> So my question was how do I do ORM in a view ??
See [1] where it explains how dotted references are mapped back to
Python objects.
> Where is "choice_set"
> coming from ??
Based on the name and the examples shown, it's related to the
one
Hey,
I've posted a few times about saving files through the admin and all
the problems its caused, but i figured out that the save method i
tried to write was screwing it all up by not completing due to the
error in opening the file. But since this is occuring it still is
screwing up what i wen
So my question was how do I do ORM in a view ?? Where is "choice_set"
coming from ?? I'm just looking for some very practical answers so I
can get something working - and if I'm a fairly bright guy and can't
figure it out, obviously there's some improvement required - and maybe I
will contr
So I'm keeping uploaded files in an S3 bucket. For private documents,
their S3 permissions are set to private. So my plan has been that
Django will check if a user is authenticated, and if so, pull the
document from S3 and send it to the client. I'm using the boto S3
library to do the actuall inte
@ Hraban - Thank you for your reply.
Yes, I want to display up to four columns. The content of one column
depend on the selection in the previous column (exept for the first
one).
Column 1: Display a list of choices - (eg Systematic, Collection,
Growthplace, Heritage).
Column 2: Display a filter
Hi,
On Oct 2, 1:18 pm, rhett <[EMAIL PROTECTED]> wrote:
> 1) I am working in TextMate and copied/pasted below code. In TextMate
> the "def __str__(self)" is not indented from the pub_date line - it's
> the same indent.
I too use TextMate to do a lot of my Python development. It
consistently ove
On Wed, 2007-10-03 at 11:22 -0600, staff-gmail wrote:
[...]
> Honestly, the official tutorial needs to be re-written.
The tutorial is for people wanting a step-by-step introduction to a
basic project. If you want more information, we have truckloads of
reference documentation for people to read.
Did you have a view named "startsess" that you subsequently deleted?
Admin is looking for it but not finding it. You may need to remove it
from django_content_type. Try dropping that table from your database
and running python manage.py syncdb.
On Oct 3, 12:34 pm, Greg <[EMAIL PROTECTED]> wrote
Am 2007-10-03 um 18:30 schrieb Emmchen:
> I am wondering if it's possible to link dropdowns using newforms. I
> want to use the selected value in the first dropdown as the
> filtervalue for the next dropdown etc.
>
You want the options of the second select to change after selection
of the fir
You're on the right track - missing the MySQL python libraries. It
looks like Python is also missing the zlib libraries...
not sure which OS you're using, but there's probably an "apt-get
install ..." or "rpm -Uvh ..." command that will get you the MySQL
Python libraries that you need. Looking on
I'm totally confused over how Django uses ORM relationships when listing
out data. Let's use the "writing your first app" though I think it's
not a very good example. Okay, in the models we have some fields:
Poll.question
Choice.poll (foreign key)
Choice.choice
Choice.votes
So in a view you c
Hi All,
I am setting up first django project. When I set up django without any
database settings, I could see the first welcome page from django.
After this initial success, when I specify the database settings in
the 'settings.py' and tried to run django, I am getting error,-
"ImproperlyConfigu
On 10/3/07, Nabuco <[EMAIL PROTECTED]> wrote:
> I have a view which receives a list of items in my app to be deleted.
> After the deletion, I need to return a page containing the same origin
> page plus a message like "the items (items here) have been
> successfully deleted".
http://www.djangopro
I have a view which receives a list of items in my app to be deleted.
After the deletion, I need to return a page containing the same origin
page plus a message like "the items (items here) have been
successfully deleted".
So, after doing all the required stuff in the view, if I want to avoid
the
Malcolm,
As always, your expedient and thoughtful reply is appreciated.
On 10/3/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> The only thing that is really guaranteed to be loaded sufficiently early
> in the process is the settings module (along with the __init__.py file
> in the directory
Hello,
Whenever I login to my admin view the very first thing I see if the
following error. It also happens occasionally when I'm going through
my admin pages.
ViewDoesNotExist at /admin/
Tried startsess in module mysite.rugs.views. Error was: 'module'
object has no attribute 'startsess'
Request
Hi,
I am wondering if it's possible to link dropdowns using newforms. I
want to use the selected value in the first dropdown as the
filtervalue for the next dropdown etc.
My model looks something like this:
///
models.py
class Property(models.Model):
""" Contains a list of properti
I can't see why that would cause a redirect, it is hard to diagnose a
problem without seeing the code or the server logs. Is the get request for
the same URL?
On 10/3/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
>
> I'm working on an advanced search feature for a website and am using
> request.ses
just modify sys.path as you need...
On 10/3/07, Xan <[EMAIL PROTECTED]> wrote:
>
> In http://code.djangoproject.com/ticket/5534 there is a howto for
> doing that.
> But it's only when the script is in the root project directory.
> What happens if we want the script in other location? What line we
Can you post the command line output?
On Oct 3, 11:45 am, Rob Hudson <[EMAIL PROTECTED]> wrote:
> I'm working on an advanced search feature for a website and am using
> request.session to store the search terms so pagination will remember
> and paginate correctly. While working with the built-in
On 10/3/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
> The only thing django app should know is that there are two different
> *kinds* of servers: read-only and whole access. It doesn't matter how many
> servers you have - you may well have pool of masters and pool of slaves, it
> doesn't
I'm working on an advanced search feature for a website and am using
request.session to store the search terms so pagination will remember
and paginate correctly. While working with the built-in server I'm
seeing that my search submit come through as a POST then almost
immediately after I see ano
On Wed, 2007-10-03 at 11:23 -0400, Benjamin Slavin wrote:
> Hello all,
>
> I'm trying to make use of the class_prepared signal to add some
> functionality to all models.
>
> The problem I'm facing is how to properly register my listener.
>
> I need to register the listener before any models are
Hello all,
I'm trying to make use of the class_prepared signal to add some
functionality to all models.
The problem I'm facing is how to properly register my listener.
I need to register the listener before any models are prepared, but I
can't seem to figure out how to accomplish this.
Right n
So, here is my version, using the cache backend:
from datetime import timedelta, datetime
from django.core.cache import cache
from django.contrib.sites.models import Site
ONLINE_MINUTES = 10
CACHE_KEY = '%s_online_user_ids' % Site.objects.get_current().domain
_last_purged = datetime.now()
def
In http://code.djangoproject.com/ticket/5534 there is a howto for
doing that.
But it's only when the script is in the root project directory.
What happens if we want the script in other location? What line we
have to add?
Thanks a lot,
Xan.
On Sep 18, 8:27 pm, Horst Gutmann <[EMAIL PROTECTED]> w
Thanks a lot Russ, I am sometimes lazy reading documentation and miss
things...
cheers,
hector
On Oct 3, 1:44 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 10/3/07, Nabuco <[EMAIL PROTECTED]> wrote:
>
>
>
> > In a view I receive some videokeyword id's existing in a Video to be
> > d
Hi again, I answer myself
> http://code.google.com/p/django-check-constraints/
>
> But unlucky (nothing to download). What happened? Did it finished?
>
http://code.google.com/p/google-summer-of-code-2007-django/downloads/list
Here it is. BTW, are you going to include in the django svn version?
On Mittwoch, 3. Oktober 2007, Malcolm Tredinnick wrote:
> On Wed, 2007-10-03 at 15:37 +0200, Dirk Eschler wrote:
> > Hi,
> >
> > i'm using a date based generic on a multi-language website. When the
> > online language is set to German, {{ date|date:"M"|lower }} returns a
> > localized value - "mär
hi all
I have a model like this (I intentionally replaced the details by
dots):
class Family(...):
name = ... # field contains non-unique values
age = ...
# model method to get children, here operations with another model
are involved
def getChildren():
return ...
when I pr
Hi all,
Here a new Django user (shortly I hope developer). Congratulations for
the framework!
> There is a Google Summer of Code project going on at the moment for
> Django which is designed to allow for adding database constraints. You
> might want to have a look at that (search for django-chec
On Wed, 2007-10-03 at 15:37 +0200, Dirk Eschler wrote:
> Hi,
>
> i'm using a date based generic on a multi-language website. When the online
> language is set to German, {{ date|date:"M"|lower }} returns a localized
> value - "mär" instead of "mar" that is. This breaks the link i intend to
> b
I am trying to use fieldsets and newforms, looking at the newforms-
admin branch it appears as if support will be included in the admin,
but I am not sure of how to integrate this into my custom forms.
Is the following possible / are there plans for doing something like
the following?
{{ form.a
Hi,
i'm using a date based generic on a multi-language website. When the online
language is set to German, {{ date|date:"M"|lower }} returns a localized
value - "mär" instead of "mar" that is. This breaks the link i intend to
build. Can the localisation be turned of somehow in this case?
Bes
On 10/3/07, omat <[EMAIL PROTECTED]> wrote:
> I used it for some time and observed some inconsistencies. I think
> this is because the code is not thread-safe.
>
> Do you know a thread safe way of applying this approach?
Well, "thread-safe" is a confusing term for something like this, but
you're
Hi,
On Sat, Sep 29, 2007 at 10:06:19PM -0700, pength wrote:
> well, I am doing some similiar things, for example, I want to show the
> time when this Django/Apache server start, and set some "gloabl
> variables" which all of my apps can use, just do like this:
> I have a primary app named "city",
Ola
I should think this functionality would be a valuable addition to
Django so thx for your pointers.
abracos
Ian
On 10/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Tue, 2007-10-02 at 13:22 -0400, Ian Lawrence wrote:
> > Hi
> > I have a requirement for all forum posts to go to a ma
time: '00:00:00'
I found it .
Thank you.
--~--~-~--~~~---~--~~
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
On 3 Okt., 13:18, peschler <[EMAIL PROTECTED]> wrote:
> Hi Niklas,
>
> > So in code it should look like this:
> > If user is my argument that was given to render_to_response, i want to
> > give the function the submodel status of user; like this:
> > {{ percentbar user.status }}
>
> Some docs on h
Thanks for the answer Lemuel :)
I added a get_images method in the (example) Toy model, which returns
a list of the pictures related to it. Which basically just wraps
things up:
def get_images(self):
images = self.toypicture_set.all()
return images
Doing a select_related, sounds more ef
Hi Niklas,
> So in code it should look like this:
> If user is my argument that was given to render_to_response, i want to
> give the function the submodel status of user; like this:
> {{ percentbar user.status }}
>
Some docs on how to achieve this can be found here:
http://www.djangoproject.c
JB> On 10/2/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
>> Shouldn't it? In case of MySQL replication (which is quite widely used)
>> and transactions someone somehow *has* to decide where the whole
>> transaction is going - to a master or to a slave.
JB> In the case of MySQL, use
Hello everyone
Can anyone recommed a good tutorial on how to install django mysql
and fastcgi on a Fedora Core 6 box?
It's my box so there's no need to worry about hosting companies not
allowing certain things.
Any help, greatly appreciated.
--~--~-~--~~~---~--~---
Hi,
In this thread, closed due to inactivity:
http://groups.google.com/group/django-users/browse_thread/thread/6f5f759d3fd4318a/
Jeremy Dunck offers a resource friendly way to keep track of online
users (http://groups.google.com/group/django-users/attach/
c2f60227b0f2d040/OnlineUsers.py?part=2)
Hi...
My yaml file is
- fields: {time: '0:00'}
model: utils.Hour
pk: 01
- fields: {time: '0:30'}
model: utils.Hour
pk: 02
- fields: {time: '1:00'}
model: utils.Hour
pk: 03
The model for this is
from django.db import models
class Hour(models.Model):
time=models.
[EMAIL PROTECTED] skrev:
> Just installed python/apache/django/mod_python with all the latest
> versions.
>
> I think I got most of my PATH variables set up correctly. However,
> when I try:
>
> C:\django>django-admin.py startproject testproject1
> Traceback (most recent call last):
> File "C:\P
Hi Mike,
I have the same problem with my model. (Link below)
Reading your "points to a .validate() on the model" raises the
following question.
Have you tried it?
http://groups.google.com/group/django-users/browse_thread/thread/bd2b2c24f3879690
--~--~-~--~~~---~--~-
Addition:
> This is my model and I use a custom save to prevent the creation of a
> category with a parent_id which is the same a the current_id (child of
> itself)
When an error occurs an ugly error message apears so I tried to create
a custom validator.
Custom validator didn't work because of
I actually got fed up, and nearly resolved to switch either
frameworks(pylons, turbogears) or webhosts(webfaction, dreamhost).
I deleted everything in a fit and started doing some research. I ran
across this in a python installation guide:
"At this point, every tutorial around the web will tell
64 matches
Mail list logo