Found out:
id = models.AutoField(primary_key=True)
--~--~-~--~~~---~--~~
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 thi
I did not test with fcgi, I'm running 'django search with lucene' in
the Twisted Web2, but new pylucene(PyLucene with JCC) support the
attachCurrentThread(and detachCurrentThread) for Thread-SAFE and the
Django search with Lucene was tested in thread environment(index
writing and reading). I read
> I deployed my Django Application onto the localhost using Apache.
> Below are the changes i did in the httpd.conf
>
>
> ServerName localhost
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> PythonDebug On
> PythonPath "['/xxx/', '/xxx/yyy'] + sys.path"
On Jul 15, 2008, at 3:15 PM, Evert wrote:
>
>> I deployed my Django Application onto the localhost using Apache.
>> Below are the changes i did in the httpd.conf
>>
>>
>>ServerName localhost
>>SetHandler python-program
>>PythonHandler django.core.handlers.modpython
>>PythonDebug
Hi all,
This seems like it will have an obvious answer but I did a lot of
searching and can't find the answer. The timesince template tag
returns 2 outputs like "2 days, 3 hours". How can I limit the output
to only 1 thing?
-Shant
--~--~-~--~~~---~--~~
You receiv
On Mon, Jul 14, 2008 at 11:54 PM, Gregg Lobdell <[EMAIL PROTECTED]> wrote:
> I'm converting an application from hand-constructed Python that builds
> a large web site to Django templates. The site has multiple layers.
> All pages share the same basic layout, header, footer, etc. On each
> interm
On Tue, Jul 15, 2008 at 2:06 AM, tom17 <[EMAIL PROTECTED]> wrote:
>
> Found out:
> id = models.AutoField(primary_key=True)
Or leave the id field out entirely. See:
http://www.djangoproject.com/documentation/model-api/#automatic-primary-key-fields
Arien
--~--~-~--~~~
Hi
I got the same issue.
from django.test import TestCase
class AccountViewTest(TestCase):
def test_account_register(self):
user_data_dict={
'username':'userwerthrthh',
'email':'[EMAIL PROTECTED]',
'passwor
Hi,
I managed to overcome the problem. In the httpd.conf:
ServerName localhost #leave it as it is
#use the IP address for ServerName as well.
NameVirtualHost 127.1.1.1
ServerName 127.1.1.1
SetHandler python-program
PythonHandler django.core.handlers.modpython
Py
Hi,
How can I update or delete a model?
Alfredo
--~--~-~--~~~---~--~~
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 grou
On Monday 14 Jul 2008, Rajesh Dhawan wrote:
> On Jul 14, 5:40 pm, Tim Sawyer <[EMAIL PROTECTED]> wrote:
> > On Monday 14 Jul 2008, Rajesh Dhawan wrote:
> > > The replace method here returns a new instance of a datetime object --
> > > it's not an in-place replace. This should work:
> > >
> > > sel
hi all
like other people, i tried to get an offline copy of the django docs. so,
running rst2html from docutils works fine, but there is a problem with the
links (directing to the site instead of the local docs) and it looks a lot
less appealing. when using the original CSS from the site it looks
On Tue, Jul 15, 2008 at 4:50 AM, Alfredo Alessandrini
<[EMAIL PROTECTED]> wrote:
> How can I update or delete a model?
Saving changes to objects:
http://www.djangoproject.com/documentation/db-api/#saving-changes-to-objects
Deleting objects:
http://www.djangoproject.com/documentation/db-api/#dele
On Tue, Jul 15, 2008 at 4:57 AM, Tim Sawyer <[EMAIL PROTECTED]> wrote:
> In my code, I did this:
>
> self.datetime = pForm.cleaned_data['datetime']
>
> the datetime parameter passed from the form only contained the date, with no
> time, so I assume the value in datetime then was only a date.
This
Hi,
On my site users must login with their email address. I'm successfully
using a custom authentication backend based on [1].
The problem is with email addresses longer than 30 characters. At the
moment, these addresses can't log in because the
django.contrib.auth.forms.AuthenticationForm's use
Hello,
I've set up apache to validate my users using PythonAuthenHandler as
described in the documentation
(http://www.djangoproject.com/documentation/apache_auth/). This part
works like charm :), but I would like to get a more fine grained
control over the accessed url (not served by django).
A
Sorry, I forgot to give the link:
[1] http://www.djangosnippets.org/snippets/74/
On Jul 15, 9:04 pm, Julien Phalip <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On my site users must login with their email address. I'm successfully
> using a custom authentication backend based on [1].
>
> The problem is
I must select a column from my database.
I've try with:
from PLAYER.models import Player
player = Player.objects.all()
email = Player.objects.values('email')
ok, work fine, but in the Django Book I read:
"This method is useful when you know you're only going to need values
from a small number
Hi,
I am experimenting with wsgi. I saw that this can be one way to enable it:
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
this seems a little strange to me setting something global to your
process. Is this best practice on the mod_wsgi world?
thx
Ian
--
http://ianlawrence.info
On Tuesday 15 Jul 2008, Arien wrote:
> On Tue, Jul 15, 2008 at 4:57 AM, Tim Sawyer <[EMAIL PROTECTED]>
wrote:
> > In my code, I did this:
> >
> > self.datetime = pForm.cleaned_data['datetime']
> >
> > the datetime parameter passed from the form only contained the date, with
> > no time, so I assu
Julien Phalip pisze:
> - create my own login view (duplicating the standard auth login view
> and replacing all the references to AuthenticationForm with my own
> custom form).
This will be easiest way IMO.
> None of these 2 options seem to satisfy me completely... What do you
> think is the be
If you're talking about modifying your model definitions and then
having those changes present in the backend database schema I don't
believe you'll be able to do that with Django automatically but you
can do it manually
Start with the section titled "Making Changes to a Database Schema" on
this
On Tue, Jul 15, 2008 at 7:25 AM, Tim Sawyer <[EMAIL PROTECTED]> wrote:
> In my form I have:
>
> datetime =
> forms.DateField(widget=forms.TextInput({'class' :
> 'date-pick'}),label="Available
> date")
>
> yet it's a DateTimeField in the model.
Why not use a DateTimeField in your form and change
On Jul 15, 9:54 pm, "Ian Lawrence" <[EMAIL PROTECTED]> wrote:
> Hi,
> I am experimenting with wsgi. I saw that this can be one way to enable it:
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
>
> this seems a little strange to me setting something global to your
> process. Is this be
I'm looking for a consistent way to format dates across my site,
without having to put the format into every template. Is it possible
to set a default date format for the "date" filter? For example, I
want {{ var.date|date }} to format to {{ var.date|date:"l, F j Y" }}
unless I specify otherwise
On Mon, Jul 14, 2008 at 7:48 PM, Kadusale, Myles <[EMAIL PROTECTED]> wrote:
> I don't want to use cookies because they can be disabled by the user.
Can you name a method of maintaining a session can't be altered or
changed by the user?
Brett
--~--~-~--~~~---~--~~
FWIW, authen/authz for Apache is much easier done in mod_wsgi. See:
http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms
I have given up trying to help people with mod_python authen/authz
because it is such a PITA. :-)
Graham
On Jul 15, 9:29 pm, "Viktor Nagy" <[EMAIL PROTECTED]> wro
On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote:
> Is this possible?
Not with the current date filter. You could make your own templatetag
that just wraps the existing one, though.
http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-tags
On Jul 15, 8:29 am, blis102 <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> On my Ubuntu server with Apache2 +mod_python, I cant seem to get
> the .py files to compile like they should (I see no .pyc files in my
> "src" folder like I do locally). I believe I have proper permissions
> set (775), but am
On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote:
>
> I'm looking for a consistent way to format dates across my site,
> without having to put the format into every template. Is it possible
> to set a default date format for the "date" filter? For example, I
> want {{ var.
On Mon, Jul 14, 2008 at 8:48 PM, Kadusale, Myles <[EMAIL PROTECTED]> wrote:
> I don't want to use cookies because they can be disabled by the user.
The alternatives I'm aware of are:
* recording the session ID directly in the URL of every page, which
just opens you up[1] to all sorts of problems
Thank you for the quick response - I think I'm going to go with the
custom filter for maximum flexability
On Jul 15, 9:25 am, "Brett Hoerner" <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote:
> > Is this possible?
>
> Not with the current date
Hi Djangoers,
I'm trying to generate a form dynamically using MyForm (Form class),
but I'm stuck with validating or populating data.
Form Class, View and template Code here: http://dpaste.com/65080/ (not
too many lines I guess :) )
Good thing is I can see form (generating dynamically, based on
Hi,
I wonder if I can access request object in html template or absolute
page url that currently rendering.
Thanks,
Nazmi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On Tue, Jul 15, 2008 at 8:40 AM, Marty Alchin <[EMAIL PROTECTED]> wrote:
> Is it really
> that bad a thing that users are in control of how they use your web
> site?
Exactly.
Users can change the URL more easily than they can delete a cookie, so
that one is effectively out (for his criteria). A
On Jul 15, 2008, at 9:55 PM, Nazmi ZORLU wrote:
> Hi,
>
> I wonder if I can access request object in html template or absolute
> page url that currently rendering.
If you're not using generic views, you can pass
"context_instance=RequestContext(request)" as a third argument to
render_to_re
Hello,
I have a model Investor associated with a model User. Now I'm
implementing the registration form.
I want to store the name of the Investor in the Investor model and the
rest of information in the User model. So I have username, password,
name and email.
I have a registration form in order t
I'm trying to install django for the first time.
I've read through at least 3 tutorials on how to install django and by
using parts of all three I managed to get the django files installed,
but I followed this command
>>> import django
I get
Traceback
File "", line 1, in
ImportEr
On Tue, Jul 15, 2008 at 9:27 AM, Ralph <[EMAIL PROTECTED]> wrote:
>
> I'm trying to install django for the first time.
>
> I've read through at least 3 tutorials on how to install django and by
> using parts of all three I managed to get the django files installed,
> but I followed this command
>
On Tue, Jul 15, 2008 at 9:58 AM, Arien <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 9:27 AM, Ralph <[EMAIL PROTECTED]> wrote:
>>
>> I'm trying to install django for the first time.
[...]
> What I do is this:
>
> 1. check out the svn version to some directory, for example
> c:\svn\django-
hi
I've got an IntegerField setup with a max_value of 20. I'm
wondering how to limit the initial input on the form field to no more
than 6 characters. They can enter 20 characters for example. When
they hit the submit button of course it will error out but i'd like to
limit the initial len
On Jul 14, 8:23 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> What order are you including them in the Apache configuration?
>
> Have you tried switching the order?
>
> Graham
I have tried. I thought if I placed the testproject directive first
it would short circuit things, but it didn't see
On Tue, Jul 15, 2008 at 10:30 AM, Bobby Roberts <[EMAIL PROTECTED]> wrote:
> I've got an IntegerField setup with a max_value of 20. I'm
> wondering how to limit the initial input on the form field to no more
> than 6 characters.
You can pass the fields widget an optional attrs keyword argume
Hallöchen!
In a display template (not a form, just display), I write the
following:
{% trans 'Temperature:' %}
{{ layer.heating_temperature }}
I'd like to use the verbose_name of the model instance instead of
hard-wiring the label in the template. How can I access it?
Tschö,
Torsten.
> some_field = forms.IntegerField(widget=forms.TextInput(attrs={'maxlength':
PERFECT! I missed that attrs dictionary in the form widgets... man
that is really awesome!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
Hi,
I'm using this simple template with flatpages:
{{ flatpage.title|escape }}
{{flatpage.title|escape}}
{{ flatpage.content|escape }}
I was expecting to see all accented chars in title and contents to be
displayed properly escaped, however,
On Tue, Jul 15, 2008 at 10:53 AM, Torsten Bronger
<[EMAIL PROTECTED]> wrote:
>
> Hallöchen!
>
> In a display template (not a form, just display), I write the
> following:
>
>{% trans 'Temperature:' %}
>{{ layer.heating_temperature }}
>
> I'd like to use the verbose_name of the model instanc
You're misunderstanding the role of the escape filter. It isn't meant
to create HTML entities for accented characters. All it does is escape
characters that could be dangerous for XSS attacks (" ' < > &). And by
the way, in the latest code, escaping is automatic, so you may not need
it at
thanks a lot Matt!
I'll fetch the dev version of Django instead.
I guess I was confused by the phrases "SVN release" and "official release". I
just thought the SVN release would be the official release :p
Thanks a log again
- Original Message
From: Matt McClanahan <[EMAIL PROTECTED]>
Thanks Joshua!
I'll fetch the dev version of Django instead.
I guess I was confused by the phrases "SVN release" and "official
release". I just thought the SVN release would be the official release
:p
Thanks a log again
- Original Message
From: Joshua Jonah <[EMAIL PROTECTED]>
To: djan
Brillant, it all works now.
Thanks Arien, you are a star.
Ralph
On Jul 15, 6:02 pm, Arien <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 9:58 AM, Arien <[EMAIL PROTECTED]> wrote:
> > On Tue, Jul 15, 2008 at 9:27 AM, Ralph <[EMAIL PROTECTED]> wrote:
>
> >> I'm trying to install django
On Tue, Jul 15, 2008 at 11:00 AM, Fernando Rodríguez <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm using this simple template with flatpages:
>
>
>
>{{ flatpage.title|escape }}
>
>
>
>{{flatpage.title|escape}}
>{{ flatpage.content|escape }}
>
>
>
>
> I was ex
Le 15 juil. 08 à 11:58, Andre Meyer a écrit :
> hi all
>
> like other people, i tried to get an offline copy of the django
> docs. so, running rst2html from docutils works fine, but there is a
> problem with the links (directing to the site instead of the local
> docs) and it looks a lot l
Hallöchen!
Arien writes:
> On Tue, Jul 15, 2008 at 10:53 AM, Torsten Bronger
> <[EMAIL PROTECTED]> wrote:
>
>> In a display template (not a form, just display), I write the
>> following:
>>
>>{% trans 'Temperature:' %}
>>{{ layer.heating_temperature }}
>>
>> I'd like to use the verbose_n
Hi,
I like the idea of seperating the.. "address space" of a website from
the templates. On the other
hand I'm keeping most of the content in the db and displaying through
the markup filter.
So I'm looking for a way to feed the url_bit in markdown's [link]
(url_bit "Title") to Django's {% url %}
On Tue, Jul 15, 2008 at 12:00 PM, Torsten Bronger
<[EMAIL PROTECTED]> wrote:
>
> Hallöchen!
>
> Arien writes:
>
>> On Tue, Jul 15, 2008 at 10:53 AM, Torsten Bronger
>> <[EMAIL PROTECTED]> wrote:
>>
>>> In a display template (not a form, just display), I write the
>>> following:
>>>
>>>{% trans
El mar, 15-07-2008 a las 12:25 -0400, Ned Batchelder escribió:
> You're misunderstanding the role of the escape filter. It isn't meant
> to create HTML entities for accented characters. All it does is escape
> characters that could be dangerous for XSS attacks (" ' < > &). And by
> the way
On Mon, 2008-07-14 at 23:30 -0700, django-m712 wrote:
[...]
> Has anyone else experienced this problem?
There are a few places in Django where we need to access all the models
in an app, for example. So we use __import__(), since that's the safest
way to do this. This is the same as calling relo
On Tue, 2008-07-15 at 00:38 -0700, Shantp wrote:
> Hi all,
>
> This seems like it will have an obvious answer but I did a lot of
> searching and can't find the answer. The timesince template tag
> returns 2 outputs like "2 days, 3 hours". How can I limit the output
> to only 1 thing?
By writing
Thanks for the reply. It does work! Doh! I had a stupid error. In
the middle template of the real templates, I had (%block layer_special
%) instead of {%block layer_special%}. Parens instead of curly
brace. Arg.
Once again, thanks for the help. To know that it SHOULD work helped
me find th
On Tue, Jul 15, 2008 at 12:22 PM, Fernando Rodríguez <[EMAIL PROTECTED]> wrote:
>
> El mar, 15-07-2008 a las 12:25 -0400, Ned Batchelder escribió:
>
>> You're misunderstanding the role of the escape filter. It isn't meant
>> to create HTML entities for accented characters. All it does is escape
>
First of all Apache will look through all the directives,
and the later ones overwrite the former ones. So you should definitely
put the more precise one at the bottom.
Probably your media files work, because you've added something like
urlpatterns += patterns('',
(r'^media/(?P.*)$',
> First of all, I want to say that I do not understand the relationship
> between forms and models in Django. A form to ask and a model to
> store? How to pass the form data to a model? Have I to pass it in
> order to validate?
There is not necessarily a relationship between the two. You are
cor
On Tue, 2008-07-15 at 19:22 +0200, Fernando Rodríguez wrote:
> El mar, 15-07-2008 a las 12:25 -0400, Ned Batchelder escribió:
>
> > You're misunderstanding the role of the escape filter. It isn't meant
> > to create HTML entities for accented characters. All it does is escape
> > characters
I've been trying to setup Django on Dreamhost and I haven't had much
luck. My latest error / problem is this:
django-admin.py
Traceback (most recent call last):
File "/home/username/projects/django/trunk/django/bin/django-
admin.py", line 2, in ?
from django.core import management
ImportErr
On Jul 15, 12:30 pm, V <[EMAIL PROTECTED]> wrote:
> First of all Apache will look through all the directives,
> and the later ones overwrite the former ones. So you should definitely
> put the more precise one at the bottom.
>
> Probably your media files work, because you've added something like
shyt, I was looking for these docs this morning!
thanks for the poinger Graham, it seems to be very detailed, and once
I forget the hassles I've survived today with mod_python, I'll
probably give it a try
btw, is there any reason why this documentation can't be found under
http://www.djangoproje
@Evert
Thanks for the information, Ill be looking into all that today.
@Graham,
So there is no speed increase in using compiled python than using just
strait python? So why is python ever compiled in the first place?
Thanks!
On Jul 15, 6:27 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On
El mar, 15-07-2008 a las 12:30 -0500, Arien escribió:
> Why do you need to use HTML entities for accented characters? What is
> the problem you're trying to solve?
>
Aren't you suposed to display accented chars and stuff like ¡ or ¿ as
html entities?
--~--~-~--~~~---
Dana wrote:
@Evert
Thanks for the information, Ill be looking into all that today.
@Graham,
So there is no speed increase in using compiled python than using just
strait python? So why is python ever compiled in the first place?
There is a speed increase-- it's just not that big in this sit
El mar, 15-07-2008 a las 10:33 -0700, Malcolm Tredinnick escribió:
>
> I'm definitely not saying you definitely don't need this, but make sure
> that you're doing it for the right reasons. Sending UTF-8 in all of it's
> non-entity-encoded glory is very normal practice.
OK, thanks. :-)
--~--
Hi,
is there a way to pass an argument from urls.py to inclusion tag?
For example, if I have a custom inclusion tag that prints some links
to some pages and I don't want it to print the link to the page I'm
currently visiting, how would I do it?
Let's say that I'm visiting a page /posts/2008. O
When I click the button to add a new Person object (one of my objects,
not the User object) in the admin interface, I receive the following
error in my console window:
ERROR: invalid input syntax for integer: "static_media/admin/js/
core.js"
STATEMENT: SELECT "person_person"."id", "person_perso
You have to pass the data into the form when instantiating it, eg:
form = MyForm(request.POST)
However, that means (for your example), the fields wouldn't exist yet--
move them into __init__ instead.
Some other things to note: you don't need to "title" and "email" to
the form dynamically--might
Ok I think I got it now.
Well, now to figure out why my application is eating up over 200mb's
of memory without any users...
Thanks,
Dana
On Jul 15, 11:08 am, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> Dana wrote:
> > @Evert
>
> > Thanks for the information, Ill be looking into all that today.
White forever, never loads in the browser. I have changed it today,
but i cannot figure out what i screwed up.
http://dpaste.com/hold/65163/
It makes a ton of checkboxes in four columns, it then adds blank
fields for new options until it is divisible by 4 so that it fits the
4 column layout righ
I am trying to deploy my app on the production server, however I am
having some issues.
The development server says:
http://dpaste.com/65164/
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "/usr/lib/python2.5/site-packages/django/core/man
Hallöchen!
Arien writes:
> On Tue, Jul 15, 2008 at 12:00 PM, Torsten Bronger
> <[EMAIL PROTECTED]> wrote:
>>
>> Arien writes:
>>
>>> On Tue, Jul 15, 2008 at 10:53 AM, Torsten Bronger
>>> <[EMAIL PROTECTED]> wrote:
>>>
In a display template (not a form, just display), I write the
follow
I have the following:
Model Person
Model Stat
Model Stat Value
Model Team
A Team has a set of Stats relevant to it. A person is on multiple
teams, and has stats for his/her performance on that team which are
stored as Stat Values. Stat values are unique by Person, Stats, and
Team.
I want to b
Correct link to mod_python error:
http://dpaste.com/65168/
--~--~-~--~~~---~--~~
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 t
On Tue, 2008-07-15 at 11:24 -0700, Alex wrote:
[...]
> So my view throws out a list of teams, filtered to the person and my
> template looks like this:
>
> {% for t in teams %}
> {% for s in t.getStats %}
> ** I WANT TO NOW DO SOMETHING LIKE: **
> {% for v in s.getStatValues(Person,s)
Post your settings.py and the changes you made in the httpd.conf/vhost.conf
Frantisek Malina wrote:
> Correct link to mod_python error:
> http://dpaste.com/65168/
> >
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
settings.py
http://dpaste.com/65171/
vhost.conf
http://dpaste.com/65172/
Not that these are short and sweet, but I am running a similar setup
on the local machine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
settings.py
http://dpaste.com/65171/
vhost.conf
http://dpaste.com/65172/
Not that these are short and sweet, but I am running a similar setup
on the local machine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
On Tue, Jul 15, 2008 at 2:19 PM, joshuajonah <[EMAIL PROTECTED]> wrote:
> White forever, never loads in the browser. I have changed it today,
> but i cannot figure out what i screwed up.
>
> http://dpaste.com/hold/65163/
>
> It makes a ton of checkboxes in four columns, it then adds blank
> fields
In your httpd.conf, there's this line:
SetEnv DJANGO_SETTINGS_MODULE httpdocs.settings
Is your project named "httpdocs"? thats should be the name of the
project. I'm guessing it should be "satchmo".
Frantisek Malina wrote:
> settings.py
> http://dpaste.com/65171/
>
> vhost.conf
> http://dpas
I dunno what's different, but I seem to have it working today. Maybe
I didn't restart Apache (I can be prone to dumb mistakes). Here's the
final httpd.conf:
SetHandler python-program
PythonPath "['C:/django-projects'] + sys.path"
PythonHandler django.core.handlers.modpython
Se
You're the man, and about the float() thing, i couldn't get it to work
before and that fixed it believe it or not.
I'm still having trouble with this but in another area, I'll dpaste a
bunch and post it.
Marty Alchin wrote:
> On Tue, Jul 15, 2008 at 2:19 PM, joshuajonah <[EMAIL PROTECTED]> wrot
For what it's worth, I finally came up with a simple working test for
views. My tests were written correctly all along, I just had to take
care of those errors related to the project settings. It never
occurred me to just set constants at the top of the test file, but
that's what worked.
impor
On Tue, Jul 15, 2008 at 1:22 PM, Torsten Bronger
<[EMAIL PROTECTED]> wrote:
> Arien writes:
>> You'll have to make layer._meta.verbose_name available to the
>> template under some other name.
>
> Unfortunately, I use model polymorphism and model inheritance in
> this case and can't pass anything b
Ok, here we go. I'm using the previous form to display lists of
categories of checkboxes *breath*.
Here it is: http://www.hftvnetwork.com/ProIn/
I'm having problems getting it to only show the amount of blanks it
needs, it looks like it closes the last column div and then outputs even
more bla
...and it is: if I were to switch my current django project over to
newforms-admin branch, would it break all of the old admin pages? Or
is there legacy support built in?
Thanks mucho in advance!
--~--~-~--~~~---~--~~
You received this message because you are sub
Project is in the folder httpdocs, in this folder there is a symlink
to satchmo.
settings.py, manage.py, urls.py... files are placed in the httpdocs
folder.
Can I set a project name to something else?
On 15. Júl, 20:48 h., Joshua Jonah <[EMAIL PROTECTED]> wrote:
> In your httpd.conf, there's thi
On Jul 15, 3:30 pm, Jason <[EMAIL PROTECTED]> wrote:
> ...and it is: if I were to switch my current django project over to
> newforms-admin branch, would it break all of the old admin pages?
Yes.
> Or
> is there legacy support built in?
It isn't. But the following snippet might help create q
On Tue, Jul 15, 2008 at 2:08 PM, Arien <[EMAIL PROTECTED]> wrote:
> Oh, I see, you want the verbose_name of each field. I suppose you
> could write a templatetag that you could use like this:
>
> {% verbose_name layer.heating_temperature %}
> {{ layer.heating_temperature }}
>
> After parsing th
Cleaned and documented the views.py file:
http://dpaste.com/hold/65184/
Joshua Jonah wrote:
> Ok, here we go. I'm using the previous form to display lists of
> categories of checkboxes *breath*.
>
> Here it is: http://www.hftvnetwork.com/ProIn/
>
> I'm having problems getting it to only show the
Disregard. Odd issue with my ADMIN_MEDIA_PREFIX.
On Jul 15, 2:13 pm, Huuuze <[EMAIL PROTECTED]> wrote:
> When I click the button to add a new Person object (one of my objects,
> not the User object) in the admin interface, I receive the following
> error in my console window:
>
> ERROR: invalid
> I've been trying to setup Django on Dreamhost and I haven't had much
> luck. My latest error / problem is this:
>
> django-admin.py
> Traceback (most recent call last):
> File "/home/username/projects/django/trunk/django/bin/django-
> admin.py", line 2, in ?
> from django.core import manag
Should I start with the nfa branch or with trunk and update the code when it
is merged? Is there risks of breakage in nfa? Other issues?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Hey fellow djanglers,
I am trying to construct a view that's a bit complicated, and
struggling to create the proper queryset. Hopefully some of you have
done something like this before, or otherwise have some ideas on how
to tackle it efficiently.
Imagine we have something like these models:
cl
1 - 100 of 121 matches
Mail list logo