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 question.
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
> access my PostgreSQL databa
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 URL patterns:
> # ur
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 have
> Cookies enabl
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
"Django users" group.
To p
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 function. So, your exampl
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 (your ForeignKey
> > field) is allowed to be
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.
[1] https://docs.djangopro
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 query
> using a random num
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
> understand Django's
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 author.published_articles, u
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 access to, so I can't run
12 matches
Mail list logo