Project Management App

2008-07-07 Thread Chris Hoeppner
Hey there! I wonder if anyone knows if there's an app resembling ActiveCollab (or Basecamp, for illustration's sake) that I could plug into a django project. If not, would it be a worthy project with an audience? Chris --~--~-~--~~~---~--~~ You received this

Re: Still unable to log into the admin interface

2008-07-07 Thread Chris Hoeppner
Yeah, the book makes you comment those, but makes you uncomment them again in the next (or the next) chapter =) On 07/07/2008, at 17:44, Fernando Rodríguez wrote: > > El lun, 07-07-2008 a las 12:30 -0400, Karen Tracey escribió: > > > >> >> [snip] >> >> MIDDLEWARE_CLASSES = [] #( >>

Re: how do designers create content

2008-04-21 Thread Chris Hoeppner
El dom, 20-04-2008 a las 12:13 +0530, Kenneth Gonsalves escribió: > > On 20-Apr-08, at 12:03 PM, lee wrote: > > > Do the designers use text base editting like ultraedit or > > or graphics based software like dreamweaver? Most of the artist I know > > don't do much coding and are into photoshop

Re: how do designers create content

2008-04-21 Thread Chris Hoeppner
El dom, 20-04-2008 a las 12:13 +0530, Kenneth Gonsalves escribió: > > On 20-Apr-08, at 12:03 PM, lee wrote: > > > Do the designers use text base editting like ultraedit or > > or graphics based software like dreamweaver? Most of the artist I know > > don't do much coding and are into photoshop

Re: questions about Django.db

2008-04-21 Thread Chris Hoeppner
When you retrieve a row (aka, a model instance), it will be an object with attrs a, a1, aN. I'm not sure I got your point, though. ~ Chris El lun, 21-04-2008 a las 01:11 +0800, 小龙 escribió: > Just as in table Test: > name url sizetime > a a1 a2 a3 >

Re: Feel free to test queryset-refactor branch

2008-04-18 Thread Chris Hoeppner
I wonder if anyone has tried coming up with some sort of wannabe-backend for the GAE Datastore? ~ Chris El dom, 13-04-2008 a las 21:23 +1000, Malcolm Tredinnick escribió: > We're getting pretty close to merging queryset-refactor into trunk and > would like to do this as soon as practical. There

Re: New site - www.iau.org

2008-04-17 Thread Chris Hoeppner
This is really great! While I wouldn't like to speak in anybody's name, I think I can safely say that the comunity will benefit from this, and I'm really looking forward to the moment you opensource the code. ~ Chris El jue, 17-04-2008 a las 02:30 -0700, [EMAIL PROTECTED] escribió: > Hi Joe, >

Re: File Upload, form issue

2008-04-16 Thread Chris Hoeppner
It would really help to know some more about your setup. Eg, are you using a form generator, using newforms "by hand" or are you making it all the "artisan" way, coding the html yourself? Maybe post a bit of your view code and the relevant template / form bits. ~ Chris El mié, 16-04-2008 a las

Re: Django API interface adapter for Google App Engine

2008-04-12 Thread Chris Hoeppner
d code them the django-way and everything works? Is that the intended way, but not-yet-working? ~ Chris El sáb, 12-04-2008 a las 05:07 -0700, Eric escribió: > Here's a project being developed by Google. Guido is even involved: > http://code.google.com/p/google-app-engine-django/ >

Re: How we can integrate Django app in Google appengine.

2008-04-12 Thread Chris Hoeppner
I'm not sure wether you're asking how to run django on GAE [1], or how to do that using appengine's webapp framework [2]. [1] http://code.google.com/appengine/articles/django.html [2] http://code.google.com/appengine/docs/gettingstarted/ Bear in mind that AFAIK right now there's no official way

Re: I'd like to learn more about Django internals

2008-04-12 Thread Chris Hoeppner
t; On Sat, 2008-04-12 at 11:15 +0100, Chris Hoeppner wrote: > > Hi there, > > > > As the subject says, I'd love to learn more about how django works > > internally. I've been doing python stuff for about a year or more, but > > still can't seem to get my

I'd like to learn more about Django internals

