Say you're using Django to offer a public RESTful API (in addition to
the normal HTML output) and want to generate developer documentation
for the API part. Most Python doc-generation tools are designed to
scan for Python classes and functions. But that's not what you're
exposing to the consumers
I think Flash/Flex works great. As a Web Display Technology, it's
superior to HTML/CSS in most ways except for textual information. I
wouldn't say using Flash/Flex is painless, but it certainly is potent.
That's my 2 cents.
--~--~-~--~~~---~--~~
You received thi
Er, no, I don't own any IRC channel on freenode :)
#django still isn't registered, we need one of the devs to do that
before anyone can get op status and actually do anything
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
If you are interested, here is a simple Wiki I threw together a few
weeks ago that allows html markup. I am still somewhat of an amateur,
so there are probably a thousand better ways to do this, but feel free
to use it as an example.
URLs
urlpatterns += patterns('project.wiki.views',
(r'^wi
Your best bet is to take the responsibility of data entry away from
the admin interface, and just write your own. You can hook into
generic views (which contains a basic set of create/update/delete
views for data entry) and user permissions (if you want to specify
whether users can do certain thin
hi everyone fellow django users
While I am having fun with django, but not with html/css/javascript (I
am very bad at it). Any recommendation on making the presentation/view
much painless. I am thinking of something like google web toolkit but
this could mean a lot of work since the gwt is java a
On Nov 27, 3:21 pm, David Reynolds <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I've just noticed that the irc channel has lost the mode that lets
> anyone set the topic, so now only ops can do it. However, there
> doesn't seem to be any ops. Is anyone able to fix it? I wanted to
> add something about th
On Nov 27, 8:32 pm, PlanarPlatypus <[EMAIL PROTECTED]>
wrote:
> Does anyone know of a clean way to do partial validation in djangos
> newforms. I am basically after a cleaner way to do something like the
> code below.
A clarification...what do you mean by partial validation? Does it mean
that yo
Django forms are just form elements, not the whole form. The easy
approach is to split your form into several django forms, and process
them separately in the view. If you have multiple instances of the
same form class you can keep them identified by using a prefix when
you instantiate each (you
> baseForm = forms.form_for_model( MyModel )
> class Form ( baseForm ):
> extra_field = forms.CharField()
>
> I'd like to have the fields defined in MyModel and add the
> extra_field, but it doesn't work.
> Besides, I'd like to have a clear example about how to use the forms
> with files (File
On Nov 28, 6:27 am, walterbyrd <[EMAIL PROTECTED]> wrote:
> I like wikis for quickly editing and organizing documents online. I
> hate everything else about wikis - especially markup languages that
> are not compatible with anything else.
Django has a contrib app called "markup" that has support
On Nov 28, 6:42 am, [EMAIL PROTECTED] wrote:
> Hello,
>
> It would be very helpful to know if the Django Dev. team has any plans
> to include support for
> Pylucene/ Django.contrib.search feature in the near future?
There is already a branch that has been created for addding
FullTextSearch capabi
Thanks again. I will have a look tommorow, since it's bed time now :-)
--~--~-~--~~~---~--~~
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
Hello,
It would be very helpful to know if the Django Dev. team has any plans
to include support for
Pylucene/ Django.contrib.search feature in the near future?
Thanks, VK
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
On 28-Nov-07, at 6:57 AM, walterbyrd wrote:
> Would it be difficult to develop a django app that could edit an
> online document, or a part of that document, and easily create and
> organize new docuemnts?
no
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Foss Con
On 28-Nov-07, at 6:41 AM, Kurdy wrote:
> Thanks for the reply, kg. But you're far too fast for me :-(
>
> Is this part of newforms implemented yet, or is it to be released?
> (I am using the latest (last oct) svn version)
>
> Do you please have any more explanation and preferably some examples?
I like wikis for quickly editing and organizing documents online. I
hate everything else about wikis - especially markup languages that
are not compatible with anything else.
Would it be difficult to develop a django app that could edit an
online document, or a part of that document, and easily c
On 11/27/07, Eratothene ([EMAIL PROTECTED]) wrote:
>
>Hi django users!
>
>I have two simple models: Blog and Article.
>class Blog(models.Model):
>title = models.CharField()
>content = models.TextField()
>user = models.ForeignKey(User)
>
>class Article(models.Model):
>title = model
Thanks for the reply, kg. But you're far too fast for me :-(
Is this part of newforms implemented yet, or is it to be released?
(I am using the latest (last oct) svn version)
Do you please have any more explanation and preferably some examples?
--~--~-~--~~~---~--~---
To continue this monolouge I worked around the problem by omitting the
Context object and render the page with locals() instead.
This called for unsetting all "private" variables in the view.
It would however be interesting to figure out what went wrong...
cheers
--~--~-~--~~
On 28-Nov-07, at 3:18 AM, Kurdy wrote:
> What I'm after is creating a multiple record form to maintain a
> master-
> detail model/table (i used to be an oracle programmer).
> So I want to be able to show fields in a row (I'm thinking of using a
> list and css to make that possible).
> And then
On 27-Nov-07, at 7:48 PM, Manakel wrote:
> Where should i implement the mapping that should be dynamic?
> (ie when a new qualification is found, it tries to find template and
> forms based on name without manual change into the code)
include - if somecondition then include some template
--
r
Additionally a full:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py",
line 81, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/var/lib/django/djangoweb/nature/apps/store/views.py", line
567, in s
Hi
This error started to show up on single page after the 2007-11-12
version of files in django/template/
Exception Value:'Context' object has no attribute 'push'
Exception Location: /usr/lib/python2.4/site-packages/django/template/
loader_tags.py in render, line 19
from debug:
Tr
SmileyChris wrote:
> On Nov 26, 1:03 pm, LorenDavie <[EMAIL PROTECTED]> wrote:
>
>> Not sure if SmileyChris is this guy, but I've had good success with
>> this project:
>>
>> http://www.aswmc.com/dbmigration/
>>
>
> As Mike H said, dbmigration is his project (my DBEvolution project did
> s
Thank you for this, I had an idea that I could do this, was just
wondering if there was a "generic view" way of doing it.
Sawan
On Nov 27, 9:19 pm, "Jonathan Buchanan" <[EMAIL PROTECTED]>
wrote:
> On Nov 27, 2007 3:07 AM, Sawan V <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hello,
>
> > Is there any
On Nov 26, 1:03 pm, LorenDavie <[EMAIL PROTECTED]> wrote:
> Not sure if SmileyChris is this guy, but I've had good success with
> this project:
>
> http://www.aswmc.com/dbmigration/
As Mike H said, dbmigration is his project (my DBEvolution project did
some of the "automatically generated migrati
Hello, it seems that when I create this code, doesn't work as
expected.
baseForm = forms.form_for_model( MyModel )
class Form ( baseForm ):
extra_field = forms.CharField()
I'd like to have the fields defined in MyModel and add the
extra_field, but it doesn't work.
Besides, I'd like to have a
I'm new here (and to Django) and tried to do my searches, but don't
come any further. So this is my hope.
What I'm after is creating a multiple record form to maintain a master-
detail model/table (i used to be an oracle programmer).
So I want to be able to show fields in a row (I'm thinking of u
Ok, I recreated the database, and all is well, thx for the help .
On Nov 27, 2:16 pm, mike <[EMAIL PROTECTED]> wrote:
> ok I can add issues if i add an admin class to my Issues class and add
> them from the Admin screen, but they will not save if i add them from
> the bottom of my customer fo
ok I can add issues if i add an admin class to my Issues class and add
them from the Admin screen, but they will not save if i add them from
the bottom of my customer form, I cant find anything in the
documentation that addresses this
On Nov 27, 1:46 pm, mike <[EMAIL PROTECTED]> wrote:
> one prob
Hi django users!
I have two simple models: Blog and Article.
class Blog(models.Model):
title = models.CharField()
content = models.TextField()
user = models.ForeignKey(User)
class Article(models.Model):
title = models.CharField()
content = models.TextField()
blog = models
In advance, excuse me if off topic... :)
I was reading Vernor Vinge's Rainbows End, and was struck by the
quote...
""" Robert had a surprising amount of fun working with video effects
and network jitter. If their project had been shown in the 1990's, it
would have been taken as a work of geni
one problem, the Issues appear at the bottom of the customer form
along with other blank issues, , but If I add an Issue there, and save
it. It erases the issue from the issue class,
On Nov 27, 1:33 pm, mike <[EMAIL PROTECTED]> wrote:
> Roman, That is EXACTLY what I needed, thx alot.
>
> On Nov
you're welcome :-)
here's the relating django documentation for more
http://www.djangoproject.com/documentation/tutorial02/#adding-related-objects
-roman
2007/11/27, mike <[EMAIL PROTECTED]>:
>
>
> Roman, That is EXACTLY what I needed, thx alot.
>
> On Nov 27, 12:45 pm, "Roman Zechner" <[EMAIL
Roman, That is EXACTLY what I needed, thx alot.
On Nov 27, 12:45 pm, "Roman Zechner" <[EMAIL PROTECTED]> wrote:
> 2007/11/27, mike <[EMAIL PROTECTED]>:
>
>
>
>
>
> > My last post was a little confusing, I have two classes a Customer
> > class and an Issue class, I would like the customer class to
2007/11/27, mike <[EMAIL PROTECTED]>:
>
>
> My last post was a little confusing, I have two classes a Customer
> class and an Issue class, I would like the customer class to display
> issues where the "name" of the customer field matches the "customer"
> field of the issues class, thus listing eac
Seems you forget to make ./manage.py syncdb
Greg пишет:
> Hello,
> I've added the following to my settings.py file:
>
> DATABASE_ENGINE = 'postgresql_psycopg2'
> DATABASE_NAME = 'postgres'
> DATABASE_USER = 'postgres'
> DATABASE_PASSWORD = ''
> DATABASE_HOST = ''
> DATABASE_PORT = '5432'
My last post was a little confusing, I have two classes a Customer
class and an Issue class, I would like the customer class to display
issues where the "name" of the customer field matches the "customer"
field of the issues class, thus listing each customer's issues at a
glance, any help would b
Hello this is my first post, I work the helpdesk for a small company
and I am trying to design a form to keep track our customers, contact
info and the reason for their calls, I would like my customer form to
list links to notes for each time they called with dates, here is my
currentl models.py a
Le 27.11.2007 18:35,, le perspicace Karen Tracey s'exprimait en ces termes:
> On Nov 27, 2007 11:46 AM, <[EMAIL PROTECTED]> wrote:
>> from django.shortcuts import render_to_reponse
>
> You are missing the first 's' here in render_to_response.
>
> Karen
On Nov 27, 2007 11:46 AM, <[EMAIL PROTECTED]> wrote:
>
>
> Le 27.11.2007 17:40,, le perspicace James Bennett s'exprimait en ces termes:
> > On 11/27/07, Sun Wukong <[EMAIL PROTECTED]> wrote:
> >> But I get this error :
> >> Error while importing URLconf 'myblog.personne.urls': cannot import name
It does not work. I have this error message:
"UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position
0: unexpected code byte"
Which is due to the small u. Without the u as I said earlier, it does
not work as well.
On 27 nov, 21:44, David Reynolds <[EMAIL PROTECTED]> wrote:
> How abou
thx for your answer
ok, the problem, in my case, is that I have got 2 types of users :
- data entry user, who write the content
- admin user, who valid, the content
what I need, finally, is a sort of workflow system, so that my
question is now :
is http://django-goflow.blogspot.com/ able to do t
Ipod ... pod... pod...
http://www.freerealms.fr/ipod
--~--~-~--~~~---~--~~
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
Le 27.11.2007 17:40,, le perspicace James Bennett s'exprimait en ces termes:
> On 11/27/07, Sun Wukong <[EMAIL PROTECTED]> wrote:
>> But I get this error :
>> Error while importing URLconf 'myblog.personne.urls': cannot import name
>> render_to_reponse
>
> One of your views is trying to use rend
On 11/27/07, sam <[EMAIL PROTECTED]> wrote:
> I would like that all users logged could modify the title and content
> field (in the standard django admin)
> and I would like that just a category of user can modify the
> publish_status (always in the standard django admin).
You will not be able to
On 11/27/07, Sun Wukong <[EMAIL PROTECTED]> wrote:
> But I get this error :
> Error while importing URLconf 'myblog.personne.urls': cannot import name
> render_to_reponse
One of your views is trying to use render_to_response, but is
apparently looking in the wrong place to import it.
--
"Burea
hello,
so, I'm new user of django, and I would like to know (or understand)
how to make some fields invisible to some users.
For example, if a model with this 3 fields : publish_status, title &
content,
I would like that all users logged could modify the title and content
field (in the standard
Hi,
I try to access to the URL http://127.0.0.1:8000/personne/liste/ but get
an error that I can't solve. Thanks for your help.
the URL http://127.0.0.1:8000/personne/liste/ head us to the main
urls.py file
--
from django.conf.urls.defaults import
In order to test if the browser has cookie support, do we have to
place this cookie test on every function? Is this the general
practice? I mean what happens if a person has cookie support turned on
and while browsing he/she turns it off?
Also, If we use a set_test_cookie on the GET request and a
Hello,
I've added the following to my settings.py file:
DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'postgres'
DATABASE_USER = 'postgres'
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = '5432'
I added the line 'django.contrib.admin', to my INSTALLED_APPS.
Now whene
On Nov 26, 7:04 pm, anthony <[EMAIL PROTECTED]> wrote:
> so which means i should be able to get oracle working if i download
> the code from the trunk?
That's correct. Version 0.96 was released before the Oracle branch
was merged into trunk, so we recommend using trunk for all Oracle
installatio
OK, managed to do this in the end, by creating a new template tag and
node derived from django.template.loader_tag.ExtendsNode
overriding the get_parent method.
Now we have total white labeling of all our templates, including base
templates.
Django rocks.
On 27 Nov, 12:20, jorjun <[EMAIL PROTECT
Does anyone know of a clean way to do partial validation in djangos
newforms. I am basically after a cleaner way to do something like the
code below.
form = form(request.POST, error_class=SpanErrorList)
# Hacky but as of this moment newforms doesn't support partial
# validation or getting the
I would have the render_to_response in the view (or views if the URL
patterns are different) use the appropriate template based upon the
type of request.
--gordy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
Hello All,
Another nasty challenge for me newbie :-)
I have a master Template where i define the blocks that will be
subclassed by
child templates.
(currently blocks are Header,
TitleBar,MenuBar,ToolBar,MainFrame,MessageBar)
Now for my Incident module, i've got several Qualifications
(Support R
How can I get all values of my "choices"?
I have a template which contains an drop-down-list with all values.
The drop-down-list
has several entries but unfortunatelly only the same. In my choices-
list
I have 5 entries. And in the drop-down-list 5 entries, too (But the
same).
How can I get all
http://www.meb.gov.tr/baglantilar/okullar/yonlendir.asp?KOD=711531
--~--~-~--~~~---~--~~
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 unsubscrib
On Nov 27, 2007 8:56 AM, Miguel Galves <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've created a slugfield, which should accept 3 values from a list
>
> STATUS = (
> ('PUBLICADO', "Publicado"),
> ('ESPERA', "Aguardando Aprovação"),
> ('REJEITADO', "Rejeitado"),
> ('SPAM'
Hi,
I've created a slugfield, which should accept 3 values from a list
STATUS = (
('PUBLICADO', "Publicado"),
('ESPERA', "Aguardando Aprovação"),
('REJEITADO', "Rejeitado"),
('SPAM', "Spam"),
)
status = models.SlugField(choices=STATUS, default='ESPERA', nu
How about:
CURRENCY = u'€'
?
That's what we had to do to get the pound sign working.
Thanks,
David
On 27 Nov 2007, at 1:39 pm, Song.qk wrote:
>
> I am just using the basic Satchmo templates WITHOUT ANY
> modifications.
>
> On Nov 27, 8:04 pm, "Horst Gutmann" <[EMAIL PROTECTED]> wrote:
>> F
I am just using the basic Satchmo templates WITHOUT ANY
modifications.
On Nov 27, 8:04 pm, "Horst Gutmann" <[EMAIL PROTECTED]> wrote:
> First of all: How do you render your prices in the first place?
>
> Regards, Horst
>
> On Nov 27, 2007 8:18 AM, Song.qk <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hell
hi,
in my new forms I am doing custom validation. Some of these do not
fit into the 'clean()' method, so I do it in the body of my view.
Code is like this
if form.is_valid:
if some cleaned_data['speaker'] does not pass test:
form.errors['speaker'] = ['some error here'
Hi Malcolm,
Thanks for the response - at least I know its not something I am doing
wrong now! Do you know when the updated code will be available?
Would it be possible to have a copy of the code in its current state
so I can get the site working as intended?
Thanks again for your help.
Phil
O
I am trying to work out the best way to allow dynamic template
substitution based on RequestContext
Could anybody point me in the right direction? I don't know if I need
a new template loader, or I need to create new tags.
But in this case :
{% extends "myapp/base.html" %}
I would like it to l
On Nov 27, 11:10 am, Tim <[EMAIL PROTECTED]> wrote:
> For multilingual sites, is it not easier to maintain and keep all the
> translations in .po files? The idea of splitting up the required
> translations would mean that translators must use two different
> interfaces.
Well, those are two differ
First of all: How do you render your prices in the first place?
Regards, Horst
On Nov 27, 2007 8:18 AM, Song.qk <[EMAIL PROTECTED]> wrote:
>
> Hello world,
>
> I've tried many things with no avail to make appear the Euro symbol.
> I've put the line
> # encoding: utf-8
> at the beginning of the l
I've recently added the sites framework but i'm noticing that the
SITE_ID (settings.SITE_ID), is returning an id of a site that doesn't
exist. I'm running on the development server @127.0.0.1:8000, this
obviously doesn't relate to any of the sites that I have added within
the sites table.
It is a
Hello!
I outputted an xml file with the "dumpdata" command using manage.py. I
didn't dump data per model, I just dumped it in a single file that I
named "initial_data.xml". Now, when I try to upload it with
"loaddata", it fails. Sometimes, it doesn't find paths (my project
handles pictures), some
Thanks,
actually i have been baulking a little cos i have not yet studied
writing custom sql in django.
I'll get on with it and check on you with more specific issues as they
appear.
On Nov 26, 12:13 pm, jj <[EMAIL PROTECTED]> wrote:
> I solved a similar issue using custom SQL. It's a little tedi
On Nov 27, 2007 5:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> A small question about template godd practices.
> I have to display lists of elements in various pages, with each
> element formatted as HTML table (with progress bars and other widgets,
> without going in too deep d
Hi,
A small question about template godd practices.
I have to display lists of elements in various pages, with each
element formatted as HTML table (with progress bars and other widgets,
without going in too deep details).
Currently every page duplicates the HTML code to display those
elements.
Hi,
I've just noticed that the irc channel has lost the mode that lets
anyone set the topic, so now only ops can do it. However, there
doesn't seem to be any ops. Is anyone able to fix it? I wanted to
add something about the djangosprint to the topic.
Thanks,
Dave / Paperface on #django
On Nov 27, 2007 3:07 AM, Sawan V <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Is there any way to use the
> django.views.generic.create_update.update_object to update all the
> rows in a table?
>
> Example: my model contains a table with 2 columns, role and name. For
> a given row, role is constant
On 11/27/07, Massimiliano Ravelli <[EMAIL PROTECTED]> wrote:
>
> On 25 Nov, 10:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > What is the recommended method to do this right now, what are you all
> > using, just plain SQL? Basically, I'm looking for the best solution to
> > this problem an
For multilingual sites, is it not easier to maintain and keep all the
translations in .po files? The idea of splitting up the required
translations would mean that translators must use two different
interfaces. There are frameworks for translating .po files that keep
revisions, suggestions etc. Th
On 25 Nov, 10:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> What is the recommended method to do this right now, what are you all
> using, just plain SQL? Basically, I'm looking for the best solution to
> this problem and would like to know what the community recommends.
I can't raccomand
You need then to give the exact error messages from the Apache error
logs or browser then, rather than us having to guess what they are.
Also do the following:
1. Check that all files and directories back up to root of file system
are readable/searchable to the user that Apache runs as. If they
a
Posted on my local LUG list, thought it may be of interest to some
people here too:
> Dear ALUG,
>
> The second meeting of the Cambridge and East Anglia Python Users Group
> will be held on Tuesday 4th December at 20:00 in the Calrton Arms
> (Carlton Way, Cambridge).
>
> There are a few agenda
Hi Arnar,
Thanks for clearing that up, that explains why it works in the context
django and not just in the python shell. I understand now, I'll stop
by the pyamf developers list for sure this week :)
Cheers,
Bert
On Nov 26, 6:50 pm, Arnar <[EMAIL PROTECTED]> wrote:
> Hello Bert,
>
> Sorry for
Up, unless I need to move it to django-dev list ?
On 20 nov, 14:30, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> After reading and viewing the screencast on syndication framework [1],
> I let a comment on the site where the "obj" comes from ?
>
> Michael points me to the right url
Hello,
In my po file, I need some french words with simple quote like :
#: models.py:497
msgid "User's skills"
msgstr "Compétences d\'un utilisateur"
But when I use compile-message.py , I got fatar errors and as a reason
"Invalid control sequence".
I removed the "\" but same issue.
Any idea ?
Hello,
Is there any way to use the
django.views.generic.create_update.update_object to update all the
rows in a table?
Example: my model contains a table with 2 columns, role and name. For
a given row, role is constant and does not change but name can.
I want to write one simple page where I
84 matches
Mail list logo