BTW, Carl.
I note that you actually directly responded to that old thread I
referenced explaining the subtle differences, so you would have been
aware of how to set things up back then, so not sure why you are
having trouble now. ;-)
Graham
On Jan 22, 6:51 pm, Graham Dumpleton <[EMAIL PROTECTED
On Jan 22, 6:18 pm, Carl Karsten <[EMAIL PROTECTED]> wrote:
> whoops.
>
> svn cohttp://code.djangoproject.com/svn/django/trunk/django
>
> PythonPath "['/home/testrmcom'] + sys.path"
That is not what I said to use. I said to use both that directory as
well as the actual directory containing t
Carl Karsten wrote:
> symlinks. I use them. I bet the default is for Apache not to follow them.
> that
> could be my problem. or at least one of them.
>
> That is enough to start a wiki page.
>
> I am going to divide it into rumors and confirmed rumors. Anyone have some
> rumors for me to
whoops.
svn co http://code.djangoproject.com/svn/django/trunk/django
PythonPath "['/home/testrmcom'] + sys.path"
That makes things simpler.
But, I still had to change
from core.models import Message
to
from ridgemoor.core.models import Message
Well, that change seemed to make things bett
I and my BDSM Webcam
http://golddating.servik.com/bdsm/map.html
--~--~-~--~~~---~--~~
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 f
Hello,
I stress again that I don't know a ton about the django template system,
(or any for that matter)
That being said, I will proceed to say what I think I know:
I don't believe that there is a macro-like feature in the django
template system that could do that. You'd have to switch comple
Hello I just opened a new project on google code and I was wondering
if there was anyone that would be willing to help me work on this
project in their free time. Check it out. http://code.google.com/p/megal/
Please give me feed back too. Hope I am not violating any rules by
posting this here. It
Whoops, http://www.djangosnippets.org/
On Jan 21, 11:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The best place to check for something like that would be
> djangosnippets.com
>
> On Jan 21, 11:20 pm, "Oak McIlwain" <[EMAIL PROTECTED]> wrote:
>
> > Thanks for the help Alex =]
>
> > I k
The best place to check for something like that would be
djangosnippets.com
On Jan 21, 11:20 pm, "Oak McIlwain" <[EMAIL PROTECTED]> wrote:
> Thanks for the help Alex =]
>
> I knew that I could write my own but I thought it would be quicker to
> check if someone had done it already because it seem
hi jeff, thanks for your response.
writing tags to replace macros looks like an overkill to me.
especially because a macro may hold a content that's specific to a
template and such a thing naturally belongs to the template itself and
shouldn't go somewhere deep into the python codebase.
have thi
Thanks for the help Alex =]
I knew that I could write my own but I thought it would be quicker to
check if someone had done it already because it seems like something
that would be pretty common.
-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf
This would be something to use a template filter for, you can either
use one of the built in ones:
http://www.djangoproject.com/documentation/templates/#built-in-filter-reference
if it exists, or you could write your own.
On Jan 21, 10:44 pm, "Oak McIlwain" <[EMAIL PROTECTED]> wrote:
> ... lol.
... lol.
I'm pretty sure you know what I mean now but I'll clarify it anyway:
When I say "in a template" I mean "within the code in a Django template"
(Not within a text editor). As far as I know this is limited to a set of
Django specific commands.
I have a string variable and I want to repla
You are not following the instructions. I would agree the instructions
aren't as clear as they could be, but it does describe what is needed.
Specifically the documentation says:
"""Remember: the parent directories of anything you import directly
must be on the Python path."""
You have not done
On Jan 22, 2008 11:18 AM, oak <[EMAIL PROTECTED]> wrote:
>
> Is it possible to perform a replace operation in a template? I
> couldn't find any reference to it.
My text editor has a magnificent Replace operation. It can replace any
text with any other text. It even allows you to use regular
expre
I'm no expert with any template system, but I believe you can write your
own template tags for django's template system.
http://www.djangoproject.com/documentation/templates_python/
At the section called "Extending the template system"
Hopefully this is a good starting point!
Jeff Anderson
P
hi there!
i wonder if there is any way to have Macros in django templates
similar to what Jinja has (http://jinja.pocoo.org/)?
the closest i could get was using 'include' tag and have the
repetitive content in a standalone file, but it's pretty obscure to
have a separate file for each little bit
Is it possible to perform a replace operation in a template? I
couldn't find any reference to it.
--~--~-~--~~~---~--~~
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
On 21-Jan-08, at 10:32 PM, LRP wrote:
> Looks like I'll have study pg_hba.conf configuration in much more
> detail.
this is an unsafe default for you to get things working. Now
experiment with using password or md5 or ident for authentication
--
regards
kg
http://lawgon.livejournal.com
htt
Hi,
I want something similar to the transaction middleware but even more
fine grained.
I'd like to delay certain operations on a model instance while
another is occurring ... like a mutex really.
Imagine a model of a user's karma:
class Karma( model.Models ):
user = models.ForeignKey( User
dlc wrote on 01/22/08 00:40:
> How does authentication work?
>
> I want to build apps with both web and CLI interfaces, with nearly
> 100% overlap in functionality between the two interfaces. I'm a CLI
> snob but I also need GUI to "sell" my projects to the rest of the
> team.
We use LDAP/Kerbe
You can set a value in a model and order_by that value.
I presume you're trying to optimize something, and don't want to have
the overhead of order_by for each call.
Ivan
On Jan 21, 1:15 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there some tool in Django to make a model
Could authenticate the CLI version by recording the users on the
system that have access and do authentication through the os module's
getlogin()?
On Jan 21, 3:53 pm, Derek Anderson <[EMAIL PROTECTED]> wrote:
> well it's a desktop app, so i don't use any authentication.
>
> but my guess is you ca
well it's a desktop app, so i don't use any authentication.
but my guess is you can prompt at the command line, and use most of
django's auth system.
dlc wrote:
> How does authentication work?
>
> I want to build apps with both web and CLI interfaces, with nearly
> 100% overlap in functionali
Jeff Anderson wrote:
> And you just need minimal functionality,
> You could probable write up a small hack to do it with some regular
> expressions. You can find things that strip html, and then you could to
> the simple markup fairly easily after that. It shouldn't take too long
> to write som
i use beautifulsoup [http://www.crummy.com/software/BeautifulSoup/].
run it on your input, iterate through all tags, calling extract if
they're not in your allowed set. then print it back out as a string.
derek
Rob Hudson wrote:
> Hi,
>
> I'm looking for something along the lines of Textile
Hi,
I'm looking for something along the lines of Textile or Markdown, but
with very minimal features. Does anyone know of other projects that
might fit these requirements?
* Strip all HTML
* Only allow for simple markup (bold, italics, headers, lists, URLs or
auto-linking URLs)
* Do not allow t
How does authentication work?
I want to build apps with both web and CLI interfaces, with nearly
100% overlap in functionality between the two interfaces. I'm a CLI
snob but I also need GUI to "sell" my projects to the rest of the
team.
On Jan 21, 12:12 am, Derek Anderson <[EMAIL PROTECTED]>
Another alternative could be using BeautifulSoup to find all tags in the
data and replace all non-approved tags with nothing.
Oscar
On Mon, Jan 21, 2008 at 04:03:54PM -0700, Jeff Anderson wrote:
> If you've already looked at the regular bunch: textile, markdown, rst,
> etc...
> And you just need
In the Django world (and the newspaper world), the canonical term for
what you're looking for is 'slug' and Django even has a built-in slug
model field [1].
If you're just using the built-in Admin, then it even has JavaScript
that will create the slug based on another model field.
However, if yo
Thanks for the reply...
I have considered rolling my own along the lines of {{ mytext|
striptags|simple_markup }} but thought I'd ask before I went through
the effort. In Python there's usually a library for everything. :)
I've also looked at the optional arguments to Markdown and Textile and
If you've already looked at the regular bunch: textile, markdown, rst,
etc...
And you just need minimal functionality,
You could probable write up a small hack to do it with some regular
expressions. You can find things that strip html, and then you could to
the simple markup fairly easily afte
They run great in the CherryPy WSGI server, most at >25MB, so I don't
think that is the problem.
On Jan 20, 2008 2:26 PM, Sebastjan Trepca <[EMAIL PROTECTED]> wrote:
>
> I think the problem lies in apps, are you super sure they don't leak?
>
> As a temporary solution you could set Apache to kill
Hi Mike I have the same problem, and I don't know how to resolve, I'm
newbie in django and I'm trying to understand how to create
templatetags for resolve this because is very important for me. Have
you the solution?? If I get, I say to you too. THX
On 4 Gen, 20:13, mike <[EMAIL PROTECTED]> wrote
symlinks. I use them. I bet the default is for Apache not to follow them.
that
could be my problem. or at least one of them.
That is enough to start a wiki page.
I am going to divide it into rumors and confirmed rumors. Anyone have some
rumors for me to post?
Carl K
jonasr wrote:
> I'm
I am working with using memcached with Django, and a problem came up.
I have memcached running, and using the
django.middleware.cache.CacheMiddleware to cache my entire site seems
to be working. But when I try to use the low-level api Django way for
caching (
http://www.djangoproject.com/documen
I have a weblog that I am creating and it has a table with fields
called title and url_name. I would like to make it possible for the
user to simply enter the title of the blog and then django would auto
format the url_name for me based off of the title. ex. - title = My
First Blog -->gets transl
Hello all!
I'm excited to use the django web framework, but I'm having trouble
getting the web admin page to work. After trying to hit
http://mydomain.com/admin
I get the login screen. After logging on, my server returns (this
happens whether I'm in the dev server @ port 8000 or production):
#
I'm having a similar issue. Last week after I moved from .95 to svn
and started having these problems. However, if I refresh the
192.168.0.150/admin 4-5 times, the fifth refresh renders admin as if
nothing is wrong.
The records I add or update are added and saved, but after I restart
apache I'll g
Steven Armstrong wrote:
> May I ask why you are using deseb instead of django-evolution [1]?
>
> Pros, cons?
>
> [1] http://code.google.com/p/django-evolution/
well, for pros, because i think deseb is easier to use, and
significantly more reliable when you use the md5-checksumed schema
verifi
James Bennett wrote on 01/21/08 18:26:
> On Jan 21, 2008 10:22 AM, Bram - Smartelectronix
> <[EMAIL PROTECTED]> wrote:
[...]
>
>> 3. finegrained permissions. "I only want my friends to be able to edit
>> my tags." Again people seem to be working on this, but nothing seems to
>> be making it into
Derek Anderson wrote on 01/21/08 09:12:
> hey all,
>
> i'm prob. not the first to do this, but i don't know of anyone else who
> has so i thought i'd mention it.
>
> i've used django's database and ORM layers as the backend to a new pygtk
> app. (all over a sqlite db) it has worked wonders a
Jeff Anderson wrote on 01/21/08 09:30:
> Derek Anderson wrote:
>> hey all,
>>
>> i'm prob. not the first to do this, but i don't know of anyone else
>> who has so i thought i'd mention it.
>>
>> i've used django's database and ORM layers as the backend to a new
>> pygtk app. (all over a sqlite
James Bennett wrote:
> On Jan 21, 2008 8:43 AM, Carl Karsten <[EMAIL PROTECTED]> wrote:
>> Exception Type: ViewDoesNotExist at /admin/
>> Exception Value: Tried new_message in module ridgemoor.core.views. Error was:
>> 'module' object has no attribute 'new_message'
>
> Most likely is that somethi
I'm using apache2.0+mod_fastcgi with flup prefork django 0.95+. With large
requests we see an error return from the server (not django), but using top I
can see the python process (presumably for the large request) ticking away
using
up lots of memory/cpu. At some point the python process stal
On Jan 21, 2008 10:22 AM, Bram - Smartelectronix
<[EMAIL PROTECTED]> wrote:
> 1. huge numbers of users make the admin almost unusable. Almost any
> objects is related to a user (or two). Having to load 500K users in a
> form makes for ultra big and slow web pages. Is there a fix for this
> somewhe
On Jan 21, 2008 11:23 AM, lowshoe <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i'm currently trying to create a form with newforms from a model. now
> i would like to create an add-form where a selection field shall have
> a preselected value. i know that i can pass a data-dictionary when
> instantiatin
Thanks Kenneth,
That did the trick.
Looks like I'll have study pg_hba.conf configuration in much more
detail.
All the best,
Lloyd
On Jan 20, 9:07 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 21-Jan-08, at 4:07 AM, LRP wrote:
>
> > Psycopg2.Operational Error: FATAL Ident authenticati
I initially thought about this approach but i seemed kind of hacked.
Any other sugestions?
Regards,
Luis
On Jan 21, 1:16 pm, opium <[EMAIL PROTECTED]> wrote:
> The problem is that _(variable) doesn't add strings to .pot
> You can solve this by custom adding strings to .pot, or by
> moving stri
hi,
i'm currently trying to create a form with newforms from a model. now
i would like to create an add-form where a selection field shall have
a preselected value. i know that i can pass a data-dictionary when
instantiating the form:
FolderForm = forms.models.form_for_model(Folder)
form = Fold
Hello Everyone,
you might have previously read posts from me about splicemusic.com,
which now successfully runs on django. Quite a while ago I created the
Freesound Project ( http://freesound.iua.upf.edu ), which in turn became
hugely popular and a victim of it's own success (i.e. drowning i
> You get my problem right. I'm searching for a way to apply a
> filter on already filtered list of products. But don't know a
> way to do that.
Here's the solution I've proposed to this in the past:
http://groups.google.com/group/django-users/browse_frm/thread/8e265aeb33f3ec32/5c169c88eef79409#
Hey Maarten,
ok I give some more information on this point. For every product I
have up to five filter, which I can set. Each
filter has up to 6 options from which I can select.
Now I have three models: Products, Filter, Filteroptions and
(Product_Filteroptions for the many2many Relation)
You g
Generally, you use GET when you're retrieving information from the server
and POST when you're sending information to the server (as when you're
submitting a form).
Django is designed so that, if you have GETs and POSTs for a form go to the
same URL, you can display the form on the GET branch and
On Jan 21, 2008 8:43 AM, Carl Karsten <[EMAIL PROTECTED]> wrote:
> Exception Type: ViewDoesNotExist at /admin/
> Exception Value: Tried new_message in module ridgemoor.core.views. Error was:
> 'module' object has no attribute 'new_message'
Most likely is that something that's different between yo
Graham Dumpleton wrote:
> Post your Apache configuration snippet where you configure mod_python
> for Django.
ServerAdmin [EMAIL PROTECTED]
ServerName test
ServerAlias test.ridgemoor.personnelware.com
DocumentRoot /home/juser/public_html/
SetHandler python-program
Pyth
Hi guys! Just to let you know I've found a good way to earn a little
money
without too much effort; some times ago I started using a program that
I found
here (http://get-me.to/eurobarre) which only shows a little
advertisment on my
pc and I get paid for it. It really works! Try it yourself, on th
Be sure and check out SVNMerge: http://www.orcaware.com/svn/wiki/Svnmerge.py
It's a little Python script that helps ease the pain of merging. It's
superfantastic. ( =
On Jan 20, 7:59 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 20-Jan-08, at 2:06 PM, Andrew wrote:
>
> > This also may be
The problem is that _(variable) doesn't add strings to .pot
You can solve this by custom adding strings to .pot, or by
moving strings into function
def some_fun(context, msg_id):
messages = {
'IMG_DEL_CONFIRM': {
'modal_name': name,
'modal_caption': _(caption),
'moda
Yes, if I use {%trans "string"%} in template it gets added to .pot
The problem is that _(variable) doesn't work, only _("string") works.
On Jan 21, 12:01 pm, opium <[EMAIL PROTECTED]> wrote:
> does same strings extracted by trans in templates?
>
> > Just tested, using
> > from django.utils.tra
Hi,
I developed this method to create breadcrumbs.
What do you think about it?
Thomas
# Python
from urlparse import urljoin
# Django
from django import http
from django.core import urlresolvers
from django.core.urlresolvers import reverse
from django.conf import settings
from django.utils.ht
does same strings extracted by trans in templates?
> Just tested, using
> from django.utils.translation import ugettext as _
> pybabel does not extract the strings.
>
> any other ideias, please.
>
> Luis
>
--~--~-~--~~~---~--~~
You received this message because
sure. why not?
> So should i do like this:
>
> def modalconfirm(context, name, caption, question, yesfunction,
> nofunction=None):
> """
> Shows a modal confirm dialog
> """
>
> return {
> 'modal_name': name,
> 'modal_caption': _(caption),
> 'modal_questio
Just tested, using
from django.utils.translation import ugettext as _
pybabel does not extract the strings.
any other ideias, please.
Luis
On Jan 21, 10:30 am, opium <[EMAIL PROTECTED]> wrote:
> sure. why not?
>
> > So should i do like this:
>
> > def modalconfirm(context, name, caption, que
>
> I've created a templatetag to show a AJAX confirm dialog with is used
> like this:
>
> {% modalconfirm "delete_small_photo" "Delete" "Are you sure you want
> to delete this user's small photo?" "delete_smallphoto" %}
>
> The strings should be translated, how can this be done since
>
> {% modal
So should i do like this:
def modalconfirm(context, name, caption, question, yesfunction,
nofunction=None):
"""
Shows a modal confirm dialog
"""
return {
'modal_name': name,
'modal_caption': _(caption),
'modal_question': _(question),
'modal_yesfunc
Hey,
I'd like to help out. But there is limited information to go on.
Those options, are that all seperate attributes of your object, or is
it one more general 'description' attribute with those different
options.
How do you want to filter it, when and what exactly?
I'm thinking you want to app
Hello,
I've created a templatetag to show a AJAX confirm dialog with is used
like this:
{% modalconfirm "delete_small_photo" "Delete" "Are you sure you want
to delete this user's small photo?" "delete_smallphoto" %}
The strings should be translated, how can this be done since
{% modalconfirm "
Hello,
Is there some tool in Django to make a model an ordered list where a
position field is stored in the database and methods like move_up() or
move_down() do the right thing?
If not, how would I go about doing it so it is reusable? a class to inherit
from in model classes (as the second clas
Derek Anderson wrote:
hey all,
i'm prob. not the first to do this, but i don't know of anyone else who
has so i thought i'd mention it.
i've used django's database and ORM layers as the backend to a new pygtk
app. (all over a sqlite db) it has worked wonders and allowed me to
focus my tim
hey all,
i'm prob. not the first to do this, but i don't know of anyone else who
has so i thought i'd mention it.
i've used django's database and ORM layers as the backend to a new pygtk
app. (all over a sqlite db) it has worked wonders and allowed me to
focus my time on the UI, not writing
71 matches
Mail list logo