uper magic about ports: they are just a number, but client and server need
to use the same...
HTH
Ludwig
2008/11/17 Ben <[EMAIL PROTECTED]>
>
> Hi,
>
> I'm completely new to python and Django, although fairly familiar with
> programming and web servers in general.
>
he error that the kw arg is
doubly defined.
(If in auth.views.login I set the template_name explictly to my template,
overriding the empty string, it works, so my template is ok)
Any idea what is going on here?
Ludwig
--~--~-~--~~~---~--~~
You received this message becaus
ot multiple values for keyword
argument 'template_name' (one of them seems to be empty, the other one the
one I pass in).If I hardcode the template name in the django code as a hack,
it works, so there is nothing wrong with my template.
It is a straight django 1.0 beta1 installation
I just tried the same with a fresh installation from SVN trunk and get the
same error.
2008/8/26 Ludwig <[EMAIL PROTECTED]>
> Try again:
>
> If I do this in urls.py
>
> ...
> ('^accounts/login/(.*)', 'django.contrib.auth.views.login'),
> ...
&g
n/(.*)', 'django.contrib.auth.views.login',
{'template_name' : '/registration/login.html'}),
('^accounts/profile/(.*)', 'django.contrib.auth.views.profile'),
('^accounts/logout/(.*)', 'django.contrib.auth.views.logout',
{
Well spotted, that was it. Not sure where I got the (.*) from, it is
certainly not in the documentation.
Thanks
Ludwig
2008/8/26 Karen Tracey <[EMAIL PROTECTED]>
> On Tue, Aug 26, 2008 at 7:21 AM, Ludwig <[EMAIL PROTECTED]>wrote:
>
>>
#x27;time':time})))
return response
and you have to turn it on in your middleware in settings.py
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.mi
rough your (randomly ordered result) with a
template for loop.
HTH
Ludwig
2008/9/3 Cortland Klein <[EMAIL PROTECTED]>
>
> I've got the following in my template:
> > {% for question in event.question_set.order_by('?') %}
>
> And am getting the error "C
>
>
> Can I do that with a Generic View?
>
There is nothing to stop you putting the order_by clause into a generic
view, like so:
event_info = {
'queryset' : Events.objects.order_by('?'),
}
>
> I'm using date_based.archive_index on an Event model which has many
> Questions.
>
> On Sep 3, 2
):
questions = self.question_set.all().order_by('?')
return questions
You can then call the questions method inside your template when you have an
event:
{% for question in event.questions %}
question
{% endfor %}
Ludwig
2008/9/3 Cortland Klein <[EMAIL PROTECTED]>
nd I will try to give
you a hand.
HTH
Ludwig
--~--~-~--~~~---~--~~
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 thi
our data
source with any kind of GIS software, it should tell you what SRS it is in.
If you set it to -1, the DB will have no idea how to do the distance
calculations.
Ludwig
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
at one-to-many relationships in the Django documentation on
http://www.djangoproject.com/documentation/db-api/
Once you have your Django model a
python mangage.py sql
will print out the sql Django expects if you need to adapt an existing
database.
HTH
Ludwig
2008/9/4 David <[EMAIL PROTECTED]
/sorl-thumbnail/), which gives you a
lot of the power of the Python Imaging Library within a template tag, while
leaving your image data on the file-system.
Ludwig
2008/9/8 nsash <[EMAIL PROTECTED]>
>
> How can I upload an image in the database? As it is now , in database
> is
d for a specific user and are time-limited: so an image within a page
will load, but it would not load if someone tried later from a different
machine. This is not fully thought through, so other thoughts on this issue
are quite welcome.
Ludwig
2008/9/8 Erik Allik <[EMAIL PROTECTED]>
>
e loaded the GDAL libraries, which in my
experience (which is more on win32 and linux) is a good indicator that the
libraries itself are installed correctly.
Maybe if you post the result from that call again it becomes clearer what is
going wrong.
Ludwig
2008/9/17 Alfonso <[EMAIL PROTECT
sd_id, current_xsd)
best regards
ludwig
Am Sonntag, 9. Dezember 2012 09:05:05 UTC+1 schrieb Dwayne Ghant:
>
> Hello All,
>
> I will be short and sweet. I have a simple (well at least I think it's
> simple) question. First let me explain, I'm writing a RESTful webserv
king for a solution, I'll be posting "configuration on
demand" :-)
Thanks a lot in advance to all of you,
Ludwig
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving email
18 matches
Mail list logo