2008-04-12 Thread Chris Hoeppner
Hi there, As the subject says, I'd love to learn more about how django works internally. I've been doing python stuff for about a year or more, but still can't seem to get my head around a big part of the black magic. I wonder if there's something I'm missing? ~ Chris --~--~-~--~~-

Re: Django API interface adapter for Google App Engine

2008-04-12 Thread Chris Hoeppner
Great stuff, man! I'll try to have an in-depth look this weekend and I'll se if I can help with anything. This seems like a nice solution, until someone pokes up a proper backend (stating that I'm not sure if that's possible, bearing in mind that GAE's datastore is not a RDBM). ~ Chris El vie,

Re: middleware that works with Ajax

2008-04-11 Thread Chris Hoeppner
Russ for president! This is actually one of the big reasons to prefer django over and above so many other frameworks. Take rails for example. You *can* use whatever js stuff you fancy, but if you don't use *their* stuff, you're giving up on much of what the framework offers. ~ Chris El jue, 10-0

Re: app engine db backend project

2008-04-11 Thread Chris Hoeppner
I've been looking into this too last night. Though I never before looked into a backend and I'm not on qsrf branch, after looking into the trunk's backends, I can tell that they're a tad over my head. It's a shame that this is not documented (though I'm not whining at the devs for not writing it,

Re: Google App Engine & Django

2008-04-10 Thread Chris Hoeppner
There's something that I don't really grasp about appengine models. I see the similarities between them and django models, tho Django knows where to look for them, and thus knows how to manage those classes. Appengine has it's own stuff, and at the bottom of the django page it's said that you do

Re: middleware that works with Ajax

2008-04-09 Thread Chris Hoeppner
Hey Mr. Baxter, This is new to me. Dojo will be the official js toolkit for django? Above jQuery? How come? ~ Chris El mar, 08-04-2008 a las 18:47 +0100, andy baxter escribió: > Claudio Escudero wrote: > > Hi, > > > > Someone knows there is any middleware that works with Ajax, similar to > > R

Re: Automatic Module Discovery (More to python than to django)

2008-03-25 Thread Chris Hoeppner
x27;exec') > + the execfile() function (deprecated in py3k) > + the imp module > > On 3/24/08, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > > > Just thinking about this... > > > > Is there really no way to import something not being on the pythonpa

Re: Django hosting website

2008-03-25 Thread Chris Hoeppner
After being using VPS based hosting for a while, I have found shared hosting is just not good enough anymore. You just need the flexibility. ~ Chris El lun, 24-03-2008 a las 18:29 -0400, Julian DeFronzo escribió: > Yeah for more flexibility Slicehost or any VPS would be a better > option, but li

Re: Automatic Module Discovery (More to python than to django)

2008-03-24 Thread Chris Hoeppner
a las 22:27 +0100, Christian Vest Hansen escribió: > There's the pkg_resources module and .eggs. That might be what you're > looking for. > > Try typing this in a python repl: > > >>> import pkg_resources > >>> help(pkg_resources) > > >

Re: Automatic Module Discovery (More to python than to django)

2008-03-24 Thread Chris Hoeppner
his in a python repl: > > >>> import pkg_resources > >>> help(pkg_resources) > > > > On 3/23/08, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > > > Hey there! > > > > This has really nothing to do at all with django, bes

Automatic Module Discovery (More to python than to django)

2008-03-23 Thread Chris Hoeppner
Hey there! This has really nothing to do at all with django, beside the fact that many of it's developers should be able to answer from the top of their head. I couldn't think right now of any nice python community, and signing up somewhere else just to fire a single question and probably never e

Segmentation Fault on Syncdb

2007-12-30 Thread Chris Hoeppner
Hi there, I'm getting a segmentation fault on syncdb. No further output. On a pretty much vanilla ubuntu feisty box on grokthis. Output is as follows: # ./manage.py syncdb Segmentation fault # I wonder if this is somewhat a known issue or am I the one missing something? Never got this before.

Re: ImageField file naming

2007-11-30 Thread Chris Hoeppner
of it working, but the pk thing doesn't work on any of them. Any help, please? ~ Chris El mar, 20-11-2007 a las 15:41 -0500, Marty Alchin escribi�: > On Nov 20, 2007 3:33 PM, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > It would be nice to be able to include this in the up

Re: How to make such query with django ORM?

2007-11-29 Thread Chris Hoeppner
Actually, the QuerySet objects are lazy. This is, there's no such query until you access the data. Or so do I believe. El jue, 29-11-2007 a las 01:23 -0800, SmileyChris escribi�: > On Nov 28, 9:08 am, Eratothene <[EMAIL PROTECTED]> wrote: > > I need to get all blogs that belong to certain user

Re: ImageField file naming

2007-11-23 Thread Chris Hoeppner
El mar, 20-11-2007 a las 15:41 -0500, Marty Alchin escribió: > On Nov 20, 2007 3:33 PM, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > It would be nice to be able to include this in the upload_to parameter. > > Something like > > 'upload/%(model_name)s/%(inst

Re: Django Web Hosting Service

2007-11-22 Thread Chris Hoeppner
Yeah, Slicehost have a nice name in the industry, though you gotta order with some time in advance. Don't rely on them for "I need a server for yesterday" situations ;) ~ Chris El jue, 22-11-2007 a las 04:37 -0800, [EMAIL PROTECTED] escribi�: > > > Can anybody recommend me a Django Web Hosting

Re: Django Web Hosting Service

2007-11-21 Thread Chris Hoeppner
I'm enrolled in the Media Temple Django Container Beta Testing programm, and so far, it's an absolute killer. They've been working close with the Django guys to make it somewhat the "official" django hoster. The django site itself is hosted on a media temple server. Though they're still in Beta,

ImageField file naming

2007-11-20 Thread Chris Hoeppner
Hi there! I've seen this in patches and stuff before, but most don't work anymore. Perhaps some Django-insider could advice me how to make Django rename uploaded files according to some schema when saving them to disk? Preserving the original filename is ok for most cases, but sometimes it just

Re: Deploying Django

2007-11-16 Thread Chris Hoeppner
favorite > production deployment enviroment). > > In my setups, the Lighty/FCGI combo seems to use server memory more > effectively than Apache/mod_python (in my tests. YMMV) I've been hearing a lot about the lighty+fcgi combo lately. I'll bear that in mind

