Re: Hostmonster shared hosting and django tinymce

2010-03-17 Thread chris hendrix
ok thanks for pointing me in the right direction. doesn't sound too hard. On Wed, Mar 17, 2010 at 8:59 AM, Omer Barlas wrote: > tchendrix @ 17-03-2010 14:31: > > do you by chance have instructions on how to get that installed with >> django so it works properly? They don't say anything in th

Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
I have to models, one is just a timestamp field and a file, the other has some information. I need to create a view that'll allow our staff to upload a CSV and then it'll automatically take that info and save it into the second model. I found this http://blog.2theleft.la/2010/02/9/importing-csv-fil

Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
derek, thanks, that's a bit much for what we need. i setup this in my views: http://dpaste.com/176380/ I'm getting this error: http://dpaste.com/176382/ How can I get it to open the file that was just uploaded and saved? On Mar 26, 9:27 am, derek wrote: > On Mar 26, 1:54 pm,

Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
So I resolved the previous issue, not i'm getting this error, newline in string. http://dpaste.com/176429/ Any idea? I'm thinking for some reason I need to change something in reader = csv.reader(file, delimiter=',', quotechar='"') On Mar 26, 10:2

Changing transaction isolation level for a particular view function

2010-03-30 Thread Chris Young
s here Obviously, this is suboptimal for a number of reasons. If I simply try to set transaction isolation level without ending the transaction and beginning a new one, I will get an error that it can't be applied after any other select statement (see select version() above). Cheers, Chris

using "id" as a field name in ModelForm.

2010-04-01 Thread Chris Curvey
this has got to be FAQ, but I can't find it for the life of me. I have an ordinary Django model class, which has been automatically been given a field called "id". Great. Now I want to use this field as a hidden value in a ModelForm, but whenever I add "id" to the list of fields in the form, I g

Re: using "id" as a field name in ModelForm.

2010-04-01 Thread Chris Curvey
On Apr 1, 1:51 pm, Nick Arnett wrote: > On Thu, Apr 1, 2010 at 10:34 AM, Chris Curvey wrote: > > > class FoobarForm(ModelForm): > >  foo = forms.FloatField(label = '$') > >  id = forms.HiddenField() > > If you're using newforms, there's no su

Admin creating duplicate inlines

2010-04-08 Thread Chris Amico
Hi folks, I have a model with generically-related Link inline objects, and the admin seems to be trying to overwrite attributes on the first inline object with those of the second. This causes an error when trying to save. Here's what the models look like: class Person(models.Model): first_na

Re: Protecting Static Media from Unauthorized Users

2010-04-14 Thread Chris Moffitt
chmo_store/shop/views/download.py#cl-58 -Chris On Wed, Apr 14, 2010 at 7:06 PM, Dilan wrote: > Hi, > > I know this isn't a completely django-based question but I thought > someone might have an idea, whether it uses Django or not. > > I am currently using what seems to be

Re: Including [django-users] in subject line?

2007-06-09 Thread Chris Moffitt
ndy option.. -Chris On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote: > > > Malcolm Tredinnick wrote; > > > > Outlook has had rule-based sorting into other mailboxes > > for a while, > > > > so I would have thought it was possible to use that. > > >

RE: Including [django-users] in subject line?

2007-06-11 Thread Chris Brand
archive there is more complete than the one on my local machine :-) The Lookout search plugin for Outlook allows me to easily search within a specific folder if I'm looking for something I remember seeing. As for the list itself, this is one of the most helpful lists I've found. Chris --~-

Re: User Friendly Parent Categories in Admin Panel

2007-06-12 Thread Chris Moffitt
etags/category_display.py You can see the various parts in action on the demo store here - http://www.satchmoproject.com/shop/ I hope this helps. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

RE: Providing defaults to models

2007-06-18 Thread Chris Brand
s, like I want votes to have > > a default value of 0. How can I achieve this. I dont seem to find any > > documentation for this, but seems to common a case to not be possible. http://www.djangoproject.com/documentation/model-api/#default Chris --~--~-~--~~~

test client login problems

