try to set the collations of your database manually (e.g. using cocoamysql
on osx), using "utf 8".
hope that helps,
patrick
>
> i have been running through the tutorial and everything has been
> running fine.. (running macosx)..
>
> i found my first problem that i have not been able to figur
Dear Geert,
I entered {{ total_amount|stringformat:".2f" }} and it realy worked :-)
Actualy I red the STRINGFORMAT docu but I didn't get the clue. Now I
do...
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
i have been running through the tutorial and everything has been
running fine.. (running macosx)..
i found my first problem that i have not been able to figure out..
i am trying to create a superuser, and i am getting the following error
(any help on this is appreciated... thanks!):
Username (o
If I write:
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonPath "['/home/gacha/poll'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonDebug On
then I get error: EnvironmentError: Could not import
DJANGO_SETTINGS_MODULE
But when I change:
PythonPath
Amit Upadhyay wrote:
> . is django way of handling form is there is any, makes it more
> "portable", one less thing to change when you are relocating your
> pages on your site, and your template need not know the actual page
> where the form would be deployed.
In fact tutorial could easily us
On 3/10/06, Gavin <[EMAIL PROTECTED]> wrote:
I want expenditures to be a ForeignKey, but I want to create it basedon values entered (num_units * unit_cost, account).My question: How can I create a foreign key based on the values enteredfor other fields?
_pre_save() is a function that if you define
thanks for the refs, i'll get reading :)
--~--~-~--~~~---~--~~
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/10/06, Gavin <[EMAIL PROTECTED]> wrote:
I can compute these values by inspecting both the Orders and Reimbursetables. Is that the best way?Rule 1 of database design - Don't replicate data. Ever. You need to have a serious look at your requirements, and make sure that any given datum has one, a
I want to display a grid view of some of the data from a large
database. I want to manipulate each data row prior to displaying it,
so I can't just let the template code do the database read work. Since
the dataset is potentially large, what I want to do is write an
iterator which will read the
On 3/10/06, Matt <[EMAIL PROTECTED]> wrote:
>
> OK, I was confused about why Django still needs usernames in its
> database even though LDAP is the new authentication method. I thought
> it would require authenticating via LDAP, then checking for the user
> _and_ pass in Django's database. I did
You're absolutely right, I could simply compute those values as
required. I also confess to not having very much dbase design
experience so your commentary is valuable. My question was also partly
motivated by the documentation on the _pre_save method, which seemed to
suggest it might serve my pur
On Thu, 2006-03-09 at 17:20 -0800, Gavin wrote:
> thanks for the reply, let me modify your example.
>
> class Account(Model):
>owner = CharField()
>
> class Reimburse(Model):
> price = FloatField()
> count = IntegerField()
> account = ForeignKey(Account)
> expenditure = Forei
thanks for the reply, let me modify your example.
class Account(Model):
owner = CharField()
class Reimburse(Model):
price = FloatField()
count = IntegerField()
account = ForeignKey(Account)
expenditure = ForeignKey(Expenditure) # diff
class Expenditure(Model):
cost = Floa
Hi all. Standard opening disclaimer: I'm working on my first django
app (0.91), I've read through djangoproject docs, searched around, and
I still have a question.
I'm trying to modify a value between the database and the Admin view so
that I can store things one way and display them to Admins a
On 3/10/06, Gavin <[EMAIL PROTECTED]> wrote:
My question: How can I create a foreign key based on the values enteredfor other fields? I can't help but feel that I'm missing some subtlety in your requirements, but here's a rough example (exact field details, namespaces etc ommitted for clarity):
***
On 3/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:"python manage.py runserver command" works, but "python
manage.py init"doesn't work - it fails with error message "The database couldn't beinitialized. an integer required". I am sure I set up database settingscorrectly :-/.Suggest me please
This trouble was gotten by trying to run first tutorial.
--~--~-~--~~~---~--~~
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
I got an archive and installed Django on my Windows machine. I set up
settings to
DATABASE_ENGINE = 'mysql' # 'postgresql', 'mysql', 'sqlite3' or
'ado_mssql'.
DATABASE_NAME = 'django' # Or path to database file if
using sqlite3.
DATABASE_USER = 'root' # Not used with sqlit
Thank you, Josef!
--~--~-~--~~~---~--~~
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 email to [EMAIL PROTECT
On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Could talk how many web sites (at least, some famous) are done with
> Django?
There's a list on Django's homepage http://www.djangoproject.com/
And also on the wiki http://code.djangoproject.com/wiki/DjangoPoweredSites
Joseph
--~--~
OK, I was confused about why Django still needs usernames in its
database even though LDAP is the new authentication method. I thought
it would require authenticating via LDAP, then checking for the user
_and_ pass in Django's database. I didn't realize that I will only
have to copy the username
Thanks for your response and sorry about the cryptic nature of the
query.
In my model I have a table class (Reimburse) that records an items'
unit price, the number of items bought and an account (a ForeignKey)
from which the cost (unit price * number of items) will be recorded
against. I want to
Sorry my English please, I'd like to say "could you tell" :)
--~--~-~--~~~---~--~~
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 fr
Hello, there!
Let's greet you and let me my Django questions :).
Could talk how many web sites (at least, some famous) are done with
Django?
Thanks in advance,
Nicolay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Just found out that ForeignKeyField also accepts the model *name*
instead of the model itself. Might solve the problem if this really
works out :-)
Michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django u
On 03/09/06 11:47, tomass wrote:
> Hi Folks,
>
> I've copied the admin css to be used for my views, but I've added in
> this custom section which is a modified version of the FILTER COLUMN
> from changelist.css:
>
> /* FILTER COLUMN (CUSTOM VERSION) */
>
> #changelist-filter-custom {position:
Rock schrieb:
> Search for "forward reference" in this group. (Basically you cleverly
> locate your import statement inside a function call.)
I found your thread at:
http://groups.google.com/group/django-users/browse_thread/thread/71fc72ab1f547d3/4d0dbfdfd9dc8a05?q=%22forward+references%22&rnum=
>Another issue that would create problems is
>adding users to LDAP directly -- Django wouldn't know about those users
Yes, but you create the user in django on login attempts to django
sites.
If LDAP auth successfukl:
search user DB
if not found:
add usert to db based on ldap pertmissi
Search for "forward reference" in this group. (Basically you cleverly
locate your import statement inside a function call.)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Sure that would work, but it sounds like a lot of work, and it's
duplicating a lot of data. Another issue that would create problems is
adding users to LDAP directly -- Django wouldn't know about those users.
--~--~-~--~~~---~--~~
You received this message becaus
okl wrote:
>
> im new to python web framework, may i know whats the purpose of the
> file?
You can find all gory details in Python tutorial:
http://docs.python.org/tut/node8.html#SECTION00840
I suggest to read the whole tutorial --- it reasonably small and gives a
very good ov
On 3/9/06, okl <[EMAIL PROTECTED]> wrote:
>
> hi there,
>
> im new to python web framework, may i know whats the purpose of the
> file?
Required so you can treat directories as Python packages, and do the
"import django.models.dir" trick.
"The __init__.py files are required to make Python trea
hi there,
im new to python web framework, may i know whats the purpose of the
file?
thanks
--~--~-~--~~~---~--~~
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@go
Laurent RAHUEL wrote:
> Ooops,
>
> It should be :
>
> class Derived(Parent):
>
> def _pre_save(self):
> do_some_other_things_here
> self.my_method()
>
> Indentation problem ;-)
Thanks Laurent, but there was a typo in my original post !-)
It
Hi,
I try to throw django on an existing database. Unfortunately, there are
cyclic foreign key dependencies between tables, and I'm looking for a
way to express this in the model. (I use the magic-removal branch from cvs).
Is there a way? Something like
class Bah(Models.model):
...
c
bruno desthuilliers wrote:
> hello hello
>
> I must be a bit dumb, but I find myself a bit stucked with model
> subclassing. Here's the problem: how does one call on the superclass
> method when extending this method in the subclass ? ie:
>
> class Parent(meta.Model):
>
> def my_method(
> If it was my decision I'd simply use Django's authentication.
> Unfortunately it's my supervisor's decision, and he wants me to use
> LDAP _exclusively_ so that's what I have to do.
>
> I don't know much about LDAP, but from what I understand users can be
> grouped based on their level of access
On 3/9/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
see http://www.djangoproject.com/documentation/forms/ in the finishedversion of the "create_form" template it uses "action="" with no
trailing slash.A . means the current page, and given the page was generated by django, which always adds a / to al
If it was my decision I'd simply use Django's authentication.
Unfortunately it's my supervisor's decision, and he wants me to use
LDAP _exclusively_ so that's what I have to do.
I don't know much about LDAP, but from what I understand users can be
grouped based on their level of access. For exam
thanks, that seems to work.
having trouble understanding what this core=True is actually meaning.
-E
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django
Hi,
blank=True should allow you to submit a partially-filled form, but you
have a lot of core=True fields in there as well, perhaps you have too
many? From the Model Reference documentation
http://www.djangoproject.com/documentation/model_api/;
core
For objects that are edited inline to a related
hi,
I use the class below to define molecule properties:
In the admin interface I get a nice mol_properties table to fill, but
the values
are only accepted if I enter values for all columns of the table. Is
this
correct behaviour? What can I do to make it accept a partially filled
in table?
cl
On Thu, Mar 09, 2006 at 11:21:38PM +0800, limodou wrote:
> Please check this document http://code.djangoproject.com/wiki/NewbieMistakes
> It seems that you lost a '/' after action name "rated".
Whoa! Thanks!!!That did it!
I never even thought of that because my url pattern had a "rated/$"
What is happening is that Django is redirecting your request from "rating" to "rating/" (which is the correct location). Unfortunately POST information is lost in this redirect.
On 3/9/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
I've taken a working template and a working detail view and addeda fo
Whats the problem with faking a user ?
I would reccomend during you LDAP auth code you simple create a user in
django.users if it doesnt already exit. This can be compeltly
transparent to the user, they will never know.
I tend to like to have to setup users to my small admin sites, cause
everyon
Please check this document http://code.djangoproject.com/wiki/NewbieMistakes
It seems that you lost a '/' after action name "rated".
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~
I've taken a working template and a working detail view and added
a form to that template AND another view to handle that form when
submit gets clicked.
In my template I've got:
Rating:
and that view's code is:
def place_rated(request, app_label, module_name, object_id=None,
template_n
Ooops,
It should be :
class Derived(Parent):
def _pre_save(self):
do_some_other_things_here
self.my_method()
Indentation problem ;-)
Laurent
Le Jeudi 9 Mars 2006 14:21, Laurent RAHUEL a écrit :
> Le Jeudi 9 Mars 2006 12:58, bruno desthuilli
Le Jeudi 9 Mars 2006 12:58, bruno desthuilliers a écrit :
Hi,
> hello hello
>
> I must be a bit dumb, but I find myself a bit stucked with model
> subclassing. Here's the problem: how does one call on the superclass
> method when extending this method in the subclass ? ie:
>
> class Parent(meta.
hello hello
I must be a bit dumb, but I find myself a bit stucked with model
subclassing. Here's the problem: how does one call on the superclass
method when extending this method in the subclass ? ie:
class Parent(meta.Model):
def my_method(self):
do_something_here
class Derived
Hi Folks,
I've copied the admin css to be used for my views, but I've added in
this custom section which is a modified version of the FILTER COLUMN
from changelist.css:
/* FILTER COLUMN (CUSTOM VERSION) */
#changelist-filter-custom {position:absolute; top:0; right:0;
width:180px; border-left:
Is there a way to get an object's content_type_id?
I need it to store an object's id and content_type_id in another table.
Currently I solved this by using an sql-statement but maybe there is
some 'hidden' property or function like:
self.content_type or self.get_content_type
--~--~-~--
52 matches
Mail list logo