Deploying Django

2007-11-15 Thread Chris Hoeppner
7;t tell how good or bad these approaches work. Well, just to know. What are you using? This should also be useful for my "little" project, the django deployer, still unnamed. -- Chris Hoeppner <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received

Re: webhostingbuzz, anyone tried

2007-11-08 Thread Chris Hoeppner
Is anyone on the MediaTemple Django Container Beta Program? El jue, 08-11-2007 a las 17:59 +, hass escribi�: > I too am on webfaction, it's worth it, and dirt cheap. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
Hi guys! Thanks for those responses. So, the random.randint function does exist: # python Python 2.3.5 (#1, Aug 25 2005, 09:17:44) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import random >>> random.randint > A

Re: Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
> On Fri, 2007-10-19 at 11:56 +0100, Chris Hoeppner wrote: > > Hey guys! > > > > I have no choice but deploy to this server, running CentOS 4.4, with no > > option to upgrade python beyond 2.3, and I'm getting this: > > > > Mod_python error: "PythonHa

Re: Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
Thanks, Malcolm! For some reason, updating django to trunk solved it. My system admins told me kindly that it's not their problem. Very nice indeed. El vie, 19-10-2007 a las 21:12 +1000, Malcolm Tredinnick escribi�: > On Fri, 2007-10-19 at 11:56 +0100, Chris Hoeppner wrote: >

Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
Hey guys! I have no choice but deploy to this server, running CentOS 4.4, with no option to upgrade python beyond 2.3, and I'm getting this: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/a

Re: Managing django projects

2007-10-15 Thread Chris Hoeppner
It's always easier to have your own "working copy" of a certain project. Tools like bazaar and subversion come in handy for this too ;) El lun, 15-10-2007 a las 15:01 +, Rytis Sileika escribi�: > Hi, > > I was just wondering, what are the best practices to setup/manage > django projects? >

Re: Users vs Sites

2007-10-11 Thread Chris Hoeppner
gt; > The solution of my problem is therefore very difficult to implement. > The branch of which you speak to me is still in testing. And however > it seems that it cannot resolve my problem completely. > Therefore not are others (simpler) solutions? > > MarcoX > > On 10 Ot

