On Oct 28, 3:05 pm, geezer <[EMAIL PROTECTED]> wrote:
> hi,
>
> when deploying to a real site, django says i dont have writable access
> to a python eggs cache, when i redirect the python eggs cache, placing
> it into a new writable directory the browser crashes, exactly what are
> the steps to
hi,
when deploying to a real site, django says i dont have writable access
to a python eggs cache, when i redirect the python eggs cache, placing
it into a new writable directory the browser crashes, exactly what are
the steps to satisfying django requirements for the python eggs cache
in this
Which is the easiest way to pass the new django documentation from
rest to HTML?
Thank you,
AMele
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
I want to add captchar to login django admin interface.
And now I hacked the staff_member_required in
django.contrib.admin.views.decorators
Is there a more graceful way to do this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I don't know of any applications for this specifically, however you
can probably steal various parts of Satchmo, specifically all the
payment stuff.
On Oct 27, 9:03 pm, unklbeemer <[EMAIL PROTECTED]> wrote:
> I did some searching and found nothing. I was wondering if anyone knew
> of any django
I did some searching and found nothing. I was wondering if anyone knew
of any django applications out there for receiving donations and/or
tracking those donations (capital campaign progress, pledges donated,
etc.)
Thanks
--~--~-~--~~~---~--~~
You received this
On Mon, Oct 27, 2008 at 5:52 PM, redmonkey <[EMAIL PROTECTED]>wrote:
>
> h. Yeah, That's pretty simple.
>
> I could even get a reference to the Job number using -v with at,
> storing that in the DB and then removing and recreating another at-job
> if the user changes the time.
>
Do you mean
You would probably be better off writing a custom template tag (http://
docs.djangoproject.com/en/dev/howto/custom-template-tags/#howto-custom-
template-tags).
R.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Mon, Oct 27, 2008 at 7:19 PM, Michael Meier <[EMAIL PROTECTED]>wrote:
>
> Hello
>
> I'm relatively new to Django and I was able to set up a small
> application without any problems, BUT:
>
> How can I access data inside a model that comes from another model. As
> an example, I have a model
Hello
I'm relatively new to Django and I was able to set up a small
application without any problems, BUT:
How can I access data inside a model that comes from another model. As
an example, I have a model Person, which has a One-To-Many-
relationship to Skills. So each person can have multiple
Thank you, that seems to have done it. I didn't know you could set
REMOTE_ADDR explicitly in the constructor.
On Oct 23, 12:16 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 23, 2008 at 11:41 AM, [EMAIL PROTECTED] <
>
> [EMAIL PROTECTED]> wrote:
>
> > By using pdb post mortem, I
Some followup, in case some other poor soul searches for this topic:
I found some better doc for get-absolute-url() here:
http://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#get-absolute-url
Including a better example:
@models.permalink
def get_absolute_url(self):
On Oct 28, 4:01 am, Giles Thomas <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> We're implementing some new stuff for our website in Django;
> unfortunately our site currently uses PHP quite heavily (for MediaWiki,
> Wordpress, phpBB and the like), and when we tried deploying the first
> cut of the
So i'm looking to have an admin controlled news list, and one thing in
particular i'd like them to be able to control is how many headlines
are shown on the front page, and my current code is not doing that.
The line i care about is:
{% for New in news_list|slice:":{{limit}}"%}
where
There is a method for write this, without write a loop:
{% ifequal apple.number <20 %}
..
{% endifequal %}
Alfredo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On Mon, Oct 27, 2008 at 4:13 PM, Abdel Bolanos Martinez <
[EMAIL PROTECTED]> wrote:
> Anyone has make WS (WebServices) inDjango???
>
This is the 2nd time you've asked essentially the same question in the space
of a few hours. Your original question did get a few answers:
I am looking for some apps/ tutorials to understand comet/ bosch
models for web application development.
I understand that web 2.0 applications use these models.
thanks,
Ravi.
On Oct 27, 12:44 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Wiadomość napisana w dniu 2008-10-27, o godz. 20:36, przez
James Bennett wrote:
On Sun, Oct 26, 2008 at 9:19 PM, Steve Holden <[EMAIL PROTECTED]> wrote:
Here's a specific example of a piece of code that uses a web app's
models. It should get you started - just dive in and write some code!
The tricky bit is providing the settings without
Wiadomość napisana w dniu 2008-10-27, o godz. 20:36, przez Ravi
Kondamuru:
> Is there any simple app/ tutorial to understand web 2.0 application
> development with django?
> thanks,
With exception of vagueness of all this web-two-dot-oh-thing, Django
has some very good tutorials that will
Hi,Is there any simple app/ tutorial to understand web 2.0 application
development with django?thanks,
Ravi.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Got the url tag version working this way:
Changed the url pattern to:
url(r'^org/(?P[-\w]+)/(?P[-\w]+)/$',
'orgs.views.org', name='organization'),
And the template to:
{% url organization type_slug=org.type.slug, org_slug=org.slug %}
And added the new keyword to the view.
But I'm
Tried going about this another way:
In the template:
{% url orgs.views.org org.type.slug, org_slug=org.slug %}
That gets me this error message:
Don't mix *args and **kwargs in call to reverse()!
But how is that different from this example in the Django doc?
I might also suggest django-registration
(http://code.google.com/p/django-registration) to handle your user
registration needs.
On Mon, Oct 27, 2008 at 2:34 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> Johnny Utah wrote:
>> Thanks for the input.
>>
>> When you say Django.admin would be useful,
Shabda,
Thanks for trying, but:
> return ('orgs.views.org', [self.type.slug, self.slug])
In the shell, that gets me:
TypeError: reverse() argument after ** must be a dictionary
But do I understand correctly that the first argument shd be a view?
And that what gets returned from
vivek,
Thanks for the reply. You're right - having spent a bit of time looking
at it, I've come to realise that I was wrong in thinking mod_wsgi was
inelegant. I'll give it a go.
Regards,
Giles
vivek wrote:
> I think mod_wsgi should not be considered "bit ugly", it is quite
>
Heh - looks like I spoke too soon. When I try to get mod_wsgi running
with my PHP-infested Apache instance, it crashes anyway. Looks like the
same problem as with mod_python/Django. If anyone else has got this
running, I'd love to hear from you...
In the meantime, I'll keep plugging at it
Johnny Utah wrote:
> Thanks for the input.
>
> When you say Django.admin would be useful, do you mean users would
> access the admin interface?
>
Please respond to the list when asking further questions.
That being said: no-- users shouldn't access the admin interface. Admins
should. It's
Arash wrote:
> Hi Everybody,
> Could you tell me please how can I customize TimeField. I need to get
> ride of the seconds. I don't want seconds to appear on admin interface
settings.py: TIME_FORMAT maybe.
/L
--~--~-~--~~~---~--~~
You received this message
I think mod_wsgi should not be considered "bit ugly", it is quite
elegant option. In daemon mode, it will probably provide a better
memory utilization as compared to mod_php + mod_python apache
processes. I have not faced such problem so cant give an exact
solution but you should definitely try
> maybe you can do a question more explicit ;-) like how i can make WS
For anybody to be more explicit, you'd have to be more explicit
yourself in what you want from a webservice. I tend to make my
web-services RESTful, which makes them no different from any
other HTML or XML response that
Hi Matias,
It return's an empty string on my machine (Ubuntu Linux).
This is not in fact what I am looking for. I would want to do
something like:
###generic.py
set_generic(folder):
path = "/sites/" + folder
url = "http://; + folder + ".localhost/"
DATABASE_NAME = folder
You want something like this
@models.permalink
def get_absolute_url(self):
return ('orgs.views.org', [self.type.slug, self.slug])
Essentially, you code would be doing something like reverse('/org/
hoa/', kwargs={..}) which fails. Templates supress Exceptions so you
do not see them.
On
> Has anyone made Webservices in Django ???
yes
-tim
--~--~-~--~~~---~--~~
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
Hi Everybody,
Could you tell me please how can I customize TimeField. I need to get
ride of the seconds. I don't want seconds to appear on admin interface
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
hmm.. I don't think you linked the right item?
Rory
This is what I use to process custom sql statements
def process_sql(query):
from django.db import connection
cursor = connection.cursor()
cursor.execute(query)
results = [dict(zip([item[0] for item in
redmonkey wrote:
> h. Yeah, That's pretty simple.
>
> I could even get a reference to the Job number using -v with at,
> storing that in the DB and then removing and recreating another at-job
> if the user changes the time.
>
> Brilliant, thank you.
>
> On Oct 27, 4:05 pm, Steve Holden
Hello,
I have been using a Django snippet (http://www.djangosnippets.org/
snippets/901/) to authenticate over LDAP with our Active Directory.
It's been working fine without SSL, but I am having some problems
getting it up and running with SSL. I have the SSL certificate (base
64 encoded) for our
Hi all,
We're implementing some new stuff for our website in Django;
unfortunately our site currently uses PHP quite heavily (for MediaWiki,
Wordpress, phpBB and the like), and when we tried deploying the first
cut of the solution, Apache segfaulted - best guess is that this is a
result of
h. Yeah, That's pretty simple.
I could even get a reference to the Job number using -v with at,
storing that in the DB and then removing and recreating another at-job
if the user changes the time.
Brilliant, thank you.
On Oct 27, 4:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> redmonkey
Altho I have read alot of the relevant documentation, and searched
this group and the Web, I remain confused about these topics and their
relationships. Something is not sticking in my brain.
I usually get something working by blind cut and paste. Looking for a
more conceptual explanation, or
yuanyun.ken wrote:
> Hi, all great Django users and developers, I have a little problem.
> To make @login_required work,
> I have to configure those in settings.py:
> root_url = '/root_url/'
> LOGIN_URL = root_url + '/login/'
> LOGOUT_URL = root_url + '/logout/'
>
> But this is obviously not a
Thanks for the tip, it indeed worked. I'm now trying to figure out how
to use exotic characters in my url regex and so far I'm failing.
My 0.96 url file looked like this:
accents = "áâàäãéêèëíîìïóôòöõúûùüçøñÁÂÀÄÉÊÈËÍÎÌÏÓÔÒÖÚÛÙÜÇØÑ¡¿"
REGEX_FICHIER = "[\w/\-+_,@!%'°&\.#$\[\](} "+accents+']*'
redmonkey wrote:
> Thanks Matías, you've come up with a good solution, but unfortunately
> this won't really work for my situation.
>
> For my client, online bidding ends immediately before they open
> bidding on the shop floor. The catalogue for that sale must go offline
> at that point. I can't
Thanks Matías, you've come up with a good solution, but unfortunately
this won't really work for my situation.
For my client, online bidding ends immediately before they open
bidding on the shop floor. The catalogue for that sale must go offline
at that point. I can't expect my client to
Hi, all great Django users and developers, I have a little problem.
To make @login_required work,
I have to configure those in settings.py:
root_url = '/root_url/'
LOGIN_URL = root_url + '/login/'
LOGOUT_URL = root_url + '/logout/'
But this is obviously not a good idea, as it couples with
How can I change the admin class?
Alfredo
2008/10/27 Erik Allik <[EMAIL PROTECTED]>:
>
> I'd suggest maybe inheriting your custom User admin class from the
> original one and only override stuff you need so you can automatically
> take advantage of future changes in contrib.auth.
>
> Erik
>
>
>
Hi guys.
Could you help me please with understanding of FileField behaviour.
I'm slightly confused.
For test purposes i use this simple model
class Test(models.Model):
name = models.CharField(max_length=255)
template = models.FileField(upload_to='upload')
Then i'm trying to test
Hi,
I have created a simple categories app, and now I want to be able to
categorize my articles, which are handled by a different app. I'd
like to create a multiselect categories field in my articles admin
that is populated by the category entries from my categories app.
In my categories app,
On Oct 26, 8:45 pm, Nick Lo <[EMAIL PROTECTED]> wrote:
> > 2) There is a fairly good library of php routines to connect on online
> > php app with quickbooks. I am not sure if python has anything like
> > that.
>
> That isn't really a ZF thing of course.
No, but I would I think that a php
According to the Python Coding Guidelines you should always put the
imports at the top of a file simply because it makes the file more
readable. Performance-wise there are AFAIK some small
speed-ramifications (negative ones) when putting imports into a
function instead of having them at the
7timesTom wrote:
> I have a large number of view functions which require various python,
> django and other import statements.
>
> My question is: is it ok to put ALL my import statements at the top of
> views.py and then not have to worry about which view fuction uses
> what. Or must I put my
maybe limit_choices_to is what you're looking for
i had similar problem and solved with ajax autocomplete widget.
On Oct 27, 1:47 pm, paolofdr <[EMAIL PROTECTED]> wrote:
> Hello everybody,
> I have a similar problem: a too long drop-down menu inside an inline
> element in the admin page.
> Is it
I need to use DynamicForm(form generated using database values), so I
am using this method,
http://uswaretech.com/blog/2008/10/dynamic-forms-with-django/
Now the order in which I define the fields is not the same as that for
the rendered Html. If I change the line like setattr(EmployeeForm,
On Oct 26, 4:37 pm, "Low Kian Seong" <[EMAIL PROTECTED]> wrote:
> guess it does:
Python will work with QB, as long as both are on the same windows box.
But, I was asking about using django on a remote website to sync with
QB - that might be different.
Hello everybody,
I have a similar problem: a too long drop-down menu inside an inline
element in the admin page.
Is it possible to limit the items displayed in the drop-down list,
filtering them by the value of other fields?
Thank you
Paolo
On 23 Ott, 18:37, Fabio Natali <[EMAIL PROTECTED]>
I'd suggest maybe inheriting your custom User admin class from the
original one and only override stuff you need so you can automatically
take advantage of future changes in contrib.auth.
Erik
On 27.10.2008, at 12:52, Alfredo Alessandrini wrote:
>
> I've solve whit this:
>
>
On Mon, Oct 27, 2008 at 1:07 PM, Frank Malina @ vizualbod.com <
[EMAIL PROTECTED]> wrote:
>
> Hi all,
> in my projects I use a set of settings conventions that are the same
> from project to project. I want to separate them because I don't want
> to repeat myself.
>
> I am also reusing a big deal
Hi all!
I'm getting KeyErrors on my site. The key seems much like a cache key,
and the stack trace verifies it. How can I avoid it?
Is there a maximum number or entries I can use? Or is it not thread-
safe?
CACHE_BACKEND = 'locmem:///?max_entries=3'
Trace comes:
Traceback (most recent
Also discussed here:
http://groups.google.com/group/django-users/browse_thread/thread/51228899c5a9a6c/d49271983401e29e
"If my original post was not entirely clear, I'm interested in any
method available to limit_choices_to that lets you dynamically create
the list of available options as a
Hi,
is there currently a way to have something like:
class Mother(models.Model):
firstborn = models.ForeignKey('Child',
limit_choices_to={'mother':lambda me: me})
class Child(models.Model):
mother = models.ForeignKey('Mother', related_name='children')
(taken from
BTW this is the save method for the model with the rounding function:
def save(self):
def roundminute(d, r):
"""Rounds the datetime d to the nearer r multiple
If r == 15 =>
3:00 -> 3:00
3:05 -> 3:00
3:27 -> 3:30
Hi all,
in my projects I use a set of settings conventions that are the same
from project to project. I want to separate them because I don't want
to repeat myself.
I am also reusing a big deal of my applications throughout the
projects/sites, so it makes sense to give it a clear order and
I have the exact problem. I round end and start dates to 15 minutes. I mean,
user enters 12:10, I write 12:15. So each 15 minutes cron runs a script with
django-commands-extensions runscript. Is a balance between accuracy and
load.
The perfect should be finding the next success to happen (easy)
Hi,
On 27.10.2008 12:45 Uhr, redmonkey wrote:
> Pretty simple stuff. My problem is that I need to run a function at
> the auction_date of the catalogue that will do a few things like
> change the status of the catalogue, and send an email out to some
> admins.
>
> I've done some brief research,
Hi,
I'm working on a simple auctioneer's website. My Catalogue app
consists of a list of Lots arranged into Catalogues. Each catalogue
has an auction_data field which stores a status and a date and time of
the sale:
class Catalogue(models.Model):
DRAFT_STATUS = 1
LIVE_STATUS = 2
I've solve whit this:
http://wolfram.kriesing.de/blog/index.php/2008/customize-admin-for-user-model
Alfredo
2008/10/27 Alfredo Alessandrini <[EMAIL PROTECTED]>:
> Can I customize the auth.users list of the site administration? I need
> to display also the active status in the list.
>
>
To get a new object from a ModelForm you just save it, so the view
should be something like:
def uploadImage(request):
if request.method == 'POST': #if submitted
form = UploadNewImageForm(request.POST, request.FILES)
if form.is_valid():
ir = form.save()
rw =
Can I customize the auth.users list of the site administration? I need
to display also the active status in the list.
Thanks,
Alfredo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Cool, thanks for the reply!
On 24 Oct 2008, at 15:01, Karen Tracey wrote:
> On Fri, Oct 24, 2008 at 6:56 AM, Niall Mccormack <[EMAIL PROTECTED]
> > wrote:
>
> Is it possible to tell Django to ignore certain url's so that it
> resorts to showing what is on the server at that url.
>
> i.e. if I
On 23 Oct 2008, at 5:32 pm, leonel wrote:
> dpkg -l python-django shows all the package contents ..
No, dpkg -l gives you a list of packages your system knows about it
must be
dpkg -L python-django
as I noted before ;)
--
David Reynolds
[EMAIL PROTECTED]
On Oct 27, 6:43 pm, Aljosa Mohorovic <[EMAIL PROTECTED]>
wrote:
> On Oct 27, 5:52 am, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
> > A single instance of the web application would then handle each
> > virtual host.
>
> is this something that is possible/stable to use in mod_wsgi/django
>
> i want to use less memory since every frontend will have
> 100-500 hits per month so there is no real need to have ~10x50mb if i
> can use 50-70mb.
> can you provide any suggestions for this situation?
A) use the sites framework
B) dirtiest and probably most stupid
you can have discovery
This sounds good. Keep me informed. I am currently writing a carpet
inventory based on django.
On Mon, Oct 27, 2008 at 2:27 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> Johnny Utah wrote:
>> Hi Guys,
>>
>> If I'm posting this on the wrong site, my apologies.
>>
>> I'm a beginner to both Python
Wiadomość napisana w dniu 2008-10-27, o godz. 04:00, przez killer
barney:
> I'm not too familiar with how to handle subdomain requests on django.
> If i have test.example.com, is this somethign I'm supposed to find in
> the urls.py?? Or is this done in the middleware?
>
> I'm really confused
On Oct 27, 5:52 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> A single instance of the web application would then handle each
> virtual host.
is this something that is possible/stable to use in mod_wsgi/django
combination?
concrete example, i'm building a site with a single admin interface
Johnny Utah wrote:
> Hi Guys,
>
> If I'm posting this on the wrong site, my apologies.
>
> I'm a beginner to both Python and Django and I would like to develop a
> public site. I'm not looking for help with code as much as with what
> modules I will need (e.g. django.contrib.auth). Any help is
James Bennett wrote:
> On Sat, Oct 25, 2008 at 2:09 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
>
>> We have an alias set up in postfix that sends the e-mail to our script
>> via a pipe.
>>
>> The python script imports our Django models, and parses the e-mail
>> message with the email module,
77 matches
Mail list logo