2007-06-19 Thread Chris Brand
#x27;) self.failUnlessEqual(r.status_code, 403) That last line causes this error : self.failUnlessEqual(r.status_code, 403) AttributeError: 'bool' object has no attribute 'status_code' I can't even see how to work out why it's failing (if I swap the two login calls,

get_absolute_url(), sites and HTTPS

2007-06-21 Thread Chris Brand
age which would actually show something. Apart from that one "s", the resulting URL is fine, but it's a pretty important "s". Is there a way to tell Admin to use HTTPS rather than HTTP for these links ? Failing that, is there a way to turn them off (as

RE: get_absolute_url(), sites and HTTPS

2007-06-21 Thread Chris Brand
ct.org/browser/django/trunk/django/views/defaults.py# L64 in shortcut(), which always uses http://. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

RE: get_absolute_url(), sites and HTTPS

2007-06-21 Thread Chris Brand
(and hostname) as the > originating page, which is the admin site change page. But my admin site *is* accessed through https. The "View on site" button links to a URL like https://[...]/admin/r/11/1/, but when I click on it, it redirects to http://[...]/

RE: 'retrieve': the missing permission?

2007-06-22 Thread Chris Brand
see Chapter 12). Django assumes that if people are allowed to view content in the admin, they're also allowed to edit it." Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

RE: Beginner: (db) help with assigning unique names to multiple ForeignKeys

2007-06-26 Thread Chris Brand
ard time figuring out how > to set this up with Django Sounds like you want unique_together : http://www.djangoproject.com/documentation/model-api/#unique-together I haven't used it myself. Chris --~--~-~--~~~---~--~~ You received this message becaus

RE: test client login problems

2007-06-27 Thread Chris Brand
tests using the login method, although you will probably still > experience difficulties if you try to 'double login' like your test > view is trying to do. Yes, I saw that. Thanks for the warning, though. Chris --~--~-~--~~~---~--~~ You rec

Method to find the admin url for an object

2007-06-27 Thread Chris Brand
in_change_url method ? Thanks, Chris Brand --~--~-~--~~~---~--~~ 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 th

RE: Method to find the admin url for an object

2007-06-27 Thread Chris Brand
self._meta.module_name, pk)) get_admin_url = models.permalink(get_admin_url) Does that look reasonable? Looks like something that could be part of models.Model... Chris --~--~-~--~~~---~--~~ You received this message because you are subs

RE: Method to find the admin url for an object

2007-06-27 Thread Chris Brand
itself, 2. The fact that I'm not the only person who found a need for it - Nathaniel has one, and he credits wamber.net. Against is the corner case you mention, of course. I suppose I should add it to trac to let the experts decide. Chris --~--~-~--~~~---~--~

Re: Dynamic menus using ul and li

2007-06-28 Thread Chris Moffitt
/trac/browser/satchmo/trunk/satchmo/shop/templatetags/category_display.py Hopefully this will point you in the right direction. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

RE: test client login problems

2007-06-28 Thread Chris Brand
ght ? I'll try that later today. > > Sounds like you have the idea. And for the record, that was indeed the answer. I effectively had to replace my second (and subsequent) call to login() (within the one test case) with a call to get(). An alternative is to split them into separa

RE: Admin module, user account editing and group assignment info

2007-07-04 Thread Chris Brand
find the same information in the GUI. I use development > version of Django a few days old. If you go to edit that same user in the Admin, the group should be selected in that same multiselect box. It's as simple as that. Chris --~--~-~--~~~---~--~~

User Profiles and Save()

2007-07-09 Thread Chris Kelly
ave to manually manage saving both objects when making a change? If so, what's the preferred way to do this? by managing the profile via the user object, or by managing the user object via the profile (overriding the profile save method)? Thanks

Re: User Profiles and Save()

2007-07-09 Thread Chris Kelly
mes Bennett" <[EMAIL PROTECTED]> wrote: > On 7/9/07, Chris Kelly <[EMAIL PROTECTED]> wrote: > > > Or do I have to manually manage saving both objects when making a > > change? If so, what's the preferred way to do this? by managing the > > profile via t

Beginner's question

2007-07-09 Thread Chris Rich
. Chris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED

Re: Beginner's question (take two)

