Re: get django with ftp

2013-06-21 Thread Sebastian Goll
On Fri, 21 Jun 2013 06:54:11 -0600 Larry Martell wrote: > Is there a ftp site I can download django 1.4 and 1.5 from? Usually I > get it from https://www.djangoproject.com/download/1.5.1/tarball/ > but now I have to install it on a remote machine that I only have > putty

Re: reverse function giving me NoReverseMatch exception

2012-08-29 Thread Sebastian Goll
On Tue, 28 Aug 2012 23:35:01 -0700 (PDT) nav wrote: > BACKEND = r'(?P[a-z])' Your BACKEND pattern is only matching single characters. Try BACKEND = r'(?P[a-z]+)' Best wishes, Sebastian. -- You received this message because you are subscribed to the Google Groups

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-11 Thread Sebastian Goll
On Thu, 10 May 2012 23:56:50 -0700 (PDT) Johan wrote: > Hi thanks for the quick reply. After some more investigation I am quite > sure that this is exactly the issue. Thanks again for the quick reply. Now > to just find an elegant way to let the user know that they need to

Re: Django: 404 page not found

2012-04-03 Thread Sebastian Goll
On Mon, 2 Apr 2012 17:14:00 -0700 (PDT) Homer wrote: > I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom . > It says on the webpage that "C:/Django/final/media/bedroom" does not > exist". Why would this happen? I am positive the problem is with your

Re: Problem loading integer data into database using fixture

2012-02-17 Thread Sebastian Goll
On Thu, 16 Feb 2012 22:18:03 -0800 (PST) Gchorn wrote: > Unfortunately, that doesn't seem to be the case. I have the database > user and password in my settings.py file, but I still have to do a > "sudo su postgres" to switch to postgres in the terminal before I can >

Custom times in admin time selector

2012-02-08 Thread Sebastian Goll
Hi all, For DateTimeFields, the admin presents selector widgets for both the date and time form fields. The default choices for the time selector are: Now, Midnight, 6 a.m., Noon. I'd like to replace those default choices with something different, depending on the ModelAdmin instance in

Re: Managers of related fields

2011-12-31 Thread Sebastian Goll
On Fri, 30 Dec 2011 19:37:54 -0800 (PST) Daniel Kaplun wrote: > I have Articles that refer to Authors using > ForeignKey(related_name='articles'). Given an Author author, I'd like > to be able to use the default manager for author.articles, but I'd > also like to have

Re: What does login() and logout() actually do?

2011-12-30 Thread Sebastian Goll
On Fri, 30 Dec 2011 16:34:13 -0800 (PST) David Zheng wrote: > Does anyone know where can I find the source code of the login() and > logout() function or any articles talking about these two functions in > detail. I really need to know what happens behind the scene to better >

Re: Help me with this query

2011-12-23 Thread Sebastian Goll
On Fri, 23 Dec 2011 20:16:11 +0100 Babatunde Akinyanmi wrote: > I actually have a database with thousands of records from which I have > to randomly select just 10 records from the thousands during every > query. Because of efficiency, I use the normal select with limit

Re: automatic models.py generation

2011-10-20 Thread Sebastian Goll
On Thu, 20 Oct 2011 15:03:33 -0700 (PDT) Xangó3007 wrote: > I want to generate models.py file from a mysql database, (inverse > reengineering). Can you show me how to do it? Thanks. Xangó from Spain (django-admin/manage).py "inspectdb" [1] is your friend. Sebastian.

Re: How to do equivalent of LEFT JOIN ON in Django (returning all Left rows, when Right item may not exist)

2011-10-08 Thread Sebastian Goll
On Sat, 8 Oct 2011 16:30:37 -0500 Javier Guerra Giraldez wrote: > On Sat, Oct 8, 2011 at 8:18 AM, Michal Petrucha > wrote: > > Behind the scenes, Django does a JOIN. Its type (INNER od LEFT OUTER) > > is decided based on whether the left-hand column

Re: Using render() with Form?

2011-10-03 Thread Sebastian Goll
On Mon, 3 Oct 2011 05:17:49 -0700 (PDT) Victor Hooi wrote: > from django.shortcuts import render > ... > def upload_file(request): > ... > return render('upload_form.html', {'form': form}) "render" requires as its first argument the request object supplied to your view