JSONField with callable default reports ModelForm.has_changed() when it hasn't

2021-04-08 Thread Stuart Kelly
The issue is similar to this bug that has been fixed: https://code.djangoproject.com/ticket/24428 however doesn't seem to be due to coercion. I've discovered this when trying to update a project from django 2.2 to 3.2 test case to reproduce (in a new django project/app) ``` from django.db import

Re: Speedy Mail Software

2015-08-02 Thread Stuart Longland
similar to Google Web Toolkit - people will write code in > Python, and it will run on the server side, and on the client side with > JavaScript (it will compile Python code to JavaScript, like Google Web > Toolkit from Java to JavaScript). That sounds an awful lot like the Pyjamas (n

Re: Is there a plan to modernize Django-admin?

2015-07-18 Thread Stuart Longland
On 18/07/15 11:00, Ezequiel Bertti wrote: > Do you already see this project? > > https://github.com/sshwsfc/django-xadmin Unfortunately their homepage just swears at me in Chinese. -- Stuart Longland (aka Redhatter, VK4MSL) I haven't lost my mind... ...it's backed up

Re: Change "Add another" text in inline views

2014-08-30 Thread Stuart Longland
ot;{% blocktrans with > verbose_name=inline_admin_formset.opts.verbose_name|capfirst %}Add another {{ > verbose_name }}{% endblocktrans %}" The latter two being the HTML templates used for the stacked and tabular inline widgets. I guess that's a starting point then. :-) Regards, -- Stua

Re: Difficulties deploying Satchmo store

2012-07-02 Thread Stuart Laughlin
at rather than mod_fcgi. I'm cross-posting this answer since you cross-posted the question, but it would probably be best to stick with the general django list unless/until you're asking about something satchmo-specific. Hope that helps, --Stuart On Jul 2, 2012 7:53 AM, "Jonat

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-27 Thread Stuart Laughlin
running php and django side-by-side, but presumably it is possible and perhaps even fairly common, e.g. http://stackoverflow.com/questions/1020390/how-do-i-run-django-and-php-together-on-one-apache-server Hope that helps, --Stuart -- You received this message because you are subscribed to the

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-17 Thread Stuart Laughlin
On Tue, Jan 17, 2012 at 3:56 AM, Tom Evans wrote: > On Mon, Jan 16, 2012 at 11:12 PM, Stuart Laughlin > wrote: >> I also note that everyone who advocates >> for apache concedes that the default installation/configuration is really >> not appropriate for django apps. I in

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-16 Thread Stuart Laughlin
your points about the importance of knowing what your production system is doing and the key role of monitoring. I'm hoping the work you are doing with New Relic will go a long way towards solving those problems. --Stuart On Saturday, January 14, 2012 9:46:00 PM UTC-6, Graham Dumpl

RE: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-14 Thread Stuart Laughlin
ou're interested. http://groups.google.com/group/satchmo-users/browse_thread/thread/6a65b4ab28df38dc/a9b22c236d63c323 --Stuart On Jan 14, 2012 8:50 AM, "Sells, Fred" wrote: > You referenced Graham’s “The Perfect Config”. I’ve been googling without > success to find

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-13 Thread Stuart Laughlin
On Fri, Jan 13, 2012 at 12:37 PM, Javier Guerra Giraldez wrote: > On Fri, Jan 13, 2012 at 1:03 PM, Stuart Laughlin > wrote: >> Just wanted to clarify that there are in fact some instructions out there >> for options other than apache/mod_wsgi, even though mod_wsgi remai

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-13 Thread Stuart Laughlin
we’d recommend you try *mod_wsgi* first. In most cases it’ll be the easiest, fastest, and most stable deployment choice." [sic]) --Stuart -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visi

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-13 Thread Stuart Laughlin
ow many others share my experience. So anyway, there are two aspects -- the performance/stability aspect where I reckon we are in essential agreement, and then there is the troubleshooting/diagnosing aspect where I am advocating that apache is more complicated than the lighter servers. Hope

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-13 Thread Stuart Laughlin
der until just now -- cross- platform compatibility might be a factor. I use linux for everything, so that's all I care about. To be frank I have no idea whether nginx / lighttpd / cherokee / gunicorn / uwsgi run on Windows or Mac. If they do not then that can tend to complicate the docs somewhat.

Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-13 Thread Stuart Laughlin
On Jan 13, 5:01 am, Tom Evans wrote: > On Thu, Jan 12, 2012 at 11:32 PM, Stuart Laughlin > wrote: > > I don't care a whit about what "the cool boys" are doing. What I care about > > is a production deployment that works efficiently and reliably and that is >

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-12 Thread Stuart Laughlin
p-and-virtualenv-django/ * http://www.saltycrane.com/blog/2010/10/how-install-pil-ubuntu/ * http://brandonkonkle.com/blog/2010/jun/25/provisioning-new-ubuntu-server-django/ Hope that helps, --Stuart On Thu, Jan 12, 2012 at 5:37 PM, Jeff Heard wrote: > http://kencochrane.net/blog/2011/06/django-

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-12 Thread Stuart Laughlin
On Thursday, January 12, 2012 10:09:13 AM UTC-6, Javier Guerra wrote: > > On Thu, Jan 12, 2012 at 9:54 AM, Stuart Laughlin > wrote: > > # author admits he is a non-sysadmin noob > > ad-hominem > False. I pointed out what the author clearly stipulates. "I’m a sys a

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-12 Thread Stuart Laughlin
e.com/display/chef/Build+a+Django+Stack I reckon you could also do something like that, perhaps a bit more crudely, with shell scripts and fabric. I haven't seen any good examples of that though. --Stuart -- You received this message because you are subscribed to the Google Groups "Djan

Re: am I understanding sessions correctly?

2011-12-23 Thread Stuart Laughlin
ke you've got a handle on that part). I haven't thought through the load balancer bit yet, but presumably they are all using the same cache / database / session store..? --Stuart -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Django E-Commerce Framework

2011-12-08 Thread Stuart Laughlin
On Dec 6, 3:45 pm, Stuart Laughlin wrote: > > Another advantage of satchmo (and please forgive the self-promotion) > is that you can purchase a companion mobile application that extends > your website to iphones, ipads, android devices, and the like via apps > native to each platfo

Re: Django E-Commerce Framework

2011-12-08 Thread Stuart Laughlin
terface is not suited for such application > I don't know exactly what you mean by that. I will say that when I implemented satchmo for a client with thousands of products, I did have to tweak satchmo's admin templates in a couple places to get admin pages to load more quickly. P

Re: Django E-Commerce Framework

2011-12-06 Thread Stuart Laughlin
your website to iphones, ipads, android devices, and the like via apps native to each platform. Preliminary information is at http://www.johnheerman.com./portfolio/ with a dedicated site coming Real Soon Now. --Stuart On Dec 5, 11:40 pm, "Md,Mehedi Hasan Kabir(Tanim)" wrote: > Hi &

Re: will an empty middleware class consume any time (except during initial import?)

2011-11-21 Thread Stuart Laughlin
e entry in MIDDLEWARE_CLASSES. But since the class does not define any of the middleware methods, it will not ultimately be registered and therefore will not consume any CPU time when handling a request. Hope that helps, --Stuart On Nov 21, 5:51 am, Tom Evans wrote: > On Sat, Nov 19, 201

Re: MVP--an open source repository for libraries and modules

2011-11-15 Thread Stuart Laughlin
I came across this acronym again today. I'm quite certain it refers to "minimum viable product," a term popularized by (so says wikipedia) Eric Ries (with whom I am also unfamiliar). --Stuart On Nov 13, 2:56 pm, Kurtis Mullins wrote: > Im assuming he means Model View Prese

Re: site organization best practices

2011-11-15 Thread Stuart Laughlin
FWIW I agree with Mike. It's difficult to advise without seeing exactly what you're doing, but I think Mike's advice/approach is sound. --Stuart On Nov 15, 4:16 am, Mike Thon wrote: > I'm no expert here but if it were me building this project, I'd build the >

Re: MVP--an open source repository for libraries and modules

2011-11-13 Thread Stuart Laughlin
http://www.acronymfinder.com/MVP.html ? On Nov 12, 9:04 am, skier31415 wrote: > I'm a coder, but I don't code for the majority of my time.  What I do > is identify, install, employ, and adapt mostly working solutions.  I > stand on the shoulders of giants.  There are very few good ways to > ident

Re: Django models design question

2011-10-17 Thread Stuart
uot;better" approach assuming you are up for it. You would have to decide when to construct these dynamic models, among many other decisions. I'm on holiday for the next couple days, but I will check back with the list to see how you're getting on when I return. Good luck! --Stuart --

Re: Django models design question

2011-10-14 Thread Stuart
gistration subjects. Hope that helps, --Stuart On Oct 14, 6:53 am, omerd wrote: > Hello everybody, > I am writing my first web application with Django. > > I want to create a web of registration for many subjects. > However, each subject require different set of details to be s

Re: Your Impressions on DjangoCMS

2011-10-10 Thread Stuart
On Oct 6, 3:57 pm, colinta wrote: > The only > curve ball is that the client will need customizable forms.  Otherwise > it's a pretty standard site. > There's an app / django-cms plugin for that. I haven't tried it though. https://github.com/philomat/django-form-d

Re: Your Impressions on DjangoCMS

2011-10-10 Thread Stuart
ld evaluate Pinax [1] (as Kevin mentioned), Feincms [2], Mezzanine [3], and Mingus [4]. Hope that helps, and good luck! 1: http://pinaxproject.com/ 2: https://github.com/matthiask/feincms 3: https://github.com/stephenmcd/mezzanine 4: https://github.com/montylounge/django-mingus --Stuart -- You

Re: suggestion for dependency injection in view tests

2011-10-04 Thread Stuart
= suggest(request, get_friends=pretend_get_friends)     self.assertEqual(response.status_code, 200) # or whatever --Stuart On Oct 4, 9:18 am, Stuart wrote: > Here is one approach... > > class FBFriends: >     def get_friends(self, current_user): >         return __get_friends(current_user) # h

Re: suggestion for dependency injection in view tests

2011-10-04 Thread Stuart
t, friend_source=FBFriendsMock()) self.assertEqual(response.status_code, 200) # or whatever --Stuart On Oct 4, 7:34 am, Reikje wrote: > In one of my views, I am doing a call to the Facebook graph API which > is a bit heavyweight and you also need a valid token. I am looking > into ways to us

