Re: Can't access the development server

2008-11-17 Thread Ludwig
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. >

Empty template_name for login

2008-08-25 Thread Ludwig
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

Re: Empty template_name for login

2008-08-26 Thread Ludwig
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

Re: Empty template_name for login

2008-08-26 Thread Ludwig
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

Re: Empty template_name for login

2008-08-26 Thread Ludwig
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', {

Re: Empty template_name for login

2008-08-26 Thread Ludwig
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: > >>

Re: How to view the sql query statement involved in a django web page?

2008-08-29 Thread Ludwig
#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

Re: Random ordering in Templates

2008-09-03 Thread Ludwig
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

Re: Random ordering in Templates

2008-09-03 Thread Ludwig
> > > 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

Re: Random ordering in Templates

2008-09-03 Thread Ludwig
): 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]>

Re: GeoDjango question

2008-09-04 Thread Ludwig
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

Re: GeoDjango question

2008-09-04 Thread Ludwig
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

Re: django and sql databases

2008-09-04 Thread Ludwig
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]

Re: Upload images to database

2008-09-08 Thread Ludwig
/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

Re: Upload images to database

2008-09-08 Thread Ludwig
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]> >

Re: GeoDjango: ImportError: cannot import name DataSource

2008-09-17 Thread Ludwig
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

Re: Loading XSD file into memory ONCE

2012-12-10 Thread Ludwig Kraatz
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

HttpResponse Redirect does not work with Internet Explorer behind proxy

2015-11-11 Thread Ludwig Hinske
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