2007-07-09 Thread Chris Rich
Cool thanks, Yeah I was didn't think there was a meta class for the app names. I'll go fiddle around with it. Chris On Jul 9, 3:23 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > Quick question. Is there any way to add a verbose name for > > one of my apps? I have a

Generating graphs from db data and displaying results using Django?

2007-07-10 Thread Chris Rich
ke to display the results in my Django page and maybe even make it so I could change some of the graph parameters using some simple Django forms. Any ideas on the best way to go about this? Thanks in advance. Chris --~--~-~--~~~---~--~~ You received this message be

smtp error

2007-07-11 Thread Chris Hoeppner
Hey there! I'm getting a quite weird smtp error when sending mail. Here's a traceback: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/var/www/dj

newforms: manually accessing initial value for field

2007-07-11 Thread Chris Hoeppner
Hi there! I was just wondering how to access the value I've set in the view with Form(initial={'val':somevar}) in the template. Maybe field.value? No. field.initial? No. Any clues? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: session in all templates?

2007-07-11 Thread Chris Hoeppner
to render the template. > How Can I make the session automaticaly available in the base template, > without having to be aware that I don't forgett this parameter for the > Context? > > Thanks, > Martin I know it's not my problem, but you might consider that there migh

RE: Template variable when None displays None

2007-07-11 Thread Chris Brand
der to not display None? I would appreciate any suggestions on how to handle the display of variables equal to None. Are you looking for this : http://www.djangoproject.com/documentation/templates/#default-if-none Chris --~--~-~--~~~---~--~~ You received th

Re: Avoiding HTTP 301 code using mod_python

2007-07-13 Thread Chris Hoeppner
You might want to have a look at: http://www.djangoproject.com/documentation/settings/#append-slash Kind regards, Chris Hoeppner www.pixware.org Miguel Filho escribió: > Hello list, > > I'm deploying my site on webfaction.com using mod_python. URL: > http://interno.home

Looking for 2 great python/django developers in Atlanta area

2007-07-13 Thread Chris H.
ribute back to Django! We also are big fans of telecommuting days and flexible hours. If your interested or know someone who is, please contact me directly: cheisel [at] ajc [dot] com Thanks! Chris H. --~--~-~--~~~---~--~~ You received this message because yo

RE: is there any host servers that supports Django based sites?

2007-07-16 Thread Chris Brand
onf&rnum=1#8fd08f175a11ac82 Chris --~--~-~--~~~---~--~~ 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

Re: Getting debug with apache and mod_python

2007-07-17 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alessandro Ronchi escribió: > > > On 13 Lug, 15:24, "Alessandro Ronchi" <[EMAIL PROTECTED]> > wrote: >> With apache and mod_python, and this configuration: > > I've changed my configuration as follows. I get an 500 error but > nothing goes to apach

Re: Blog engine

2007-07-17 Thread Chris Moffitt
d yet. If nothing else, it's a good reference to help you out. http://www.satchmoproject.com/trac/browser/satchmoproject.com/satchmo_website/apps/blog -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: is there any host servers that supports Django based sites?

2007-07-17 Thread Chris Hoeppner
Tim Chase escribió: >> Frankly, you'd be hard pressed to find any unix (including >> Linux) based web host that doesn't have Python installed. >> Python is a default component of every Linux distribution I've >> ever used. > > Though to add to this, I have used hosting services that still > used P

Bulk data upload

2007-07-18 Thread Chris Hoeppner
Hi there! I've been working on an ecommerce solution. So far everything works like it should. There's just one "nice to have" feature left: bulk upload. I've thought of using xls (microsoft office's excel files) to make it easy on the client, because teaching them xml or yaml isn't the big deal. A

Re: Bulk data upload

2007-07-18 Thread Chris Moffitt
Also, this library is really simple to use to pull data out of excel. http://www.lexicon.net/sjmachin/xlrd.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: Bulk data upload

2007-07-19 Thread Chris Hoeppner
This approach does sound really interesting, and is pretty close to what I've been planning. I wonder if I might have a look at that ExcelImport class :) Toby Dylan Hocking escribió: >> What about CSV? You can export from Excel as CSV pretty easily and it's a >> fairly easy format to parse in p

Request Context and Generic Views