Re: Trouble expressing a query in the ORM

2011-09-12 Thread Stuart
of bringing back only the most recent property on each target) but I wanted to mention it for the archives since no one else had. --Stuart -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: Combining queries? A "join" in Python?

2011-09-01 Thread Stuart
On Sep 1, 8:19 am, graeme wrote: > > I used the same approach with my existing models, and it works fine. > The code is shorter, the queries are simpler, my template is simpler > and it is a lot faster. > Glad you got it sorted! --Stuart -- You received this message

Re: Combining queries? A "join" in Python?

2011-08-31 Thread Stuart
he root) print "%s (%s)" % (c.name, c.texts.count()) # Subcategory One (3) Rework that code to traverse all the way to the bottom (smarter iteration or maybe recursion) and you've got what you need without a complicated query. --Stuart -- You received this message because you are subscr

Re: Combining queries? A "join" in Python?

2011-08-30 Thread Stuart
rhaps rethinking your models will make the query easier. Hope that helps, --Stuart -- 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 this

Re: Django can't see my static files

2011-08-04 Thread Stuart MacKay
web server to serve up the files): if settings.DEBUG: urlpatterns += patterns('django.views.static', (r'^%s(?P.*)$' % settings.STATIC_URL[1:] , 'serve', {'document_root': settings.STATIC_ROOT}), ... ) This should get everything

