On Tue, 2007-10-16 at 10:18 -0400, Marty Alchin wrote:
> I've done some work on FileField lately that address some of your concerns.
>
> On 10/16/07, Mark Green <[EMAIL PROTECTED]> wrote:
> > * does django properly sanitize the filename or rather, use
> > safe temp files? i wonder what would h
I would also recommend WebFaction. If you really want to be your own admin,
SliceHost is good too -but you have to know how to run your own server.
>From the managed perspective, WebFaction is the best.
--~--~-~--~~~---~--~~
You received this message because you are
I would absolutely recommend webfaction for django, its good service,
and most importantly efficient and easy set up.
On Oct 17, 4:57 pm, Greg <[EMAIL PROTECTED]> wrote:
> Hello,
> I am looking for a hosting provider that offers support for Django
> apps. I've only worked with the developmental
On 10/17/07, onno <[EMAIL PROTECTED]> wrote:
>
> I keep reading two things
> Newforms is stable, use it !!
> Newforms is in flux, will change a lot over time ...
>
> I have to build an application that uses newforms a lot! I use SVN
> 0.97 version
>
> Should I expect that my code breaks al over in
On 10/18/07, Densetsu no Ero-sennin <[EMAIL PROTECTED]> wrote:
>
> Unfortunately, dumpdata/loaddata won't work on large databases, because the
> whole data collection is retrieved and stored in RAM before serialization or
> after deserialization.
This comment has been made before (by Adrian), and
Hi Jacob,
I had a similar situation. The key points that I wanted were:
1. Still use a normal Django newform that can validate itself etc.
2. Control of HTML remains in the template.
The way I went about it was to:
1. Create a new form, say ManageRegistrationsForm that takes a result-
set of reg
Hi Robert,
I had the same problem. Since I switched from FCGI to mod_python the
problem disappeared. I still don't know what was the _real_ reason for
that. However, I noticed it was possible to get rid of the problem
temporarily by clearing the browser cache (or cookies). I bet it was
caused by
Thanks Koen! I will try the patch.
On Oct 17, 12:03 am, koenb <[EMAIL PROTECTED]> wrote:
> Hi Mark,
>
> You can find some newer work at ticket #4747. The patches there are
> some work in progress trying to bring multi-db back in line with
> trunk.
> A lot has changed in trunk in the last year, so
I would also recommend using Webfaction. A couple of clicks and your
site is ready for your Django app.
On Oct 17, 5:45 pm, machineghost <[EMAIL PROTECTED]> wrote:
> I'm not sure if it's still on the list or not, but Dreamhost is
> TERRIBLE for Django. I'd recommend webfaction.com; they set every
On Oct 18, 8:33 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote:
> ...
>
>
>
> > ImportError: No module named django.core.handlers.modpython
>
> ...
> > my conf file is a basic:
>
> >
> > SetHandler python-program
> > PythonHandler dja
I'm not sure if it's still on the list or not, but Dreamhost is
TERRIBLE for Django. I'd recommend webfaction.com; they set everything
up for you initially, and just generally handle lots of the sys admin
stuff so that you can focus on programming.
Jeremy
On Oct 17, 3:09 pm, Greg <[EMAIL PROTECT
On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote:
...
>
> ImportError: No module named django.core.handlers.modpython
>
...
> my conf file is a basic:
>
>
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE videouploader.sett
This is strange and I am sure I am doing something wrong, but i have
been starring at this for a while now and can't see it.
I am getting this mod_python error:
ProcessId: 31673
Interpreter:'mysite'
ServerName: 'mysite'
DocumentRoot: '/var/www/vhosts/mysite/httpdocs'
URI:
Ok...let's try this again. Hopefully this works.
Hello,
I am looking for a hosting provider that offers support for Django
apps. I've only worked with the developmental version of Django. So
this is my first time picking out a hosting provider. I've looked
through the documentation at:
http:
Hello,
I am looking for a hosting provider that offers support for Django
apps. I've only worked with the developmental version of Django. So
this is my first time picking out a hosting provider. I've looked
through the documentation at:
http://code.djangoproject.com/wiki/DjangoFriendlyWebHost
Hello,
I am looking for a hosting provider that offers support for Django
apps. I've only worked with the developmental version of Django. So
this is my first time picking out a hosting provider. I've looked
through the documentation at:
http://code.djangoproject.com/wiki/DjangoFriendlyWebHost
Hello,
I am looking for a hosting provider that offers support for Django
apps. I've only worked with the developmental version of Django. So
this is my first time picking out a hosting provider. I've looked
through the documentation at:
http://code.djangoproject.com/wiki/DjangoFriendlyWebHost
Hello,
I have HomePage with login bar with a form for user to log in. I use
django.contrib.auth.login to log user in. When I enter it from the
/accounts/login/ page it works ok. However trying to login from homepage is
not working. I have to do it twice (always). On django# there were more
users wi
On Oct 16, 5:35 am, Divan Roulant <[EMAIL PROTECTED]> wrote:
> I loose request data when I call a view with reverse from a previous
> view. Here is what I do:
>
> def my_first_view(request):
> # Processing here
> return HttpResponseRedirect(reverse('my_second_view,
> args=(request,)))
>
>
On Oct 17, 1:52 pm, jacoberg2 <[EMAIL PROTECTED]> wrote:
> I am trying to create a checkbox form so that the user can delete a
> large number of
> registrations at once. I am wondering how I should set up the view in
> order to deal with
> the incoming data. Any suggestions?
The template can gene
On Oct 17, 1:29 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote:
> On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote:
>
> > In the latest patches for multi-db the QuerySet that is returned is no
> > longer fixed, but varies with the model's manager. That should fix
> > that problem for now.
>
> > K
On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote:
> In the latest patches for multi-db the QuerySet that is returned is no
> longer fixed, but varies with the model's manager. That should fix
> that problem for now.
>
> Koen
I've installed the latest patches for multi-db agains revision 645
>
> Is there a way to express that I don't need the reverse relation?
No. Even if you don't need them, Django will want to dynamically endow
your Location objects with them. And, as you know, it can't do it if
two reverse relations have the same name.
--~--~-~--~~~--
On Oct 17, 1:06 pm, stv <[EMAIL PROTECTED]> wrote:
> really? I'm researching Django for a potentially large project, I was
> thinking of having a layout like this:
>
> mainproject
> |--core # models reused everywhere: Person, Address, etc
> |--apply # models only for application: Questions, refere
I'm finding that I have quite a few many-to-one relations that don't
really need the reverse relation to be expressed in the object model.
For example,
class Route(models.Model):
start = models.ForeignKey (Location)
destination = models.ForeignKey (Location)
The default related_name clas
On 10/17/07, Greg <[EMAIL PROTECTED]> wrote:
> Is there documentation that talks about .2f? Would it be under Python
> or Django documentation?
That's just Python. See:
http://docs.python.org/lib/typesseq-strings.html
I'm still having the problem with the admin though. I guess it's not
> th
manage.py dumpdata and manage.py loaddata are nice tools for many cases.
Particularly, they could be useful for transferring data from one database to
another (say, from SQLite to PostgreSQL).
Unfortunately, dumpdata/loaddata won't work on large databases, because the
whole data collection is
You should take a look at the tutorials in the documentation.
On 10/17/07, Gigs_ <[EMAIL PROTECTED]> wrote:
>
>
> hI!
>
> I'm going to start my first website (with django).
>
> I need some guidelines what to do first, where to start etc.?
>
> Website will be for some tennis game tournament, so it
Hey,
I am trying to create a checkbox form so that the user can delete a
large number of
registrations at once. I am wondering how I should set up the view in
order to deal with
the incoming data. Any suggestions? Thanks for any help i can get.
Jacob
--~--~-~--~~~---
Karen,
Yep, that worked! I'm now able to send an email that contains .00
instead of .0.
Is there documentation that talks about .2f? Would it be under Python
or Django documentation?
I'm still having the problem with the admin though. I guess it's not
that big of an issue since I'm the only p
Try changing:
phonemes = "%s \n\n %s" % (pr, myorder)
to:
phonemes = "%.2f \n\n %s" % (pr, myorder)
Karen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
The bound data and initial data dicts are just set on the form
instance as form.data, and form.initial. This isn't 'clean' data
though, so you are bypassing any newforms validation.
a = AForm( initial = {'x': 1} )
a.initial['x']
--~--~-~--~~~---~--~~
You receive
>
> I started out by having lots of little apps, but that seemed to be a
> bit painful, having 5 or 6 sets of models.py, views.py, and urls.py.
> Now I just have one app, the functionality that I'm working on. I'll
> come through and refactor later if I need to.
really? I'm researching Django fo
Doug,
I'm sending the email from my view so I can't use a template filter
like 'stringformt'. I don't call a template to send my email. Here
is my code view:
o = Order()
o.b_name = request.session['orderdetails']['b_firstname'] + " " +
request.session['orderdetails']['b_lastname']
o.b_address =
Given an instance of a form that was created with initial data, how do
I extract a specific field value? For example,
a = AForm( initial = {'x': 1} )
How do I find out what value the field named 'x' is?
a.fields['x']
gives me
a.fields['x'].initial
returns None
I am not interested in submi
hI!
I'm going to start my first website (with django).
I need some guidelines what to do first, where to start etc.?
Website will be for some tennis game tournament, so it will have
database with registered users. Registered users could register for
upcoming tournaments (after they login) in s
> Having your URLs end with a slash is good. It looks better and shortens
> your pages address. Also, in the future, you may find that not all of
> your pages are going to be text/html.
While I'm ambivalent about the trailing slash (the below assumes
that it's disabled), many of my urls/views
2007/10/17, Tim Perrett <[EMAIL PROTECTED]>:
>
> Hey all
>
> I have played around with consuming a SOAP services with simple
> python scripts and the ZSI soap implementation, but I was then
> wondering where best to put this kind of code? It would start to
> clutter things up if I was to put it in
On Oct 17, 9:44 am, Greg <[EMAIL PROTECTED]> wrote:
> Doug,
> Thanks for the reply. It's weird, because in my admin when I show the
> amount in my list_display (list_display = ('b_name', 'thirdtime',
> 'amount', 'customer', 'id')). I see the two zeroes. However, when I
> drill down on a specifi
hi johnny,
you can use dot syntax for indices also, ie:
{{ a_tup.0 }}
{{ a_tup.1 }}
-jake
On Wed, 2007-10-17 at 08:20 -0700, johnny wrote:
>
> {% for a_tup in rs %}
>
> {{ a_tup[0] }}/
>{{ a_tup[1]
>
> {% endfor %}
>
> Exception Type: TemplateS
{% for a_tup in rs %}
{{ a_tup[0] }}/
{{ a_tup[1]
{% endfor %}
Exception Type: TemplateSyntaxError
Exception Value:Could not parse the remainder: '[0]' from 'a_tup[0]'
Only way to do this is to have nested for loop inside template?
--
yes, something like that!!!
On 10/17/07, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
>
> When you say 'workflow', do you mean like a JBPM type thing, but in
> python?
>
> Cheers
>
> TP
>
>
> On 17 Oct 2007, at 14:07, Lic. José M. Rodriguez Bacallao wrote:
>
> > hi folks, I need a workflow engine to u
Hey all
I have played around with consuming a SOAP services with simple
python scripts and the ZSI soap implementation, but I was then
wondering where best to put this kind of code? It would start to
clutter things up if I was to put it in views.py wouldnt it?
Any advice would be great
Th
Thanks, Rajesh, that most definately helps. I figured that I'd have to
resort to something like option #1 after many google searches.
On 10/17/07, RajeshD <[EMAIL PROTECTED]> wrote:
>
>
> Hi Jason,
>
> > Using the models below I'd like to be able to create Querysets such as:
> >
> > a = Treatme
Hi Jason,
> Using the models below I'd like to be able to create Querysets such as:
>
> a = Treatment.objects.filter(total_dose__range=(4000,1))
> b = a.filter(tumor__patient__gender = 'M')
>
> Both of the above work, but then I'd like to have an additional filter:
> c = b.filter(tumor__patie
Am 17.10.2007 um 14:43 schrieb Erik Stein:
> Is there a way to tell django not to set a primary key on a table
> (and then doing it with custom sql)?
Answering myself:
To make django happy a define primary_key=True for one of the fields.
I added a custom sql file for the model
On 10/17/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote:
> hi folks, I need a workflow engine to use with a django web site I'm
> implementing, does anyone know a good workflow engine for python (or
> django)?
>
http://code.djangoproject.com/wiki/GoFlow
--~--~-~--~~---
Doug,
Thanks for the reply. It's weird, because in my admin when I show the
amount in my list_display (list_display = ('b_name', 'thirdtime',
'amount', 'customer', 'id')). I see the two zeroes. However, when I
drill down on a specific record I only see one zero. This is a
problem because in my
Aaargh...the indentation got screwed up. Here's another attempt:
class myForm(forms.Form):
def __init__(self, *args, **kwargs):
self.q_prime = [] # default choices here?
try:
self.q_prime = kwargs.pop('q')
except:
pass
super(myForm, self
> Is there a way to tell django not to set a primary key on a table
> (and then doing it with custom sql)?
Hi,
why can't you drop the created primary key in you custom sql
(myapp/sql/mymodel.sql) ,
and then create your new combined index?
Thomas
--~--~-~--~~~---~
class myForm(forms.Form):
def __init__(self, *args, **kwargs):
try:
self.q_prime = kwargs.pop('q')
except:
pass
super(myForm, self).__init__(*args, **kwargs)
choice = forms.ChoiceField(label="My choice",
choices=myCho
Mathieu Poussin wrote:
> Hello ,
> i have a question,
> by default , django add a slash at the end of the url , like that :
> http://my/documents/hello -> http://my/documents/hello/
>
> it's possible to add .html instead of that ? like that :
> http://my/documents/hello -> http://my/documents/hell
Check out:
http://code.djangoproject.com/wiki/goflow:FAQ
--~--~-~--~~~---~--~~
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
When you say 'workflow', do you mean like a JBPM type thing, but in
python?
Cheers
TP
On 17 Oct 2007, at 14:07, Lic. José M. Rodriguez Bacallao wrote:
> hi folks, I need a workflow engine to use with a django web site
> I'm implementing, does anyone know a good workflow engine for
> pyt
Is there a way to access apache/mod_python's SSL client certificate
variables in django?
I found only this: http://code.djangoproject.com/ticket/2938 - is it
really not possible without patching django source code?
--~--~-~--~~~---~--~~
You received this message
One year free, full dynamic and 2 languages 10 pages business website.
Try it. http://www.nayloon.com
Best Regards
Tolga Bilir
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Using the models below I'd like to be able to create Querysets such as:
a = Treatment.objects.filter(total_dose__range=(4000,1))
b = a.filter(tumor__patient__gender = 'M')
Both of the above work, but then I'd like to have an additional filter:
c = b.filter(tumor__patient__get_followup_length_
On Oct 16, 11:19 pm, Greg <[EMAIL PROTECTED]> wrote:
> Michael,
> Yea I'm already using stringformat in my template. However, in my
> view code is where I create the order. When the order is added in the
> view and I then look at it in the admin the price is displayed as 74.0
> instead of 74.00.
hi folks, I need a workflow engine to use with a django web site I'm
implementing, does anyone know a good workflow engine for python (or
django)?
--
Lic. José M. Rodriguez Bacallao
Cupet
-
Todos somos muy ignorantes, lo que ocurre e
Hey,
inside a inclusion tag I try to set a variable to the context. But in
no template it is accessible.
I followed http://www.djangoproject.com/documentation/
templates_python/#setting-a-variable-in-the-context
If I print the context in [1], level is defined, but if I use {%
debug %} not
On Oct 17, 2:23 am, Manoj Govindan <[EMAIL PROTECTED]> wrote:
> How many here follow the django axiom of 'one project, multiple apps'?
> If you do, how do you control the sources? Do you map one project to
> one source code repository or do individual apps get their own
> repositories?
I've foun
I know the ticket [1] and the FAQ [2] and the wiki page [3]
concerning "Multi-Column Primary Key support".
My (legacy) table with ~25000 rows is a m2m-Model, which means that
uniqueness must be calculated on the whole row. In other words, no
single column can have a constraint on uniquenes
On Oct 17, 6:47 am, Mathieu Poussin <[EMAIL PROTECTED]> wrote:
> Hello ,
> i have a question,
> by default , django add a slash at the end of the url , like that
> :http://my/documents/hello->http://my/documents/hello/
>
> it's possible to add .html instead of that ? like that
> :http://my/docum
set APPEND_SLASH=False
(r'^documents/([\w_]+)\.html', 'some_view', {})
On Oct 17, 1:47 pm, Mathieu Poussin <[EMAIL PROTECTED]> wrote:
> Hello ,
> i have a question,
> by default , django add a slash at the end of the url , like that
> :http://my/documents/hello->http://my/documents/hello/
>
> i
Here's the solution I'm using right now in my view. Not pretty.
my_items = MyModel.objects.all()
my_items_dict = dict((obj.pk, obj) for obj in my_items)
formset = forms.formset_for_model(MyModel, extra=0)
(instances=my_items)
pk_name = MyModel._meta.pk.attname
for form in form
Hello ,
i have a question,
by default , django add a slash at the end of the url , like that :
http://my/documents/hello -> http://my/documents/hello/
it's possible to add .html instead of that ? like that :
http://my/documents/hello -> http://my/documents/hello.html
if yes, how ?
thanks , Sorr
The FileBrowser is now available (again) at
http://code.google.com/p/django-filebrowser/
patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
I am always quite amazed at the horrible rewrite rules that people
often seem to have to resort to, to get fastcgi solutions working, if
that is they get them working.
FWIW, you might want to instead look at mod_wsgi as configuration is a
lot simpler and it will work with Apache 1.3 server on Mac
On Oct 17, 5:38 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 17-Oct-07, at 7:31 AM, Wiley wrote:
>
> > Kenneth and Bob, the PythonInterpreter thing was the first thing I
> > checked (because it was in the official docs) if you notice I have
> > different PythonInterpreters already set in
If the apps are shared (or might be shared) between multiple projects,
I put them into separate repositories and use svn externals to stick
them into the project tree.
I actually include the Django source as an svn external as well to
keep track on which branch/revision each project is using and
I keep reading two things
Newforms is stable, use it !!
Newforms is in flux, will change a lot over time ...
I have to build an application that uses newforms a lot! I use SVN
0.97 version
Should I expect that my code breaks al over in coming svn version or
when going to 0.98
--~--~-~-
I have a formset for "confirming" multiple model instances by checking
a checkbox.
I'd like to show values of some fields as text and display a checkbox
for the confirmation boolean field.
I have a couple of ideas:
- somehow couple the instances and their corresponding formset forms
and access t
Rufman wrote:
> hey guys
>
> I need a little help reversing urls with a get parameter.
>
> I'm using urlresolvers.reverse() in my view to reverse the url as
> follows:
> reverse(pageName, kwargs={'page' : page})
>
> If i try passing thre request.GET object as so:
>
> reverse(pageName, args=[re
Using one repository , then one project one directory, I do this.
On 10/17/07, Manoj Govindan <[EMAIL PROTECTED]> wrote:
>
> On Oct 17, 12:30 pm, Margaret <[EMAIL PROTECTED]> wrote:
> > version control system???
> > or local filesystem??
> >
>
> Version control system, say SVN.
>
>
> >
>
--
[E
On Oct 17, 12:30 pm, Margaret <[EMAIL PROTECTED]> wrote:
> version control system???
> or local filesystem??
>
Version control system, say SVN.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
On 17-Oct-07, at 7:31 AM, Wiley wrote:
> Kenneth and Bob, the PythonInterpreter thing was the first thing I
> checked (because it was in the official docs) if you notice I have
> different PythonInterpreters already set in the two virtual hosts in
> my original post...am I missing something obvi
In the latest patches for multi-db the QuerySet that is returned is no
longer fixed, but varies with the model's manager. That should fix
that problem for now.
Koen
On 17 okt, 09:03, Ian <[EMAIL PROTECTED]> wrote:
> I don't know anything about the multi-db branch, but I imagine that
> whatever Q
hey guys
I need a little help reversing urls with a get parameter.
I'm using urlresolvers.reverse() in my view to reverse the url as
follows:
reverse(pageName, kwargs={'page' : page})
If i try passing thre request.GET object as so:
reverse(pageName, args=[request.GET], kwargs={'page' : page}
version control system???
or local filesystem??
On 10/17/07, Manoj Govindan <[EMAIL PROTECTED]> wrote:
>
> How many here follow the django axiom of 'one project, multiple apps'?
> If you do, how do you control the sources? Do you map one project to
> one source code repository or do individual ap
How many here follow the django axiom of 'one project, multiple apps'?
If you do, how do you control the sources? Do you map one project to
one source code repository or do individual apps get their own
repositories?
--~--~-~--~~~---~--~~
You received this message
Hi Mark,
You can find some newer work at ticket #4747. The patches there are
some work in progress trying to bring multi-db back in line with
trunk.
A lot has changed in trunk in the last year, so I think it is worth
trying those out instead of the old branch. Off course there are still
a lot of
On Oct 16, 6:38 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote:
> I am having trouble with Django revision 6110 patched with multi-
> db-6110.patch.
>
> Traceback (most recent call last):
> File "", line 1, in ?
> File "/usr/local/lib64/python2.4/site-packages/django/db/models/
> query.py", line
Hi all,
django 6525, Apache 1.3, Mac OS X Server 10.4.7, python 2.5.1
(darwin ports)
Following: http://code.djangoproject.com/wiki/OsxFcgi , except I've
added another
folder into the nest:
/Library/WebServer/Documents/django
Added these lines to my httpd.conf (which, besides turning on php,
83 matches
Mail list logo