Re: Users vs Sites

2007-10-10 Thread Chris Hoeppner
You'd need row-level permission for that, and that's outside of the admin's intended philosophy. Though, there's such a branch being developed, and I can recall seeing somewhere a django app for that purpose. Just google it and it should pop up. Also, since row-level permission is not built into

Re: Plz, I am just new to Python...

2007-10-10 Thread Chris Hoeppner
you'd also need a python interpreter, but since you talked about site-packages, I guess that's done already ;) You might also want to setup a database. El mi�, 10-10-2007 a las 00:43 -0700, lispingng escribi�: > actually django templates look more like php smarty templates. > i also am from php a

Re: Django-multilingual

2007-10-08 Thread Chris Hoeppner
t; admin edit page and allows edit entry in all languages very simple). > Use it! > > Chris Hoeppner: > > Hi there! > > > > I wonder if someone has been using django-multilingual. I'd like to > > "push it into" a live database, and am wondering what k

Django-multilingual

2007-10-07 Thread Chris Hoeppner
Hi there! I wonder if someone has been using django-multilingual. I'd like to "push it into" a live database, and am wondering what kind of alterations to the schema this might involve. Would it be easier to just add _lang columns for all the fields I'd like to translate, and conditionally output

Re: Admin Media on a VServer

2007-10-06 Thread Chris Hoeppner
What's a VServer? Are you speaking about virtualization? In that case, it doesn't make a difference. As for it working on windows and macos, and not on linux, you might want to give us a few more details about the setup. El s�b, 06-10-2007 a las 10:13 -0700, niklas.voss escribi�: > I have a VServ

Re: Django template language

2007-10-06 Thread Chris Hoeppner
Since the formatting is quite standard (eg: you'll be using img tags for images and object tags for pdf's, etc...) you could assign it to a var in the view. This might be a violation of the MVC pattern, but it's not much worse than using the same template instead of separate ones, extending a comm

Re: installation necessary?

2007-10-06 Thread Chris Hoeppner
It doesn't really matter where it is, as long as it's on the pythonpath (eg. "import django" works). Putting it in site-packages is just a bit cleaner, as that is a standard place for common-use python packages. You still need to be able to set the pythonpath for your execution environment, thoug

Re: Plz, I am just new to Python...

2007-10-04 Thread Chris Hoeppner
El jue, 04-10-2007 a las 15:09 +, Emperor of thought escribió: > Please i am just new to python and i will like to know how i can go > about in web development. I am migrating from PHP and phyton web > environment does not look very familiar. > I tried downloading Django and installing it on m

Re: View didn't return an HttpResponse object?

2007-09-25 Thread Chris Hoeppner
return render_to_response (...) El mar, 25-09-2007 a las 10:14 +, Ryan K escribi�: > > from django.http import HttpResponse, Http404 > from django.template import RequestContext > from django.shortcuts import render_to_response > > def verify_sl(request): > if request.method == 'GET': >

Re: Two newform best practice questions

2007-09-25 Thread Chris Hoeppner
> 1) What is best practice to populate a custom form with instance data? Use form = Form(data_dict) and you're done. This also triggers validation, so it might not be exactly what you want. Though, it's the only way I know of. > 2) What is the recommended way to create a single custom form that >

The setlang view

2007-09-23 Thread Chris Hoeppner
Hi there! As I see, there has been a little change to the setlang view: It only accepts POST requests. This wasn't the case when I last did a localized site. Now, either my html knowledge needs an update, or this makes it impossible to make a simple "menu" showing flags for each language, without

Re: How to implement funky caching

2007-09-22 Thread Chris Hoeppner
If it is Django/Rails who is doing the thing, the server *has* to run it. So it's nonsense speaking about mephisto doing that. The deal would be in apache taking care of it. El s�b, 22-09-2007 a las 17:26 +, julian.bash escribi�: > Thanks a lot for your answers! > > The even greater thing w

Re: How to implement funky caching