Re: Customizing Form Field HTML Attributes

2011-07-31 Thread Stuart MacKay
) url = forms.URLField() comment = forms.CharField( widget=forms.TextInput(attrs={'size':'40'}))" Regards, Stuart MacKay Lisbon, Portugal > > I would like to use the 'title' attribute of several form fields to hold our > help_text, rather th

Re: tar xzvf Django-1.3.tar.gz

2011-07-30 Thread Stuart
Those commands assume you are using linux. There is more information for Windows users over here: https://docs.djangoproject.com/en/1.3/topics/install/#installing-official-release --Stuart On Jul 30, 1:41 am, Technical Writer wrote: > Hello,all: >     I am a technical writer here in Chi

Re: snippet

2011-07-27 Thread Stuart MacKay
w up until the bottom of the second page. Stuart MacKay Lisbon, Portugal Tried this snippet but not working http://djangosnippets.org/snippets/2306/ Anyone else tried it, I would like to drag and drop rows on django admin. Thanks. RJ -- You received this message because you are subscri

Re: Setting up EC2 for Django

2011-07-03 Thread Stuart
imilar). 5) Figure out how to install and configure solr Of course each of those steps could be broken down quite a bit. Along the way I reckon you'll work through getting around at the command- line. Feel free to come back and ask more specific questions as you run into problems. Hope that helps,