2007-07-19 Thread Chris Hoeppner
Hi there! How does it exactly work when I want a RequestContext to be used in a generic view. There's the context_processors key in the dict you gotta pass it, but "A list of template-context processors to apply to the view’s template" doesn't really mean much to me, and even less after giving it

Random IndexError

2007-07-19 Thread Chris Hoeppner
Hi there! I'm getting random IndexErrors. This has risen when loading templatetags, or just when applying a filter to a var in a template. The traceback doesn't mean much to me, and I'm pretty unsure what may have been the reason for this error. Any help? Mod_python error: "PythonHandler django.

Re: Random IndexError

2007-07-19 Thread Chris Hoeppner
t be worth > filing a ticket, i think. > > On Jul 19, 1:20 pm, Chris Hoeppner <[EMAIL PROTECTED]> wrote: >> Hi there! >> >> I'm getting random IndexErrors. This has risen when loading >> templatetags, or just when applying a filter to a var in a template.

Unicode chars in CharField

2007-07-19 Thread Chris Hoeppner
Hi there! I'm getting this whenever I try to use some non-ascii character in a CharField. I know this has something to do with the unicode() function, but my python knowledge doesn't get me that far. Thanks everyone! Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/djang

Re: Blog engine

2007-07-19 Thread Chris Hoeppner
Stefan Matthias Aust escribió: > If it is so easy to create a blogging application with Django, then > this should be an argument for a standard application, not against it > IMHO. > > At minimum, it could become a nice example application, either as part > of the django distribution or as a separ

Re: Blog engine

2007-07-19 Thread Chris Hoeppner
Stefan Matthias Aust escribió: > Chris, > > 2007/7/19, Chris Hoeppner <[EMAIL PROTECTED]>: > >> There would still be the problem of people wanting to >> "one-click-install" plugins and themes. But why would such a person even >> think about using a

Re: Unicode chars in CharField

2007-07-19 Thread Chris Hoeppner
Chris Hoeppner escribió: > Hi there! > > I'm getting this whenever I try to use some non-ascii character in a > CharField. I know this has something to do with the unicode() function, > but my python knowledge doesn't get me that far. > > Thanks everyone! >

Multiple User profiles

2007-07-19 Thread Chris Hoeppner
Hi there! I just wanted to share opinions on this. I'm in the process of building a rather large site, that's going to expect quite some hits a day. So I want to to keep things as clean as possible. One never knows when I'll be getting my hands dirty again. The User(tm), can have a variable amou

Re: Using Sessions to display the contents of a shopping cart

2007-07-19 Thread Chris Moffitt
The way we handle it with Satchmo is to have a cart object and store that id in the session. It's pretty simple and does not require a user to be logged in. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: newforms

2007-07-20 Thread Chris Hoeppner
Russell Keith-Magee escribió: > On 7/20/07, Alper KANAT <[EMAIL PROTECTED]> wrote: >> What is newforms any way ? A new looking (style) of a form or something >> ? If so, can somebody post a screenshot please ? > > Newforms is the replacement for the old manipulator framework. The old > forms frame

Re: removal of Django

2007-07-21 Thread Chris Hoeppner
Kenneth Gonsalves escribió: > > On 21-Jul-07, at 1:51 PM, Christian Hoeppner wrote: > >> That's just silly. Or I might be dumb. It took me 2 weeks the first >> time >> to setup a django-development environment on my linux pc. And now it's >> "autoloading" somewhere else? Heck, I must have misse

Using django-comment-utils

2007-07-21 Thread Chris Moffitt
arkup', 'tagging', 'blog', ) I'm using Django trunk and comment-utils 0.2. Anyone have thoughts on what I may be doing wrong. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Using django-comment-utils

2007-07-21 Thread Chris Moffitt
I've moved my comments over there. Thanks. --~--~-~--~~~---~--~~ 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

Re: How to communicate with Authorize.net?

2007-07-22 Thread Chris Moffitt
The url for satchmo is - http://www.satchmoproject.com The module that sends data to authorize.net is here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/payment/modules/authorizenet/processor.py -Chris --~--~-~--~~~---~--~~ You received this

Re: Satchmo