2007-09-22 Thread Chris Hoeppner
That's more or less how flatpages work. Have a look at their middleware. El s�b, 22-09-2007 a las 05:40 -0700, julian.bash escribi�: > Hi! > > Does anyone have an idea how to implement funky caching with django? > For those who don't know what that is (it's similar to how movabletype > does cach

Re: reassessing our Operating System

2007-09-19 Thread Chris Hoeppner
Linux is linux after all. The kernel remains largely the same, unless you get a patchy distro. The choice is all about your knowledge. If you know your way around in linux, it doesn't really matters. If you're a bit *newer*, you might want to go with a distro with strong repos and a good package

Re: Site level data models

2007-09-14 Thread Chris Hoeppner
I always have an app called "core" for that kind of stuff, like non-app related views, forms, middleware, models... etc. El vie, 14-09-2007 a las 03:09 -0700, Stewart escribi�: > Hi > > I'm considering writing an web application in Django but I'm a little > confused about the Site-App model. >

Re: Django deployment à lá Capistrano

2007-09-12 Thread Chris Hoeppner
El mar, 11-09-2007 a las 12:26 -0700, Jonas escribió: > Before that someone starts working about this, you must consider this: > > 1. It's already has been created a project with that intention. Its > name is capystrano [1] and althought has been not uploaded code -he > could be working offline-,

Re: Django deployment à lá Capistrano

2007-09-11 Thread Chris Hoeppner
I know, I know. Know what? I'll setup a trac site on a domain of mine. We can always move it somewhere else. El mar, 11-09-2007 a las 14:02 +0100, Jon Atkinson escribió: > I'm not sure the name is really as important as working code. > > --Jon > > On 9/11/07, Chris H

Re: Django deployment à lá Capistrano

2007-09-11 Thread Chris Hoeppner
u going to create a wiki and repository for this project any > time soon? It would be a much more effective means of collaboration > than the mailing list. > > --Jon > > On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > > > > > > > I thin

Re: Django deployment à lá Capistrano

2007-09-11 Thread Chris Hoeppner
vers, yaml looks like a good > option for this configuration, or something parseable by ConfigParser > sounds better? > > 2007/9/10, David Reynolds <[EMAIL PROTECTED]>: > > > On 10 Sep 2007, at 4:13 pm, Chris Hoeppner wrote: >

Re: Django Video - For a good laugh

2007-09-10 Thread Chris Hoeppner
*lmaorof* El lun, 10-09-2007 a las 16:20 +, Gregg Pollack escribi�: > Django guys, > > I know a few of you must be familiar with the Ruby on Rails vs > ___ commercials http://www.railsenvy.com/tags/Commercials > > We just posted a "Ruby on Rails vs Django" video here: > > h

Re: Django deployment à lá Capistrano

2007-09-10 Thread Chris Hoeppner
I see your point. Why reinvent the wheel? True. But I'm not trying to re-do capistrano using python instead of ruby. Capistrano has been the spark that made me think about doing this, but that's all there is to Capistrano. I'm doing this because: 1) I've anyways been thinking about this for ages.

Re: Django deployment à lá Capistrano

2007-09-10 Thread Chris Hoeppner
> 3) Modifying the production database as necessary. There's one major problem point in making this happen: Rails' migrations. It's pretty simple really, once laid out. Beside svn & tar methods, this is one of the most complex point of this project, and it's also one of the points I'd need most

Django deployment à lá Capistrano

2007-09-09 Thread Chris Hoeppner
, don't hesitate to contact me. A few fundamental guidelines lay already, but I'm still in the brainstorming stage. This is the right stage for anyone to join me. I'll be glad to hear from you. -- Saludos, Chris Hoeppner, Passionate about on-line interaction 627 471 720 [EMAI

Re: Philosophy behind the Django admin

2007-09-08 Thread Chris Hoeppner
This is actually outlined in the Django Book. http://www.djangobook.com/en/beta/chapter18/ Here's the relevant piece: > The Zen of Admin > > At it's core, Django's admin is designed for a single activity: > > 1 > Trusted users editing structured content. > > > Yes, extremely

Re: Capisdjango

2007-09-08 Thread Chris Hoeppner
Sure. Anyone to join me? El sáb, 08-09-2007 a las 07:32 -0500, James Bennett escribió: > On 9/8/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > Why hasn't anyone thought of something like capistrano for django. (Yeah > > I know it can work, but there're a few f