Re: Implementing a User Search Feature

2011-06-30 Thread Stuart MacKay
something that could easily be found in the django docs. Stuart MacKay Lisbon, Portugal On Jun 30, 9:02 pm, Stuart MacKay wrote: The canonical answer for search in django is probably solr,http://lucene.apache.org/solr/This probably covers all your search needs. haystack,http://haystacksearch.org

Re: Implementing a User Search Feature

2011-06-30 Thread Stuart MacKay
The canonical answer for search in django is probably solr, http://lucene.apache.org/solr/ This probably covers all your search needs. haystack, http://haystacksearch.org/ should provide an easy to use API Stuart Mackay Lisbon, Portugal > Tried googling but couldn't come up with much.

Re: Split up .po files for Internationalization

2011-06-24 Thread Stuart MacKay
but at the cost of an extra step in preparing for deployment. Stuart MacKay Lisbon, Portugal On 24/06/2011 15:45, Gelonida wrote: On 6/24/2011 1:54 PM, Thomas M wrote: Hello django users, I want to use the django internationalization module to translate stuff. The problem is the large .po

Re: Authentication in API (REST)

2011-06-15 Thread Stuart MacKay
Malcolm, oAuth also looks like a great solution - it was not as well developed when I last looked at REST authentication a couple of years ago. There is a lot of developer support now as well, http://oauth.net/code/, specifically https://github.com/simplegeo/python-oauth2 Stuart I think

Re: Authentication in API (REST)

2011-06-14 Thread Stuart MacKay
django. Stuart Hi all, I'm newbie in Django, and I started to build my own API. I know that there is Piston or Django REST framework, but I want to learn API from scratch. What I want to know is, how to make my HTTP Response (View) is perform authentication before can be accessed, or we can ma

Re: 2 projects based on the same codebase

2011-06-14 Thread Stuart MacKay
is to some extent) but you easily avoid compatibility issues and then both projects are free to take whatever path works best. Regards, Stuart MacKay Lisbon, Portugal Hi, I developed a calltracking for our team and now, another team is interested to have their own calltracking. The best

Re: django database

2011-05-26 Thread Stuart MacKay
your site is wildly successful - at this point you will be more than able to pay somebody else to worry about that. Regards, Stuart MacKay Lisbon, Portugal hi, do i have to install mysql to create a database in my website? tnx -- You received this message because you are subscribed to the

Re: UK-based Django Host?

2011-05-25 Thread Stuart MacKay
I use a Linode 512 VPS hosted in London. So far it has been awesome. Stuart MacKay Lisbon, Portugal I know this question has been asked before, but the most recent thread I can find in the archives is from 2007, and presumably the landscape has changed since then. I'm looking for a Webfa

