I have what must be a common problem: there are three master files,
and a transaction in my admin site involves selecting an item from
each of these files. The field in the Transaction table is a foreign
key pointer to the master file's record. The default admin display
condition in the add/change
I have what must be a common problem: there are three master files,
and a transaction in my admin site involves selecting an item from
each of these files. The field in the Transaction table is a foreign
key pointer to the master file's record. The default admin display
condition in the add/change
Nevermind, I was missing something terribly basic and just needed to
stop looking at it for a bit to realize how to combine it.
On May 22, 5:08 pm, Jonathan wrote:
> I am sure this is some very easy and simple concept I am just not
> grasping. I have two views which are very similar. Both tak
Okay I just came up with this, let me know if this is a really hacky
way to do this. With this it will save the model, then the file and
then the model again, not sure how to do this since we don't get the
filename until after we save the file and we have to set the filename
in the database.
clas
thank you.
On Sun, Jun 14, 2009 at 9:10 PM, Rama Vadakattu wrote:
>
> Recently i worked with openid i have used the below package for
> implementing it.
> http://code.google.com/p/django-openid-consumer/
> It is basically a fork of simonwillison django-openid implementing
> new openid features.
Fixed. I had accidentally set handler404 to a blank string.
--~--~-~--~~~---~--~~
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
I am creating a custom image field, that I would like for it not to
save the image until after the model instance is written to the
database (i want the id for the object to use in the filename). The
ImageField class saves the image to storage via pre_save. Is there any
methods or any other code t
All,
When creating a pluggable app, I've run across the need to use the
django.views.generic.create_update.delete_object view. Below is a
snippet of my URL patterns.
from django.conf.urls.defaults import *
from django.core.urlresolvers import reverse
urlpatterns = patterns("",
url(r"list/",
Hello,
I'm trying to make changes to views and forms but when I refresh the
browser to view/try the changes nothing seems to have changed. I
normally do "touch dispatch.fcgi" which is working with templates and
urls but with views and forms I get nothing different. I tried other
browsers and clea
On Jun 16, 3:38 pm, Brian Neal wrote:
> Wellinstead of ranting about this here, why don't you open a
> ticket and detail your findings. It is in the communities best
> interest to have something like this fixed if it is indeed a problem.
> Thanks.
Because the "fix" will introduce the origina
I have cleaned up my model view and I thought for sure that serial_num
field is gone. I have dropped the db and re-created the db with ./
manage.py syncdb but I still get the below error message. It seems
like it is cached somewhere. I had this working before I modified the
models.py. When I do
Thanks Alex.
On Wed, Jun 17, 2009 at 9:14 AM, Alex Gaynor wrote:
>
>
> On Tue, Jun 16, 2009 at 6:12 PM, Joshua Partogi wrote:
>
>> Dear all,
>>
>> I want to add an asteriks in the template for required Form Fields. What
>> is the instance attribute for it? I tried reading from
>> http://docs.dja
On Tue, Jun 16, 2009 at 6:12 PM, Joshua Partogi wrote:
> Dear all,
>
> I want to add an asteriks in the template for required Form Fields. What is
> the instance attribute for it? I tried reading from
> http://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fieldsbut
> could n
Dear all,
I want to add an asteriks in the template for required Form Fields. What is
the instance attribute for it? I tried reading from
http://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fieldsbut
could not find anything like it. I wonder how they do it in the django
admi
On Jun 17, 12:55 am, "eric.frederich"
wrote:
> Someone on freenode's #django mentioned using djblets to accomplish
> this.http://www.chipx86.com/blog/2008/04/03/django-development-with-djblet...
>
> It did not work.
>
> With "WSGIScriptAlias /apps /path/to/django_application/apache/
> django.w
On Jun 17, 4:09 am, "sstein...@gmail.com" wrote:
> On Jun 16, 2009, at 2:00 PM, gte351s wrote:
>
>
>
> > Gabriel - thanks for the quick response.
> > Sorry for the delay in answering, I was away for a bit :)
>
> > I had some issues with the setup, but I think I'll
> > put it on hold for a bit a
ohh, thanks, Daniel! I like your way. and i don't even my to expose the
user_id in a form.I'll try that.
On Mon, Jun 15, 2009 at 10:55 PM, Daniel Roseman wrote:
>
> On Jun 16, 1:12 am, k-dj wrote:
> > I'm just starting to use django and have run into a problem I have not
> > been able to solve.
I have a circumstance that requires me to use an alternative
authentication scenario. The authentication to our school's web site/
services is handled by the the hosting service. (There is some sort of
syncing that occurs with our local Active Directory database.)
I'm installing some Django apps
Is there a way do something like this with the template system
{% if friend in group.members.all %} or simply {% friend in
group.members.all %}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
Is there someone who have more that one instance running on his server
who would like to share how to do it correctly?
And, how can I make my tables data reappear in the admin interface?
Thank you
Francis
On Jun 15, 2:20 pm, Francis wrote:
> Also, if I set the SITE_ID to be equal in both con
On Jun 16, 2009, at 2:00 PM, gte351s wrote:
>
> Gabriel - thanks for the quick response.
> Sorry for the delay in answering, I was away for a bit :)
>
> I had some issues with the setup, but I think I'll
> put it on hold for a bit and use the django built-in
> dev-server for now.
I tried that o
Gabriel - thanks for the quick response.
Sorry for the delay in answering, I was away for a bit :)
I had some issues with the setup, but I think I'll
put it on hold for a bit and use the django built-in
dev-server for now.
Many thanks!
shilo
On Jun 15, 8:47 pm, "Gabriel ." wrote:
> Hi,
>
> Thi
On Tue, Jun 16, 2009 at 11:48 AM, Andrew Durdin wrote:
>
> Today I ran into an issue where using distinct() and values() on a
> queryset where the model had default ordering would return apparently
> non-distinct results. After searching, I found
> http://code.djangoproject.com/ticket/9186
> whi
Today I ran into an issue where using distinct() and values() on a
queryset where the model had default ordering would return apparently
non-distinct results. After searching, I found
http://code.djangoproject.com/ticket/9186
which indicates that this is now correct behaviour. It took me a long
For REST in Django, there are a number of options, but django-piston
is a front-runner.
---Peter
On 6/14/09, Gunnar wrote:
>
> Good Day,
>
> I'm an 'ol VB6/SQL Server client-server programmer who has moved
> into .NET, Silverlight and has done some websites with Joomla. I've
> also done a LOT o
Hi i wrote an application called category. As you guess it an
application to hold categories. Than i wanted to use it on my site. I
wrote a function that builds html code for displaying categories, but
now i want to use that view as widget.
How can i do it? how can i build a widget ?
That is fun
Someone on freenode's #django mentioned using djblets to accomplish
this.
http://www.chipx86.com/blog/2008/04/03/django-development-with-djblets-unrooting-your-urls/
It did not work.
With "WSGIScriptAlias /apps /path/to/django_application/apache/
django.wsgi" in my apache configuration file, my
Ups... sorry. I just solved it myself.
I overlooked the simple fact that i can use an if/else-construct based
on the extra_context in my template
So i don't have to access the context from a view at all.
Sometimes things are too simple ;-)
--~--~-~--~~~---~--~~
Y
Took me awhile to wrap my head around it, but that got me where I need
to be, thank you.
On Jun 15, 3:41 pm, Streamweaver wrote:
> A custom method in the model could work fine.
>
> If you set a 'get_latest_by' in the Entry Model
> ->http://www.djangoproject.com/documentation/models/get_latest/
thanks gabriel, now everything works..
Hello!!
On Jun 15, 7:47 pm, "Gabriel ." wrote:
> Hi,
>
> This a test conf with mod_python:
>
>
> ServerName py.banshee.lnx
> DocumentRoot "/home/www/python"
> ErrorLog /var/log/apache2/cash-error_log
> CustomLog /var/log/apache2/cash-
Hi all,
i am looking for solution to sort a table in a template:
Basically it's about switching between ascending and descending order.
My idea was to store the current sort order in the template's
extra_context (extra_context={'dir': sortdir,) and retrieve it from
there the next time i call the
On Jun 15, 7:28 pm, Miles wrote:
> I've been running the python memcached connector for a while, without
> much trouble. But just today during a stress test of one of the feeds
> (read: many many requests expected), I've ran into an out of sockets
> situation.
>
> After every single request, the
I finally got Django to email me about 404 and 500 errors. To test
it, I typed in a random path, that I knew would be a 404 error.
However, I got an email, and an error page, about a 500 error. The
email said the following:
File "/home/schoo37/webapps/schoolgoo/lib/python2.5/django/core/
handl
I actually had issues with my most recent installation. These are the
instructions I wrote/use and am currently maintaining. Strangely, it
worked on my previous two installations ...
http://wiki.nginx.org/NginxPythonFlup
I'm using nginx version: nginx/0.6.35
Any assistance on those wiki pages
Thanks man!
Ryan.
On Jun 15, 9:12 pm, Alex Gaynor wrote:
> On Mon, Jun 15, 2009 at 8:34 PM, ebbnormal wrote:
>
> > Hello,
>
> > I have been following along the Django tutorial, and as I was editing
> > the urlpatterns in my urls module, i got the following error
> > when I tried to run the m
AFAIK you can't change your select box's options ordering. You should
do it by changing MONTH_LIST directly.
On Jun 15, 11:38 am, Bastien wrote:
> Hi,
>
> I have a multi choice field to choose 1 or many months in checkboxes:
>
> in forms.py:
> months_open = forms.MultipleChoiceField(choices = MO
thanks!! both works.
Bastien
On Jun 16, 11:10 am, Brian May wrote:
> On Tue, Jun 16, 2009 at 02:07:01AM -0700, Bastien wrote:
> > I don't understand how this works, on my url without arguments I can
> > use the template tag {% url ... %} and it just works but as soon as I
> > have an argument li
On Jun 16, 9:48 am, Genis Pujol Hamelink
wrote:
> well, if you retrieve an object via GET modify something and then submit the
> new data you will create a POST request and I was wondering if I could test
> wether the object being saved was an existing one or not...
>
> greetings,
>
> Genis
>
OK,
On Tue, Jun 16, 2009 at 02:07:01AM -0700, Bastien wrote:
> I don't understand how this works, on my url without arguments I can
> use the template tag {% url ... %} and it just works but as soon as I
> have an argument like this one:
>
> url(r'^users/(?P.+)/comments/$',
> view=public_
Hello,
I don't understand how this works, on my url without arguments I can
use the template tag {% url ... %} and it just works but as soon as I
have an argument like this one:
url(r'^users/(?P.+)/comments/$',
view=public_comments,
name='public_comments'),
and I call it via
well, if you retrieve an object via GET modify something and then submit the
new data you will create a POST request and I was wondering if I could test
wether the object being saved was an existing one or not...
greetings,
Genis
2009/6/16 Daniel Roseman
>
> On Jun 15, 4:23 pm, Genis Pujol Ham
41 matches
Mail list logo