Re: mod_python vs. Django?
Think about Django as Cake PHP, Symfony, Code Igniter, etc from the PHP scene. You still need mod_php to run them =) Obviously, Django has a damn big cool factor added, for not being PHP =) Yours, Chris On 09/02/2009, at 10:26, Russell Keith-Magee wrote: > > On Mon, Feb 9, 2009 at 6:54 PM, Vincent> wrote: >> >> Hello >> >> I'd like to write a Web 2.0-type web application. I find Python a lot >> more pleasurable than PHP. >> >> I'd like to have information about the pro's and con's of using >> Apache's mod_python vs. an application server like Django, >> Turbogears, >> etc. > > You appear to be a little bit confused with either your terminology or > your expectations. > > Django isn't an application server - it's a set of libraries that lets > you write web applications. Those applications are then served using a > mod_python interface (as well as mod_wsgi interfaces). I can't speak > with absolute authority on Turbogears, but I'm fairly certain the same > is true there. > > In order to deploy a Django application, you're still going to use > mod_python (or mod_wsgi). > > You obviously have some concerns about Django compared to something > else you are familiar with (PHP?). Perhaps if you explain your > specific concerns, we may be able to address them. > > Yours, > Russ Magee %-) > > --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
AppEngine
I've been outside of the Django scene a couple months now, busy on other things. I remember AppEngine being the big new thing around, and Django could run on it, with a few hitches. How's things these days? Would you use AppEngine to run a production site for a client? --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: What do you use as a build tool (like Ant or make)
I've heard rumours about fabric (ask google, sorry can't remember url now). ~Chris On 09/09/2008, at 9:14, ristretto.rb wrote: > > Hello, > > What do you use to build a Django project? By build I mean, > > * run unit tests > * copy files to a distribution set based on a target (production, > staging, clustered, etc.) > * include config files specific to the target, and not including > source control files and other development > time artifacts. > * transfer distribution > > Perhaps you just hand build python scripts to do it. Or do you use > Ant or make? I'm coming over from Java, and used to use Ant, but I'm > migrating over to Python and would like to use what is generally > considered the Pythonic way. > > cheers > > > --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Blog engine
Henrik Lied escribió: > When you say "installs", do you mean that the plugin is retrieved from > the external site, and placed somewhere on the users host, or is it > constantly querying the plugin on a remote computer? > > The first of those two options would definitely be the best. But I'm > having some problems working it out IRL: > Let's say you've just installed the Akismet-plugin. How are we > supposed to notify the comment framework that a new plugin has been > installed - and better yet - how it should use it? This is a valid > problem for almost every plugin. If we manage to resolve a good answer > to that question, I'm done being a critic. :-) > The first version should do ;) As for your question about "letting the comment app know", it would be a nice idea to keep looking at django for answers. Does this situations sound familiar? I was thinking of middleware. You might "register" a plugin to work agains some app (or apps) and therefor, make the app(s) call certain methods within the plugin. The plugin would only have to implement those methods. If we do the "registering" stuff at database level, it would be a snap to automate the installation. Only, the apps need to know that they must call something. Definately, the current django apps (like comments) do not behave that way, and hacking them is not the answer. What about a plugin middleware? It could check incoming requests for certain data in the request (perhaps a post key?) and do something accordingly. If there's a way to make this approach work with a single middleware (BlogPluginMiddleware?) this would be a pretty nice beginning :-) Chris signature.asc Description: OpenPGP digital signature
Re: How to communicate with Authorize.net?
Greg escribió: > Is there any documentation on how to send form data to a Authorize.net > from within a Django view? > > 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 email to [EMAIL PROTECTED] > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en > -~--~~~~--~~--~--~--- > You might want to google for "satchmo project". It's a django based ecommerce solution. I can't seem to remember the url right now :) signature.asc Description: OpenPGP digital signature
Re: removal of Django
[EMAIL PROTECTED] escribió: > Hi all.Django auto loaded onto my computer from( I believe) a Harry > Potter web site.I want to remove it,as it is messing up one of the web > sites that I frequent.The site shows a 404 error.As I am a newby to > computer with NO codeing experience,I am at a loss as to removing > it.Hope that this is posted in the correct place.Thanks for any help > that you can give. > Leo > > > --~--~-~--~~~---~--~~ > 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] > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en > -~--~~~~--~~--~--~--- > 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 missed the autoloading-installer. ;) signature.asc Description: OpenPGP digital signature
Re: newforms for idiots and designers?
Austin Govella escribió: > I'm *almost* getting forms to work, but not quite. > > Can anyone recommend a newforms tutorial written for designers? > Something akin to Zoolander's School for Kids Can't Program Good. > > > > (And I *have* been reading. What's odd is that I used similar > structures when I was coding php and coldfusion, but I can't get it to > work here.) > > > I just wonder. You've been coding in PHP? Have you ever used a Form framework, like Quickform? Newforms is quite similar. I can't remember any concrete tutorial right now, but you might want to reply with any specific questions. I'll be glad to help you out. Kind regards, Chris Hoeppner www.pixware.org signature.asc Description: OpenPGP digital signature
Re: mod_python setup instructions
peyman escribió: > The mod_python instructions at > http://www.djangoproject.com/documentation/modpython/ > seems incomplete. I followed the tutorial, but I had to add 2 paths to > my Apache config before the mysite sample would work: the project > directory and it's parent. Or am I missing something? > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonPath "['/home/someuser','/home/someuser/mysite'] + sys.path" > PythonDebug On > > > > > It seems so. What you need to add depends on your project's setup. If you add it's parent folder (eg, your project is in /home/me/django/project, you add /home/me/django). Then you reference the project by it's name, 'project', as in 'project.settings', or 'project.urls'. Think of the Python path as something python sticks together with the module names you provide in order to find the full path to a variable, function, class, whatever. You can try it on the shell: #cat ${PYTHONPATH}/project/settings.py Does it work? Chances are, in python it will also work. Good luck, and remember the change those paths according to your setup! --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~--- 0x2688D707.asc Description: application/pgp-keys
Re: Database setup
Sure you can. You might want to look at sqlite, as it's the easiest to set up. You can painlessly switch to a "better" database engine when going to production, though sqlite does quite well the job, even in production. surfwizz escribió: > I'm trying to do the django tutorial at > http://www.djangoproject.com/documentation/tutorial01/, > but I don't know how to set up a database. I do not have a dedicated > server or web hosting at this time, and I want to do some work on > setting up a website with database systems before I get web hosting. > Can I make a database stored locally? if yes, how? > > > > > --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
I18n not working
Hi there, Actually, it's plainly that. It's just not working, and I don't really know where to look for a flaw. It's just a blind guess, but maybe django is not correctly locating my .mo files? I've triple-checked their location and tried in every place stated in the documentation or the django book (beta). Still, it just won't translate anything but the admin. Right now, the django.(mo|po) files are in $PROJECTPATH/locale/es/LC_MESSAGES/ And also, I've tried some variants on the locale name (es, es-es, es_ES...), although I'm setting the django_language session variable using the LocaleMiddleware to exactly the same string I'm using for the locale name on the filesystem. You know, just to discard any stupid mistakes ;) Anyone up with an idea? -- Chris M. Hoeppner Web design & consultancy. Passionate about experience. Faithfull about copy. [EMAIL PROTECTED] www.chrishoeppner.com / www.pixware.org --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: User id foreign key
Thanks a whole bunch! I got another error, saying like so: blog.entry: Accessor for field 'user_created' clashes with related field 'User.entry_set'. Add a related_name argument to the definition for 'user_created'. But I guess I can find out on my own. If anyone wants to reply for the sake of completeness, it would also be great. Thanks! El dom, 11-03-2007 a las 06:48 +1100, Malcolm Tredinnick escribi�: > On Sat, 2007-03-10 at 18:07 +0000, Christian Hoeppner wrote: > > Hi there! > > > > I wonder if there's a way to link a user to some kind of database entry > > using a foreign key field. The problem is, how would I define something > > like this? What's the actual name/path/something I use to reference the > > auth_user objects? > > Just import the User model and reference it in a ForeignKey field, just > like you would for any other model. There's nothing special about that > model. > > Malcolm > > > > > -- Chris M. Hoeppner Web design & consultancy. Passionate about experience. Faithfull about copy. [EMAIL PROTECTED] www.chrishoeppner.com / www.pixware.org --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
User id foreign key
Hi there! I wonder if there's a way to link a user to some kind of database entry using a foreign key field. The problem is, how would I define something like this? What's the actual name/path/something I use to reference the auth_user objects? Thanks! -- Chris M. Hoeppner Web design & consultancy. Passionate about experience. Faithfull about copy. [EMAIL PROTECTED] www.chrishoeppner.com / www.pixware.org --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---