2007-07-23 Thread Chris Hoeppner
James Bennett escribió: > On 7/22/07, kbochert <[EMAIL PROTECTED]> wrote: >> If I do install it, will I be able to use it? The Satchmo site has >> zips for 'those who have trouble using svn'. If you professionals have >> trouble, what chance have I? > > The biggest problem with SVN that I've seen

Re: How to communicate with Authorize.net?

2007-07-23 Thread Chris Hoeppner
Chris Moffitt escribió: > The url for satchmo is - http://www.satchmoproject.com > > The module that sends data to authorize.net <http://authorize.net> is here- > http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/payment/modules/authorizenet/proces

Template debugging

2007-07-23 Thread Chris Hoeppner
Hi there! I was wondering if this is even possible (perhaps, some middleware?). I'd like to have a closer look into the context that is getting rendered in each view, including the data I get from the RequestContext. So far, I've been triggering assertion errors to view the django debug page. Ma

URL reverse

2007-07-23 Thread Chris Hoeppner
Hi there! I just don't get the url template tag to work. After reading the docs 5 times and trying every possible name-param combination, I'm about to start hardcoding all my urls. A line of my url.py looks like this: url(r'^categoria/(?P[-\w]+)/(?P[0-9]+)/$', 'view_entry', name="anuncios-entry-d

Re: URL reverse

2007-07-23 Thread Chris Hoeppner
John Shaffer escribió: > Why not use the URL's name? > > {% url anuncios-entry-detail category=entry.category.slug,entry=entry.id %} > > --~--~-~--~~~---~--~~ > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Overriding the model's save() method

2007-07-23 Thread Chris Hoeppner
Hi there! I haven't been able to find this documented anywhere (and I'll kindly apologize if there actually *is* some doc about it), and thought I'd turn to you guys ;) I'd like to override a model's save() method in order to "thumbnailize" the data from an image field. Users are able to upload i

Re: Overriding the model's save() method

2007-07-23 Thread Chris Hoeppner
Nic James Ferrier escribió: > Chris Hoeppner <[EMAIL PROTECTED]> writes: > >> Maybe something like >> >> def save(self): >> self.imageField = pil.thumbnail(self.imageField) >> >> Can't really tell if I'm on the right track

Form_for multiple models

2007-07-24 Thread Chris Hoeppner
Hi there! I need to get a form done. The 'long' way. Well... Actually, what I need is the same as form_for_instance, but for more than a single model. The actual form_for_instance is a bit too advanced for my poor python knowledge. Any way to get this a bit easier than creating the form by hand?

Re: Form_for multiple models

2007-07-24 Thread Chris Hoeppner
Russell Keith-Magee escribió: > On 7/24/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > >> Well... Actually, what I need is the same as form_for_instance, but for >> more than a single model. > > Why not use multiple forms? There is nothing stopping you from p

RE: Form_for multiple models

2007-07-24 Thread Chris Brand
0.96 or only in trunk ? A quick grep through the 0.96 source seems to indicate that it is a parameter to BaseForm.__init__(), but that's as far as I can get by myself at the moment... Thanks, Chris --~--~-~--~~~---~--~~ You received this message because

RE: select_related() bug

2007-07-24 Thread Chris Brand
rease the depth to 3 ? If not, the bug does have a patch : http://code.djangoproject.com/ticket/4789 Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Blog engine

2007-07-24 Thread Chris Moffitt
feeds but that should be pretty simple. It's BSD licensed so hopefully it will be useful to folks. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

RE: Form_for multiple models

2007-07-24 Thread Chris Brand
> You can specify it upon form creation. Here is an example of how you > could use prefixes for multiple model forms: Thanks, Nathan. That's very useful. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Poperty interfaces and tags

2007-07-25 Thread Chris Hoeppner
Hi guys! I'm wanting to implement what you can see at the django-tagging wiki page: a property interface to an object's tags. I got this working on my blog, but surprisingly I seem unable to get this working now. In my model definition, I have the following, beside other stuff: def _get_tags

Re: Blog engine

2007-07-28 Thread Chris Hoeppner
Henrik Lied escribió: > This is great, Chris, but the fact of the matter is that it won't > appeal to the "Wordpress crowd". > That group wants in-browser setup, easy plugin architecture etc. > contrib.admin wouldn't do the trick. The admin-panel would have to be

