On the second page where you add the polls to the admin section.
Already added in the polls and the settings.py file, and logged into
admin, so admin does work.
When i added admin into the models.py file per tutorial it does not
show up on the admin screen. tried logging in an out, clear cache et
Hi Kamil,
we run a few dedicated linux servers in the uk with django enabled.
(we are a limited vat registered company).
Send me an email if you are interested. (oliver at base360 dot com) or
this gmail will do.
oli.
On Mar 27, 4:30 pm, "kamil" <[EMAIL PROTECTED]> wrote:
> Hi. Somebody knows i
On Wednesday 28 March 2007 10:47, wheresdave wrote:
> On the second page where you add the polls to the admin section.
> Already added in the polls and the settings.py file, and logged into
> admin, so admin does work.
>
> When i added admin into the models.py file per tutorial it does not
> show
Thank you for the prompt reply, unfortunately that is not the case.
Sorry for the not checking spacing before I posted. the class does
line up with question in my editor (scite).
For something that is supposed to be so easy to learn, this basic
tutorial sure is frusterating.
On Mar 28, 2:32 am,
got it fixed. Whitespace was showing up before pass. found the setting
in scite to show whitespace.
On Mar 28, 2:47 am, "wheresdave" <[EMAIL PROTECTED]> wrote:
> Thank you for the prompt reply, unfortunately that is not the case.
> Sorry for the not checking spacing before I posted. the class doe
Hello everyone,
I have a field with a tinymce editor, so it saves html tags inside
the field and this text is send by e-mail with an html and an
alternative text version. So, I have to remove all the <> tags, how can
I get this in place of putting all possible html code that I can
remember
I finally realized that simply inheriting a model will not work like I
expected. For example:
from django.core import validators
from django.contrib.auth.models import User as OldUser
from django.db import models
class User(OldUser):
def __init__(self, *args, **kwargs):
super(User,
In Django admin entering the following quote chars 'copy paste' in a
textarea field gives this error... "Data truncated for column ..."
How can this be? And what is the solution for this nasty problem.
Because people wil copy and paste out of MS Word etc...
The database is latin1 as stander
While this probably has to do with the setup of my machine, I wonder
if anyone has seen this before (I am using Postgesql 7.4.13 and
psycopg2):
mydir# python manage.py syncdb
Loading 'initial_data' fixtures...
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manage
Lars Wessman wrote:
> While this probably has to do with the setup of my machine, I wonder
> if anyone has seen this before (I am using Postgesql 7.4.13 and
> psycopg2):
>
> mydir# python manage.py syncdb
> Loading 'initial_data' fixtures...
> Traceback (most recent call last):
> File "manage.py
On Wed, 2007-03-28 at 04:32 -0700, Lars Wessman wrote:
> While this probably has to do with the setup of my machine, I wonder
> if anyone has seen this before (I am using Postgesql 7.4.13 and
> psycopg2):
there is no rsplit method on strings in python2.3. It was only
introduced in python 2.4. Eve
I would like to use the development version in creating life websites
So if i make svn update does this affect my projects
and if so shall i use the stable version instead??
Thank you in advance;
Mary Adel
--~--~-~--~~~---~--~~
You received this message because
On 28/03/07, Mary <[EMAIL PROTECTED]> wrote:
>
> I would like to use the development version in creating life websites
> So if i make svn update does this affect my projects
>
> and if so shall i use the stable version instead??
>
My recommendation would be to use the development version. No majo
Hello,
I followed step 4 from http://www.djangobook.com/en/beta/chapter21/
mysite works, but mysite3 goes not.
Is the instructions wrong?
Thanks
Frank
ServerName cmcfrocco.stemc.org
SetHandler python-program
PythonPath "['C:\djangoapps'] + sys.path"
PythonHandler django.
On 3/28/07, Michael <[EMAIL PROTECTED]> wrote:
>
> On Mar 28, 4:07 pm, "Michael" <[EMAIL PROTECTED]> wrote:
> > In the mean-time, another method which seems to be used by the admin
> > interface is to create your own template tag (using simple_tag).
>
> Actually, just found what looks like a bette
I've run into a similar problem (error: "columns app_label, model are
not unique").
I've found a work-around:
- delete the database
- recreate the db from your model (using syncdb)
- edit the XML (from dumpdata), removing all but your data
(i.e. keep instances only, since your model is already in
Is there a way of accessing fields of a model?
I have
class Position(models.Model):
class Person(models.Model):
position = models.ForeignKey(Position)
Now, I'd like to get to this position member. Is there another way
besides the following *oh my*:
Person._meta.get_field('positio
On Wed, 2007-03-28 at 13:57 +0100, Frankie Robertson wrote:
> On 28/03/07, Mary <[EMAIL PROTECTED]> wrote:
> >
> > I would like to use the development version in creating life websites
> > So if i make svn update does this affect my projects
> >
> > and if so shall i use the stable version instead
jj schrieb:
> I've run into a similar problem (error: "columns app_label, model are
> not unique").
>
> I've found a work-around:
>
A easier way is to use db_dump.py ;)
Look at:
http://groups.google.com/group/django-users/browse_thread/thread/342efea6e3fc693d/a6807b7770b6b165
--
Mfg.
Je
On Wed, 2007-03-28 at 07:10 -0700, Jiri Barton wrote:
> Is there a way of accessing fields of a model?
>
> I have
>
> class Position(models.Model):
>
>
> class Person(models.Model):
> position = models.ForeignKey(Position)
>
> Now, I'd like to get to this position member. Is there
www.icq6.drix.co.il cool
--~--~-~--~~~---~--~~
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
Why, I thought Person.position would be the straightforward way. I
mean that was the first thing that came to my mind - I have a class
and its attributes. So, the class name + dot + the class attribute
name.
I thought, well, if Django can detect I'm accessing a class attribute
and throw an excep
Basically, I have django create the table and the snippet from models.py is:
ExecutionStartDate = models.DateTimeField(verbose_name = "Start Date")
And, then I have python load script which is loading the data with simple
insert statements:
The data in the input file is
created = 22 Nov 2006 1
Is there anyway to populate a choicefield after a form submission.
Once a user changes a choice in one select box, I want the form to
submit and then populate a different select box based on what they
chose. I have a choicefield with a list of countries. Once the user
chooses a country I want all
>> app/templates/{various top-level templates}
>> app/templates/help/help_base.html
>> app/templates/help/particular_help.html
>>
>> In particular_help.html I have to use
>>
>> {% extends "help/help_base.html" %}
>>
>> rather than a relative
>>
>> {% extends "help_base.html" %}
>
> Having a q
On 3/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Basically, I have django create the table and the snippet from models.py
> is:
>
> ExecutionStartDate = models.DateTimeField(verbose_name = "Start Date")
>
> And, then I have python load script which is loading the data with simple
> in
On Mar 27, 5:10 pm, "tyman26" <[EMAIL PROTECTED]> wrote:
> I guess a simpler quesiton would be: How can I populate a text box
> dynamically with information from the post from the same form? Or is
> there maybe another way to accomplish this possibly with a custom
> inclusion tag? Any help woul
How would you go about reloading the page? Would you submit the form
and post the information back again? I guess I'm having trouble
figuring out how to reload the page and keep the same information that
was previously there, plus load the states in the select box.
On Mar 28, 12:48 pm, "[EMAIL
I'm just now starting a django project, but I've used rails for quite
some time now, and they have an extremely awesome templating system -
haml (http://haml.hamptoncatlin.com/) - every other templating
language seams pitifully ugly by comparison, just take a look at it!
Anyway, I was wondering if
Hello, is there something to use for long time periods like 30 hours or 2
years, which can be displayed as time?
(well, it can be stored as integer and then somehow printed, but is some
model.Field for it already? Or will be in the near future?)
I want to store and display something like
use |striptags
Udi
On Mar 28, 3:31 am, Anderson Santos Silva <[EMAIL PROTECTED]>
wrote:
> Hello everyone,
>
>I have a field with a tinymce editor, so it saves html tags inside
> the field and this text is send by e-mail with an html and an
> alternative text version. So, I have to remove al
Hellow,
Any advice you can offer on optimizing this view would be greatly
appreciated.
http://dpaste.com/7543/
I was planning on trying to reduce the amount of data in pForms, the
list that is passed to the template. Since i'm saving 19
presentations into this list along with the forms, i'm as
I want to manage users through the default Admin application, but I
need to be able to use an email address as the username. I've searched
the forums to no avail, modified validation code to allow
isAlphaNumericURL, to no avail. Any direction would be appreciated.
Thanks.
--Thom
--~--~-
www.icq6.drix.co.il
--~--~-~--~~~---~--~~
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 PROTE
See this Django Snippet by Chris:
http://www.djangosnippets.org/snippets/74/
--~--~-~--~~~---~--~~
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
Thanks for pointing me to the snippets, however, this doesn't seem to
work in the built in Admin Application. Any other thoughts?
--Thom
On Mar 28, 2:37 pm, "RajeshD" <[EMAIL PROTECTED]> wrote:
> See this Django Snippet by Chris:
>
> http://www.djangosnippets.org/snippets/74/
--~--~-~-
I'm moving data from another database and when I try to populate the
relational table created by django as a result of a ManyToMany field,
I run into a unique constraint error:
duplicate key violates unique constraint
"main_msgpost_users_msgpost_id_key"
msgpost_users is
On Mar 28, 5:15 pm, "Thom" <[EMAIL PROTECTED]> wrote:
> Thanks for pointing me to the snippets, however, this doesn't seem to
> work in the built in Admin Application. Any other thoughts?
Actually, that should work from the Admin application too. The Admin
app uses the same set of authenticatio
Never mind, I think I figured this out. There were some duplicate rows
in the imported data which was probably causing the error. The old
system let a couple slip through and now I have to clean up.
--~--~-~--~~~---~--~~
You received this message because you are s
OK, so here is some code, because I tried this and still no go;
in my project settings.py I have this code:
AUTHENTICATION_BACKENDS = (
'pi.apps.email-auth.EmailBackend',
'pi.apps.authenticate.LDAPAuthenticate',
'django.contrib.auth.backends.ModelBackend',
)
I put the email-auth.py in my APP
Starting to play around with newforms and I am trying to create a form
with fewer fields than the model and post-fill those fields in the view.
With the following example models and form:
class Book(models.Model):
author = models.CharField(maxlength=100, blank=True)
title = models.C
If anyone cares, I fixed it with a tiny little mod_python handler:
---
from mod_python import apache
def requesthandler(req):
req.uri="/tools%s"%req.uri
return apache.OK
On 3/25/07, Ross M Karchner <[EMAIL PROTECTED]> wrote:
> Hello--
>
> I'm running a dj
I am currently creating a query set of a Model. I'm then iterating
through the query set to create a calculation called "total".
At the end of each loop I am adding "total" to the query set. Example:-
qs= Cash.objects.all()
for i in qs:
# calculate total
i.total = total
Note: The Cash
Are You In Christ, and Prayer Language joel2, ezekiel 38,39.
There may be some controversy in mel gibson's movie the passion of
christ, but one thing is not a controversy and that is being IN
Christ. If you are you would know it. Its like being hit with
lightning.
In Him was Life: and the Life
On 3/28/07, jj <[EMAIL PROTECTED]> wrote:
> Couple of suggestions:
> - django's XML parser should really allow spaces and newlines
It does accept whitespace, in certain places. You should also remember
that depending on the schema, whitespace can be significant in XML
documents.
> - it should b
On 3/29/07, IvanK <[EMAIL PROTECTED]> wrote:
>
> I'm just now starting a django project, but I've used rails for quite
> some time now, and they have an extremely awesome templating system -
> haml (http://haml.hamptoncatlin.com/) - every other templating
> language seams pitifully ugly by compari
On 3/29/07, Gilhad <[EMAIL PROTECTED]> wrote:
>
>
> Hello, is there something to use for long time periods like 30 hours or 2
> years, which can be displayed as time?
> 240:00:00 (alternatively 10d 00:00:00)
Does the timesince filter do what you require?
Yours,
Russ Magee %-)
--~
On 3/29/07, Merric Mercer <[EMAIL PROTECTED]> wrote:
>
> I am currently creating a query set of a Model. I'm then iterating
> through the query set to create a calculation called "total".
This really is something that should be done using an aggregate clause
(SUM(), GROUP BY) on the database sid
2007/3/28, Merric Mercer <[EMAIL PROTECTED]>:
>
> I am currently creating a query set of a Model. I'm then iterating
> through the query set to create a calculation called "total".
> At the end of each loop I am adding "total" to the query set. Example:-
>
> qs= Cash.objects.all()
> for i in qs:
Thom wrote:
> OK, so here is some code, because I tried this and still no go;
>
> in my project settings.py I have this code:
>
> AUTHENTICATION_BACKENDS = (
> 'pi.apps.email-auth.EmailBackend',
> 'pi.apps.authenticate.LDAPAuthenticate',
> 'django.contrib.auth.backends.ModelBackend',
> )
>
> I
On Wed, 2007-03-28 at 19:59 +, Milan Andric wrote:
> Hellow,
>
> Any advice you can offer on optimizing this view would be greatly
> appreciated.
>
> http://dpaste.com/7543/
>
> I was planning on trying to reduce the amount of data in pForms, the
> list that is passed to the template. Sinc
I'll try it with just the one backend, but maybe I haven't explained my
problem correctly.
In the Admin application there is a link to Users. When clicking on Users, I
am presented with a list of records from the auth_users table. I click on
Add New User, attempt to put [EMAIL PROTECTED] as the US
Hi,
I have question about how to tell django (manage.py test) to
use sqlite3 to run unit testing even if in real settings set database
engine to sometinhg.
Thank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
On Wed, 2007-03-28 at 21:25 -0700, [EMAIL PROTECTED] wrote:
> Hi,
>
> I have question about how to tell django (manage.py test) to
> use sqlite3 to run unit testing even if in real settings set database
> engine to sometinhg.
Pass in your customised test settings file. This file could i
I think I saw a get_or_create race condition today from concurrent
runs of our data uploader that uses the model API. Ouch. The docs
have several references to the api calls being atomic - now I'm
thinking get_or_create is an exception. And I'm guessing lots of
other people already know this.
Malcolm Tredinnick wrote:
> On Wed, 2007-03-28 at 21:25 -0700, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I have question about how to tell django (manage.py test) to
> > use sqlite3 to run unit testing even if in real settings set database
> > engine to sometinhg.
>
> Pass in your customi
Hi all
Im trying Michael's suggestion quoted below for a custom tag but it's not
working so
I have tried a very very minimal one and it's not working either.
In app/templatetags/template_extensions.py I have
from django.template import Library
register = Library()
def mytag():
I came up with a general solution for PyCon (http://us.pycon.org/
apps07/schedule/)
The source code is here:
https://svn.python.org/conference/django/trunk/pycon/templatetags/appmedia.py
https://svn.python.org/conference/django/trunk/pycon/urls.py (for
the dev server to serve up the static file
Looks like Django requires PythonMagick which isn't in the Ubuntu
package manager. Anybody here using Django on Ubuntu? How should I
go about installing PythonMagick?
Thanks, pablos.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Django does not require PythonMagick.
It is recommended you install PIL, but that also is not a requirement.
What exactly is your error?
-Doug
On Mar 29, 2:10 am, Pablos <[EMAIL PROTECTED]> wrote:
> Looks like Django requires PythonMagick which isn't in the Ubuntu
> package manager. Anybod
On 29-Mar-07, at 11:40 AM, Pablos wrote:
> Looks like Django requires PythonMagick which isn't in the Ubuntu
> package manager. Anybody here using Django on Ubuntu? How should I
> go about installing PythonMagick?
what does it use pythonMagick for?
--
regards
kg
http://lawgon.livejournal.c
does nobody have an idee how this happens? when inserting these chars �
� I get the error Data truncated for column
Op woensdag 28-03-2007 om 13:18 uur [tijdzone +0200], schreef enquest:
> In Django admin entering the following quote chars � � 'copy paste' in a
> textarea field gives this error..
Hello everyone,
I am quite a newbie to django. In my app, users add comments -
descriptions to objects - book. Before the comment is written into
database, it is previewed by the user. I've created the solution, but
i think it is way too large. Here is the code: http://dpaste.com/7571/
Thank you
Multi language,Perfect game
http://www.travian.com.tr/?uc=tr2_11801
--~--~-~--~~~---~--~~
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 unsubs
www.icq6.drix.co.il
--~--~-~--~~~---~--~~
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 PROTE
65 matches
Mail list logo