Re: Beginner's question about urls.py

2012-02-22 Thread Jonathan Paugh
What puzzles me is that http://chekonam.info/ claims that uWSGI doesn't know about the project--presumably the one under /admin. Is this relevant? On 02/22/2012 10:45 PM, shartha wrote: > The file I posted above is the actual file on my server. I don't think > I have any conflicts in the

Re: django-admin.py startproject doesn't work

2012-02-13 Thread Jonathan Paugh
On 02/13/2012 11:01 AM, Dennis Lee Bieber wrote: > On Sun, 12 Feb 2012 23:02:20 -0800 (PST), raddy > wrote: ... > Can you run ANY python script (.py) file by typing its name on the > command line?... Say something that does nothing more than: > > print "I'm running"

Re: error

2012-02-13 Thread Jonathan Paugh
On 02/13/2012 06:51 AM, xina towner wrote: > Hi, I get this message when I try to acces to the admin page: > > AlreadyRegistered at /admin > > > The model Location is already registered > > > does anybody know which is the problem? > This is a horrible, horrible problem which I've worked

Re: Model field that links to a page ID, or external URL

2012-02-13 Thread Jonathan Paugh
On 02/13/2012 11:09 AM, Diederik van der Boor wrote: > Hi, > > In CMS interfaces I generally encounter a problem with URL fields. > In most situations, the following options need to be supported: > - An URL to an external page (Django's URLField can handle that) > - An URL to an internal page

Re: Adding first_name and last_name to django registration

2012-01-28 Thread Jonathan Paugh
contrib.auth.models.User has a get_profile() hook that allows you to add extra info to a user account from your own model; however, I don't see support for that in django-registration at first glance. I'm looking at the code from https://bitbucket.org/ubernostrum/django-registration/ On

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-28 Thread Jonathan Paugh
Developing on a Linux-based OS will give you indispensable understanding of your production environment. On the other hand, it will probably be very unfamiliar if you haven't worked on Linux before, and easy tasks will become very difficult again, for a while. You should ultimately develop your

Re: How do you pass dissimilar data from view to template?

2012-01-28 Thread Jonathan Paugh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think jQuery supports this sort of thing, (as I'm sure other Javascript libs do). Then again, learning Javascript + jQuery together seems at least as hard as learning Python + Django. On 01/27/2012 11:31 AM, BillB1951 wrote: > Thanks for the

Re: Handling multiple parameters on URI via GET

2012-01-28 Thread Jonathan Paugh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is the request.GET.get() method working properly? Does the test on query work? I suspect one of these places doesn't work as expected. I'd do similar to the following in my code. (It works on Django 1.3.1 for request.POST, anyway.) if 'page' in

Re: Moving a file manually

2012-01-27 Thread Jonathan Paugh
On 01/26/2012 03:44 AM, Tor Nordam wrote: Hello, I have a model with a FileField, that I use to store some user uploaded files. After a while, I changed my mind about where to store the files, so I was just wondering if there is a way to manually move a file, and then update the location of the

Re: Determine gender from first name

2012-01-27 Thread Jonathan Paugh
- Original Message - From: Demetrio Girardi Sent: 01/25/12 03:49 AM To: django-users@googlegroups.com Subject: Determine gender from first name This is not a django-specific question, but I couldn't find anything useful on the subject and have no better place to ask. Let's say I want to

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread Jonathan Paugh
On 01/23/2012 03:58 PM, JJ Zolper wrote: Yes I knew I was in the Python shell I just never saw anything that described you couldn't make Django commands within the Python interpreter. I mean it is based on Python isn't it? That's where I thought logically you could make Django calls from in