Re: Organising django projects

2007-07-28 Thread Chris Hoeppner
Almad escribió: > Hi, > > I'd like to ask how to organize Django application. To me, structure > of project/app is nice idea, however I have problems applying it in > practice, so I'd like to ask about best practices. > > Problems come, when application structure become deeper and nested. Is > it

Re: Blog engine

2007-07-30 Thread Chris Hoeppner
of display. The plugin must not *modify* a single source file, as stated above. And, Forest, if you provide enough hooks where plugins can join the app's flow (like the plugin middleware, and the template imports), you're done predicting the future. We just have to think abou

Re: How do I echo template variables?

2007-07-30 Thread Chris Hoeppner
Nathan Ostgard escribió: > Try: {{ data|pprint }} > > On Jul 29, 10:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> I'm coming from CakePHP and I would typically set a variable for use >> in my view with a call to findAll. Since there is a lot of data in the >> array, I typically do

Re: How do I echo template variables?

2007-07-30 Thread Chris Hoeppner
Russell Keith-Magee escribió: > On 7/30/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > >> I didn't know of that function. Nice to know. But, is there a var where >> to access *all* the vars available in the template and it's contents? >> I've

Re: how to overcome {% if %} limitation

2007-07-31 Thread Chris Hoeppner
james_027 escribió: > Thanks everyone! > > > > > There's actually a reason for templates and views being two separate entities. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: checkbox (newforms)

2007-07-31 Thread Chris Hoeppner
Enquest escribió: > In my form I got {{ form.boxes }} > Form.boxes contain 10 checkboxes that are displayed in a ul li list. > However I want them in three columns so I thougt I should be able to > acces each in by {{ form.boxes.1 }} or {% for item in boxes %} > Alas this does not work. The IRC

Count the times a user has logged into the system

2007-08-02 Thread Chris Hoeppner
I can recall this being covered some time ago, but google won't throw up my answers. So, sorry for double post :) I'd like to count the times a user has logged in (if possible without hacking on contrib.auth). Actually just the first 10 times or so. I want to show a few mini-tutorials the first f

Re: Count the times a user has logged into the system

2007-08-02 Thread Chris Hoeppner
nd user.is_active: > # Correct password, and the user is marked "active" > auth.login(request, user) > # Redirect to a success page. > return HttpResponseRedirect("/account/loggedin/") > else: > # Show an error page &

Re: Internationalization and accents

2007-08-02 Thread Chris Hoeppner
substitution occurs in the translated page. > > Has anybody else experienced this? I think that's a real nuisance: why > should the original language be English? > > I have already mentionned, with more details, the problem in the > subject "Accents in translati

Re: website template compatible with django

2007-08-03 Thread Chris Hoeppner
Oh and please don't call Template Monster "professional"... Please... 2007/8/3, Chris Hoeppner <[EMAIL PROTECTED]>: > Though you would still need to adapt them to be used with Django. > IMHO, there's not much sense in publishing "Django templates" sinc

Re: Job Fair F/OSS project

2007-08-03 Thread Chris Hoeppner
preliminary designs. > > I'm personally located in Chicago and West Virginia (about half of my > time spent in each place), though you are welcome to help out from > anywhere around the world! > > If you're interested, reply to this message, or

Re: website template compatible with django

2007-08-03 Thread Chris Hoeppner
; better - but again that is not django specific. > > -- > > regards > kg > http://lawgon.livejournal.com > http://nrcfosshelpline.in/web/ > > > > > > -- Best Regards, Chris Hoeppner - www.pixware.org // My weblog --~--~-~--~~

Re: Job Fair F/OSS project