Re: installing django

2011-05-24 Thread Stuart MacKay
installing Django and second it will give everybody on this list who can help you with a good reference point for the steps you carried out. So when you say "I am having trouble with X" then it will be a lot easier to identify what the problem might be. Regards, Stuart MacKay Lisbon, Portug

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Stuart MacKay
pip effectively does a clean install. Regards, Stuart MacKay Lisbon, Portugal I'd like to know what kind of experience people have had, in using virtualenv (to run a particular version of Python on a VPS) with Django, and related packages? Not *just* Django (and Python), I'm fairly

Re: MEDIA and STATIC in a nutshell?

2011-05-15 Thread Stuart MacKay
. Each sentence has the same level of importance so it is easy to miss an important detail in the middle of a paragraph. Happily this confusion quickly disappears once you become more familiar with Django and the documentation style. Regards, Stuart MacKay Lisbon, Portugal Shawn, Thank you

Re: How to choose a license for an app or a project?

2011-05-13 Thread Stuart MacKay
private then you should use a commercial, proprietary license. If you used the BSD license then there is no reason I cannot decompile your binary to generate useful source code which I could then distribute freely. Regards, Stuart So if I want to create a software for which I don't want to

Re: How to choose a license for an app or a project?

2011-05-13 Thread Stuart MacKay
selections of links that describe the different types of Open Source licences available. Regards, Stuart MacKay Lisbon, Portugal What do you guys think about the MIT license? In what particular case would I be needing an MIT license? -- You received this message because you are subscribed to the Google

Re: Apache + mod_wsgi deploy problem

2011-05-10 Thread Stuart MacKay
The idea behind using telnet was simply to verify the network connections - that the web server is listening on the correct port and that your router was working correctly. Stuart I am not sure I got your suggestion and I don't have telnet working but i have similar rules for d

Re: Apache + mod_wsgi deploy problem

2011-05-10 Thread Stuart MacKay
Can you telnet to the web server: telnet 80 (assuming it is listening on port 80). That would at least tell you whether your LAN setup was correct. Stuart MacKay Lisboa, Portugal -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Loading project to alwaysdata

2011-05-10 Thread Stuart MacKay
Try Google Translate, http://translate.google.com/?hl=en#fr|en|, it's not perfect but it does rather a good job, particularly on formal documents. Regards, Stuart MacKay Lisboa, Portugal My problem with those is that I can't read french so I have no idea what it is saying. On M

Re: Problem in Configuring the database

2011-05-09 Thread Stuart MacKay
run Django locally. That would eliminate all your problems in one go and allow you to get started with your first project. After that you can try MySQL once you are more familiar with Django and understand you needs better. Regards, Stuart -- You received this message because you are

Re: Problem in Configuring the database

2011-05-06 Thread Stuart MacKay
options you have tried would make it easier to identify the problem. Regards, Stuart MacKay Lisboa, Portugal -- 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

Re: Problem in Configuring the database

2011-05-06 Thread Stuart MacKay
basic things you need. You can "upgrade" to MySQL later. Regards, Stuart MacKay Lisboa, Portugal -- 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 unsubsc

Re: framework web comparison

2011-04-08 Thread Stuart MacKay
works and would give you enough information to make your evaluation more objective. Stuart Lisboa, Portugal -- 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 unsubsc

Re: Hi multilingual charfields?

2011-03-31 Thread Stuart MacKay
easy to do. Stuart -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more

Re: Localization of CharField entries

2011-03-22 Thread Stuart MacKay
have. Regards, Stuart -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more

Re: django CMS 2.1 final was just released!

2011-01-27 Thread Stuart
Fantastic! Thanks for your great work, guys. --Stuart On Jan 26, 3:05 pm, Jonas Obrist wrote: > We are very proud to announce that a few moments ago, the django CMS > team released the final release for version 2.1.0. This new version adds > new exciting features to our CMS and f