Capisdjango

2007-09-08 Thread Chris Hoeppner
I was just wondering. Consider this an "aside" or of the kind. Why hasn't anyone thought of something like capistrano for django. (Yeah I know it can work, but there're a few features for RoR'ers). --~--~-~--~~~---~--~~ You received this message because you are s

Re: problems with finnish after upgrading to latest svn head

2007-09-06 Thread Chris Hoeppner
Make sure you're serving the content with the right content type in HTML, and that Django is working with the right content type, and that the files have a coding declared. El jue, 06-09-2007 a las 16:24 +0530, Kenneth Gonsalves escribió: > hi, > I have a site in finnish. It was rendering fine un

Re: adding field to model

2007-09-06 Thread Chris Hoeppner
Manually alter the table. Or use some GUI like phpMyAdmin or PgAdmin. It's the *safe* way of doing things. Another *not so safe* way is, dump your data, make sure the new field has a default value or accepts null as it's value, reset the table, and insert the dump. The manually or programaticall

Re: log in without loggin in

2007-09-04 Thread Chris Hoeppner
I think there's a chapter in the django book about authentication backends, and that's right what you need. El mar, 04-09-2007 a las 02:28 -0700, Dushyant Sharma escribi�: > hi it might sound strange but what i am thinking is to use two servers > one for authentication only and one for serving no

Obtain a range of values out of the database

2007-09-02 Thread Chris Hoeppner
Hi there! I'd like to obtain a range of possible values out of the database. So, if for a certain field, the values in the database are [3,7,5,1,8,12,6], I'd like to push those into a dropdown. No problem with the dropdown part. But how do I manage to get such a list? And what about sorting it?

Re: Django Development Position

2007-08-28 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I forgot to mention that this position is located in New York, NY and > applicants must be US citizens with no criminal history. What a shame. You were talking just about me, but I don't meet the US citizen thing. We'll talk when you think about tel

Re: Image manipulation

2007-08-28 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SlavaSh escribió: > I need to add dynamic text to animated GIF images. > What is a best way to do it? > > Thanks. Using the PIL (Python Imaging Library) :) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozill

Re: Choices cannot be marked for translation?

2007-08-28 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kenneth Gonsalves escribió: > hi, > > when i upgraded to the latest svn head, I found that all the places > in admin that had drop downs for choices were blank. I had always > marked my choices for translation like so: > > article_type = ( > ("NW

Dynamic OR queries

2007-08-25 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there! I was just wondering how to dynamically "or" together an indetermined quantity of Q objects. They're constructed from a string like q=a+b+c, which would get stiched together as "(Q(field=a) | Q(field=b) | Q(field=c))". Any clue on how to do

List comprehension with unique, sorted values

2007-08-19 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there! I thought this is just the kind of questions you love :) I haven't been able to find concise information about this on the net. I need to construct a choices var for a field widget at runtime, with the data from my database. Actually, I wa

Re: How to install django on Apache/Linux

2007-08-19 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > If my site is under /var/www/html/python, with the settings file as / > var/www/html/python/foo/settings.py should I write, > SetEnv DJANGO_SETTINGS_MODULE foo.settings > (or) SetEnv DJANGO_SETTINGS_MODULE python.foo.settings Python imports stuff ba

Re: unbit.it hosting

2007-08-18 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > File > "/usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py", > line 97, in cursor >kwargs['port'] = int(settings.DATABASE_PORT) > > ValueError: invalid literal for int(): marco_db1 What's your value for DATABASE_PORT? -BEGIN

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: 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: 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

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: 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

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: 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: 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: 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: 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-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: 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: 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 &

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: 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

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: 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 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: Blog engine

2007-07-30 Thread Chris Hoeppner
Forest Bond escribió: > On Sun, Jul 29, 2007 at 05:49:54PM -, Henrik Lied wrote: > >> @Forest: I agree, it should be that simple. But let's say you've got a >> comment reply plugin. How would we - through a middleware - manage to >> intercept our usual comment system, and modify the HTML te

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-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 > hand made. > > For the plugin ar

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: 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

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: 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

  1   2   >