2007-08-04 Thread Chris Hoeppner
SVN (I use Git), so > that's not a factor. It's also possible for me to just setup a Trac > site (I'm most likely gonna setup one anyhow) like I've been using > with my previous internal projects and forego sourceforge and google > code. > > On Aug 3, 5:12 am, &q

Re: Something like a mini Crystal Reports with Django

2007-08-04 Thread Chris Hoeppner
> > > > > > > > I was wondering has anybody done application that was something > > > > like a > > > > > > > mini crystal reports. Generating a report based of model items > > > > > > > selected in a WYSIWYG(ok this is not

Re: PAK Host Online(PHO) - Web Hosting, Free Domain Registration /Transfer, Website Builder & Web Marketing in Pakistan, Karachi, Lahore, Islamabad & Rawalpindi at http://www.pakhostonline.com/

2007-08-06 Thread Chris Hoeppner
I *hate* spammers. 2007/8/5, koom2020 <[EMAIL PROTECTED]>: > > PAKHostOnline.com offered Pakistan No.1 Web Hosting, DOMAIN > Registration / Transfer, 99% UP-Time, 24/7 Technical Support at > http://www.pakhostonline.com/ > > > > > -- Best Regards, Chris Hoeppn

Re: Replying to spam messages

2007-08-06 Thread Chris Hoeppner
Sorry, Russ. Won't happen again :) 2007/8/6, Russell Keith-Magee <[EMAIL PROTECTED]>: > > On 8/6/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > > > I *hate* spammers. > > And I like ponies. > > You aren't alone in hating spam, but unfor

Django Admin Sorting

2007-08-06 Thread Chris Sabanty
ng a dummy function called sortableRole that used a notation similar to search_fields: admin_order_field = 'role__name'. I'm guessing this functionality isn't built into Django yet. Any help would be greatly appreciated. Chris --~--~-~--~~~---~--~-

Re: Overriding save methot problem

2007-08-07 Thread Chris Moffitt
I've had a similar problem in the past and have been unable to solve it. I'm not sure that there is any simple solution. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: The Django Book

2007-08-07 Thread Chris Hoeppner
book is ready for press; at that point, the > preferred url will be / rather than /beta (or similar). > > > > -- Best Regards, Chris Hoeppner - www.pixware.org // My weblog --~--~-~--~~~---~--~~ You received this message because you ar

RE: value for choices arguments for newforms.MultipleSelectField

2007-08-07 Thread Chris Brand
Field, so if you do need to do this, you should probably update the ticket to say so. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: django.views.generic.simple

2007-08-08 Thread Chris Hoeppner
e of this view for showing static html page? if not what > is the use of this view? > > Thanks > james > > > > > -- Best Regards, Chris Hoeppner - www.pixware.org // My weblog --~--~-~--~~~---~--~~ You received this message because you a

Testing/Fixtures/Production/TestRunner

2007-08-08 Thread Chris Green
Good day, I'm running into some confusion on the intended way to architect tests/ users/etc. I've been playing with the latest SVN snapshot. I've currently got my test cases setup around: 1) Setup Custom Users, Groups,Permissions that are used for all test cases 2) Change out my authenticatio

RE: value for choices arguments for newforms.MultipleSelectField

2007-08-08 Thread Chris Brand
disadvantage of actually querying the database for a list that I then throw away when I change the queryset. I see that the trunk now has .none(), which is probably perfect for this situation. If you're using 0.96, though, the ideal is probably some queryset that you know will return no (or very

Re: Testing/Fixtures/Production/TestRunner

2007-08-10 Thread Chris Green
On Aug 9, 7:55 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 8/9/07, Chris Green <[EMAIL PROTECTED]> wrote: > > 1) initial_data has bitten me not realizing it was synced in > > production each time. > There is an argument to be made that i

Re: django hosting companies

2007-08-14 Thread Chris Hoeppner
> Are you using a django friendly hosting company? Who are they? Are > they great/ok/crappy? How much do you pay a yr? I'm hosting everything I have at media temple (mediatemple.com), and they're very nice people. I have a dedicated box, but they're working on a very nice solution to deploy d

Re: enable auto reload from the python

2007-08-14 Thread Chris Hoeppner
[EMAIL PROTECTED] escribió: > Hi, > > I am testing my Model from the python shell and I would like to know > if I could enable auto-reloading? > > Thanks, > > Julien > > > > > Auto-reloading? You mean re-importing the module when something changed. I don't know of anything like that, thoug

Re: Best practice for non-root base URL setup?

2007-08-17 Thread Chris Moffitt
We've developed a similar sort of capability for Satchmo. You can browse the source here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

<    2   3   4   5   6   7   8   9   10   11   >