Re: What is a good app to use for a portfolio or images and videos?

2011-01-27 Thread Stuart
Have a look at django-filer by Stefan Foulis. There's also a plug-in for use with django-cms, if you wish. https://github.com/stefanfoulis/django-filer --Stuart On Jan 27, 7:30 am, mongoose wrote: > Hi hi, > > Wanting to make a simple site that hosts images and videos. Like a &g

Re: can't adapt type 'Decimal'

2010-06-25 Thread Stuart
ou're having the same problem I was. To fix it, upgrade to the latest version of mod_wsgi and run it in daemon mode. See here for details: http://groups.google.com/group/satchmo-users/msg/a9b22c236d63c323 Hope that helps, --Stuart -- You received this message because you are subscribed to

Re: can't adapt type 'Decimal'

2010-06-25 Thread Stuart
3c323 Hope that helps, --Stuart -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.c

Re: Admin issues

2010-04-09 Thread Stuart
What you have looks about right. What result are you getting? An error message? --Stuart On Apr 9, 7:44 am, Sheena wrote: > Hey hey. I'm a little new to Django so I've been following through the > Django Book v2 and I'm having trouble adding my models to the admin > si

MediaCore: An Open Source video and podcast CMS platform built on python & turbogears

2010-01-16 Thread Stuart Bowness
comments please feel free to send me a message. You can find us on twitter as well @simplestation. Cheers, Stuart Bowness Creative Director http://simplestation.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Incorrect key file for temporary table

2009-12-11 Thread Stuart Marsh
rofile model has a foreign key to User and one to another model. If I remove both of these from list_display, it displays fine. The individual record also displays fine. Also, this isn't causing any problems on our site, which reads from and writes to the Userprofile table. Any ideas wo

Configuring django cms with mod_python

2009-02-26 Thread stuart
Hi, I'm new to django and am having problems configuring the django-cms application with apache (using mod_python). I have followed the install steps (http://django-cms.org/installation/) but Apache throws the following error: ImportError: No module named cms My foo.com website code has 1 inven

Re: Admin interface using my views

2008-07-08 Thread Stuart Grimshaw
On Jul 8, 2:40 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 06:22 -0700, Stuart Grimshaw wrote: > > I'm getting this error when trying to view my admin interface ... > > > In template /usr/lib/python2.5/site-packages/django/contrib/admin/

Admin interface using my views

2008-07-08 Thread Stuart Grimshaw
I'm getting this error when trying to view my admin interface ... In template /usr/lib/python2.5/site-packages/django/contrib/admin/ templates/admin/base.html, error at line 28 Caught an exception while rendering: Tried showSides in module teamsheet.sheets.views. Error was: 'module' object has no

Re: CharField as text?

2008-07-02 Thread Stuart Grimshaw
On Jul 1, 9:41 pm, Brian Luft <[EMAIL PROTECTED]> wrote: > What is your purpose in defining a form field if it won't be used for > user input? I wanted to try and kee things simple (and look where that got me). I have a list of players, and want to display them, with checkboxes next to the names

CharField as text?

2008-07-01 Thread Stuart Grimshaw
Is it possible (with newforms) to either display a CharField as just text, or have it's value used as the label on another field? I'm displaying names against checkboxes and I want the names to appear as the checkbox labels (or at least appear like they are) Any tips anyone? -S --~--~-~-

Re: Choosing between User.first_name/last_name & username

2008-06-22 Thread Stuart Grimshaw
On Jun 22, 11:48 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > Stuart Grimshaw wrote: > > but it was throwing syntax errors on "player.player.first_name == '' ? > > player.player.username : player.player.first_name)" > > It looks like you

Choosing between User.first_name/last_name & username

2008-06-22 Thread Stuart Grimshaw
As part of my sign up process, I don't require that people fill in their first/last name, and just choose to show the username if no name is entered. Unfortunatly, I've come across a bit of code that I can't do this in, which has got me thinking, I'm doing this all over the show, so there must be