Hi,
I wrote a little quiz app visible at svn
http://django-userlibs.svn.sourceforge.net/svnroot/django-userlibs/trunk/apps.quiz
.
Maybe there is somebody out who needs such an app.
Regards,
Dirk
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden:
Hi all,
I have a project which I currently migrate to the svn-trunk with unicode
support.
I have the following simple Model:
class MyModel(models.Model):
name = models.CharField(maxlenght=60)
def __unicode__(self):
return self.name
# no def __str__ !
In a view I want to translate
Hi all,
I've asked the users about this last month. Today I read the SessionMiddleware
code and I think I found an answer:
settings.SESSION_SAVE_EVERY_REQUEST = True
settings.SESSION_COOKIE_AGE = 20*60 # 20minutes
settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = False
should do what I want. I will
Hi all,
I currently working on an company application which needs a lot of automated
tests to make sure that changes on code won't break usability for out
production environment.
I wrote doctests for our models via models.py. I wrote small application tests
via TestCases. Until now I have
Hi all,
I use django.contrib.sessions with SESSION_EXPIRE_AT_BROWSER_CLOSE=True.
I need a way to expire a session on certain amount of time of inactivity in the
browser.
Each new request to django should retrigger the expire time.
Is there a possibility to modifiy the session module or
Hi all,
I checked out a fresh copy of django-svn with databrowse contrib app included.
I run 'python setup.py sdist' or 'python setup.py bdist_rpm' and the
templates-folder of databrowse is missing.
Can somebody verify this ?
Regards,
Dirk
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat
Hi all,
I've updated to the latested django SVN version 4868 and installing it into my
system I ran the regression test of the same version.
It seems to me that the tests are broken ?
My database is a MySQL 5.0.27 with MySQLDB 1.2.1-p2, Python 2.5 if it matters.
I attached the log results.
Hi Osso,
Osso schrieb:
On Dec 23, 10:03 pm, [EMAIL PROTECTED] wrote:
Hi,
I have the following list ['item 1', 'item 2', 'item 3'] and want the following
output:
item 1
item 2
item 3
Since this is not in the example for unordered_list I don't know how I can get
this right.
Is it
Hi,
I have the following list ['item 1', 'item 2', 'item 3'] and want the following
output:
item 1
item 2
item 3
Since this is not in the example for unordered_list I don't know how I can get this right.
Is it possible with unordered_list ?
Regards,
Dirk
--
Der GMX SmartSurfer hilft bis
Hi Malcolm,
>
> Needs more investigation to confirm if this is the case. Ine test would
> be to explicitly import gettext() as _() in your test file, since that
> would introduce different aliasing rules for the two cases, I believe.
>
from django.utils.translation import gettext as _
worked
Hi all,
I'm currently writing some doctests for a model and got the following error
message which I don't understand:
Failed example:
print q
Exception raised:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/django/test/doctest.py",
line 1243, in
Hi Max,
garaged schrieb:
>
> That was easy, but the main problem I have is that I really don't
> understand how to implement the new functionallity, I want to use
> libs.dojo, I installed it, but I don't know how to update my
> settings.py to use it, and what does my views.py needs either.
>
Hi Max,
garaged schrieb:
> On 8/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> for svn checkout or export the correct trunk-url is
>> http://svn.sourceforge.net/svnroot/django-userlibs/trunk
>>
>
> Probably I need to install it with setup.py, but I don't know for sure.
>
> Can
Hi all,
at
http://svn.sourceforge.net/viewvc/django-userlibs/trunk/libs.ajax/src/ajax/views/generic/date_based.py
I tried to solve ajax-aware views by copying original django generic views into
my own project namespace and modifiy them to use separate customized
HttpResponse objects. This has
Hi James,
James Bennett schrieb:
> On 8/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I know the discussion about django and ajax compatible response. The
> > 'hardliners' say that you only need to implement your own kind of template
> > - which is true for all time, but I would
Hi,
I know the discussion about django and ajax compatible response. The
'hardliners' say that you only need to implement your own kind of template -
which is true for all time, but I would prefer a much more generic way to get
the response from the views.
I made a server-side django library
Hi,
for svn checkout or export the correct trunk-url is
http://svn.sourceforge.net/svnroot/django-userlibs/trunk
Regards,
Dirk
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Hi Jakob,
this situation is not unknown to me :)
First you should check if you have __init__.py files along mysite.hello.views.
They can be empty but thats what python expects.
Than check if mysite.hello or mysite is in the settings.py in INSTALLED_APPS.
If so use the shell-mode:
python
Hi,
garaged schrieb:
> On 8/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>
> Its great for me, my only complaint is if you actually have to
> distribuite the source for every external package too ?
>
My intention is that each library should as much as functional complete
Hi all,
I put some packages for django onto sf.net
http://svn.sourceforge.net/viewvc/django-userlibs/trunk/
It contains some media packaged ajax toolkits mochikit, prototype, dojo and the
wysiwyg-editors tinymce and fckeditor.
If anybody has an idea for other libs to be created, please call.
Hi Malcolm,
Malcolm Tredinnick schrieb:
> Hi Dirk,
>
>
>
> A couple of thoughts from just reading over your description: if it's
> possible to package these without the libs/ prefix, that would provide
> the person using them with more flexibility over where these things get
> installed. It
Hi all,
I read a lot of the threads about modularity apps, AJAX support in django and
why not, secure context_processors and so on.
I made today 3 libraries from lot of sources I found out there in the web:
Common Library task:
libs.common.context_processors.media_url
Hi,
has anybody seen the following traceback:
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/django/core/servers/basehttp.py", line
272, in run
self.result = application(self.environ, self.start_response)
File
Hi,
thanks for the hints, that exactly what I was looking for.
May I'm not the first who asked this question.
The solution maybe should be placed somewhere on the django-wiki ?
Or the context_processor.media_url should go into the django-distro ?
Regards,
Dirk
--
Der GMX SmartSurfer hilft
Hi all,
is it possible to get the value of MEDIA_URL from settings.py in the templates ?
Regards,
Dirk
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
--~--~-~--~~~---~--~~
You received this
Hi,
thank you Ian for the link. I saw a post for SavePost.py, but with a broken
link.
Brian, I thought to implement a templatetag SAFEHTML, since I came through the
admin_doc which has nice links on the doc-model for cross referencing models.
But those links will be escaped through a policy
Hi All,
I thought about the usage of Chris Withers stripogram [1] as a filter in
middleware or filter in the templatetag, but then I read that stripogram isn't
aware of some kind of exploits.
Has anybody integrated stripogram into django ?
Which security riscs should I remember if I do such
Hi,
I have the following model defined:
from django.db import models
class MyTest(models.Model):
obj = models.GenericForeignKey()
if I let print the SQL-Create-Statements for mysql-DB I get this:
BEGIN;
CREATE TABLE `test_mytest` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY
Hi all,
I have the following 3 Models:
class Company(models.Model):
name = models.CharField(maxlength=40)
class InfoType(models.Model):
type = models.CharField(maxlength=40)
class MetaObject(models.Model):
company = models.ManyToManyField(Company, null=True,
Hi,
I have to correct me a little.
I can now tell you that the errors occure only on the admin pages, when the
cursor moves very fast over the action icons 'edit' and 'add'. The symbols
sometimes didn't display in the mouse-over state.
And they appear if I go click-by-click to list of users
Hi,
thanks for some hints. I can now tell you that the errors occure only on the
admin pages, when the cursor moves very fast over the action icons 'edit' and
'add'. The symbols sometimes didn't display in the mouse-over state.
The application/admin does work. Maybe the error is in the
Hi all,
I have a problem with HTTP, django and python 2.3.5 on linux suse.
I got multiple tracebacks like http://paste.e-scribe.com/970/
after a HTTP call from Internet Explorer 6 using HTTP-Protocol 1.0 or 1.1
The web-app is working fine, but the tracebacks are strange.
Has anybody seen such
Hi all,
I had the need for a CharField which stores the values always in uppercase
form. Is there a solution out there ?
Maybe the follwing simple generic solution would be fine:
class UpperCase(models.Model):
uppercase_field = models.CharField(maxlenght=10, uppercase=True)
Regards,
Dirk
33 matches
Mail list logo