Re: django development addons

2009-06-19 Thread Mike Ramirez
gt; people who use them. > I enjoy django-debug-toolbar, for me, it's usefullness is helping me manage the queries and seeing where I can improve those. The rest are extras that I don't always need to see, like template context, templates used and the settings module, but I like tha

Re: Upload image

2009-09-19 Thread Mike Ramirez
ncluding easier updating. Mike -- Arbitrary systems, pl.n.: Systems about which nothing general can be said, save "nothing general can be said." signature.asc Description: This is a digitally signed message part.

Re: Django + QT4

2009-09-23 Thread Mike Ramirez
n for database > management. > > Thanks Brian! > You might have better luck with sqlalchemy or QtSql over djangos orm. But this is only because I think setting up django to work outside of it's normal environment is a pain. Mike -- /* * [...] Note that 120 sec is defined

Re: What JavaScript framework do you use and why?

2009-09-29 Thread Mike Dewhirst
I have heard nice things about Mochikit. I had a look at it a long time ago and fully intended to get involved but haven't had the opportunity yet ... http://www.mochikit.com/about.html esatterwh...@wi.rr.com wrote: > I use mootools a lot. When I was deciding which on to use, I first > looke

Re: Show first available Image in a loop

2009-10-10 Thread Mike Ramirez
card image {% else %} set default {% endif %} if the image doesn't exist the template will return an error about the missing file, this test will allow you to set the default or the cards image. Hope this helps, Mike -- I don't want to be young again, I just don't want to get any older. signature.asc Description: This is a digitally signed message part.

Re: Django methodologies and best practices

2009-10-18 Thread Mike Ramirez
NULL constraint till after I've added the field and updated the existing rows with the required data. This may not be the best approach to it, but it works for me and is fast enough and requires less prep time for using such tools as evolution and the like (no need to install or learn

Re: Django methodologies and best practices

2009-10-19 Thread Mike Ramirez
e project regardless, like installed apps. With app specific settings sprinkled between the two. These are just a few of the ideas I've seen and utilize. The general rule of thumb I use is: K.I.S.S. Keep It Simple, Stupid. Mike > > --~--~-~--~~~---~--~-

Re: Django methodologies and best practices

2009-10-19 Thread Mike Ramirez
tant/big jobs. Normally, for small or my own personal projects I'll just run off a todo list/psuedo code in a text file or hand written mainly. Mike - They spell it "da Vinci" and pronounce it "da Vinchy". Foreigners always spell better than they pronounce.

Re: DRY (or how can I stop repeating myself)

2009-10-20 Thread Mike Ramirez
{% ifequal user.permission 'can_edit' %} do something {% endifequal %}), this is still done server side. The only thing going to the client side is the actual html that the templating language is generating after evaluating the template language. > > What is your best practice i

concurrency and threading question

2009-10-21 Thread Mike Thon
need to ensure that I only have one queue manager running on the server, not one per visitor. I would be using Apache and either mySQL or sqlite3 as the database, in case that matters. thanks for any help Mike --~--~-~--~~~---~--~~ You received this message becaus

Re: concurrency and threading question

2009-10-21 Thread Mike Thon
ands outside of the task function, or if the task function needs to be 'self contained'. If not, then ghetto queue it is... Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Versionable Models?

2009-10-27 Thread Mike Dewhirst
he "current" record. Sometimes I want to get the history of that > relationship. > > Anybody done this? Got any tips? Marty Allchin has documented this very precisely and eloquently in chapter 11 of his Pro Django published recently

Re: Specifying Django Project/Application Templates

2009-10-29 Thread Mike Ramirez
w SECRET_KEY value is intially set. call_command[2] is the suggested way of accessing the other commands within your apps. Then use this command to start your projects or apps. Hope This Helps Mike [1] http://code.djangoproject.com/browser/django/trunk/django/core/management/commands/startp

setting up headache migrating to apache

2009-10-29 Thread Mike Dewhirst
>>> ... where the above output is embedded in a print statement in settings.py and proves there are no syntax errors in settings.py I have also tried all the above as root and get the same results so I don't think it is a permissions thing. Can any kind person see where I'

Re: Dependencies Among Dropboxes

2009-10-30 Thread Mike Ramirez
ted with all possible choices and update the box from this script. You can have help with this by using a template tag that fills in this particular part of the script. In this case, depending on how many choices are available, the second way might not be the most efficient. Mike -- You have

Re: SOLVED Is there a way to just submit a simple form? -- Mis-nested tags break things!

2009-10-30 Thread Mike Ramirez
nstall and developer information. Source: http://validator.w3.org/source/ Mike -- Do nothing unless you must, and when you must act -- hesitate. signature.asc Description: This is a digitally signed message part.

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2009-10-31 Thread Mike Ramirez
te the page with the new values after voting (returned with the 200). If it's a 500, deal with the error, letting the user know, there was a problem voting and reset the stars. This is what I do, or would do in your position, if anyone has a better idea, please speak up. Hope this helps. M

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Mike Ramirez
ce of the django devs in getting this part right, that it is harder for new developers to make similar security mistakes. Really only in a few places allow you to. The reason I came to django, because of the language it's based in. Though many a day I wonder how django would do as a C++ fram

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Mike Ramirez
On Saturday 31 October 2009 12:00:13 Christophe Pettus wrote: > On Oct 31, 2009, at 11:52 AM, Mike Ramirez wrote: > > I do not understand why web developers who use php, still do. > > PHP has a large, and (perhaps more importantly) easy-to-find ecosystem > surrounding it. I t

Re: forms vs modelforms

2009-10-31 Thread Mike Ramirez
en't in the model, like a captcha field. Though, I woud suggest just using model forms, then when you run into that situation where model forms aren't enough, then build a form. Mike [1] http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views- generic-create-update-c

Re: solving the %20 problem

2009-11-01 Thread Mike Ramirez
ws and a \S in urls to > work around this. Is there some cleaner solution to this? > maybe if you can change the spaces to hyphens? I really do think hypens or underscores should be used in urls instead of spaces, which is why I love slug fields for urls. Mike -- Yow! Are we wet yet? sig

Re: solving the %20 problem

2009-11-01 Thread Mike Ramirez
is added/saved? If not, don't worry about it. Mike -- I might be able to shoehorn a reference count in on top of the numeric value by disallowing multiple references on scalars with a numeric value, but it wouldn't be as clean. I do occasionally worry about that. --lwall signature

[uploadify] passing user info to the signal handler

2009-11-09 Thread Mike Thon
nyone know how I can do this? Thanks Mike --~--~-~--~~~---~--~~ 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

Re: URLs and masking of private objects

2009-11-12 Thread Mike Ramirez
elf.title) super(MyBaseModel, self).save(*args, **kwargs) urls should look like: /portfolio/my-cool-pictures for the portfolio with the title "My Cool Pictures" [1] http://docs.djangoproject.com/en/dev/ref/models/fields/#slugfield [2] http://docs.djangoproject.com/en/dev

Re: URLs and masking of private objects

2009-11-12 Thread Mike Ramirez
On Thursday 12 November 2009 02:48:35 Mike Ramirez wrote: > urlpatterns = patterns('', url(r'^portfolios/(?P[\w-]+$', > 'portfolio.views.load_details', name='details'), > Typo fixes: urlpatterns += patterns('', url(r'^portfoli

Re: Switching a Models Field Class at Runtime

2009-11-12 Thread Mike Ramirez
On Thursday 12 November 2009 06:05:00 Sean Brant wrote: > Let me start out by saying this feels a little over engineered but I > wanted to see what people thought anyways. > > I would like to create a list similar to a Facebook wall. You can post > stuff and attach content to the post. In the past

media_url tute

2009-11-13 Thread Mike Dewhirst
I have looked at the django docs (http://docs.djangoproject.com/en/dev/topics/forms/media/) which painstakingly describe how to set up MEDIA_ROOT and MEDIA_URL. Does anyone know of a tutorial or other docco which covers the topic? Thanks Mike -- You received this message because you are

Re: Stucked in template language

2009-11-15 Thread Mike Ramirez
want it as a template tag. Hope this helps Mike [1] http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ -- The camel died quite suddenly on the second day, and Selena fretted sullenly and, buffing her already impeccable nails -- not for the first time since the journey begain --

Re: first project taking it too production server

2009-11-16 Thread Mike Ramirez
g the drupal installation in any way... > It's as simple as setting up the django project using the deployment instructions in the docs[1] in it's own virtualhost[2] directive. Mike [1] http://docs.djangoproject.com/en/dev/howto/deployment/ [2] http://httpd.apache.org/docs/2.2/vh

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Mike Ramirez
aziness because this is our ideal goal as a society. Everything we build do is to make our lives easier so we can be lazy without worry. Mike -- The chat program is in public domain. This is not the GNU public license. If it breaks then you get to keep both pieces. -- Copyright notice for the chat program signature.asc Description: This is a digitally signed message part.

Re: django basic blog and inlines

2009-11-16 Thread Mike Ramirez
gt; > > > > any ideas why this isn't working? > > > > > > -- > > > The inlines.py needs to live in your project/app/templatetags directory. I''m assuming live is your project,inlines is your apps, so something like this: django_apps/live/inlin

Re: Django on Dreamhost internal server error

2009-11-16 Thread Mike Ramirez
late suggestion doesn't work. And to Christophe Pettus: yes it's mainly for ruby on rails, but it does python also as of 2.01-rc1, according to the dreamhost wiki and the phusion passenger site. Mike Just for completeness http://wiki.dreamhost.com/Passenger_WSGI http://blog.phusion.n

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Mike Ramirez
On Monday 16 November 2009 18:08:35 Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 10:44:27 pm Mike Ramirez wrote: > > > it is precisely this assumption that does not seem logical to me. But > > > frankly I do not know how to counter it ;-) > > > > How is it

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Mike Ramirez
er memory footprint. And the latter part of your statement is exactly why we all think that open source software is more secure than propietary software and swear by it. Mike -- Talkers are no good doers. -- William Shakespeare, "Henry VI" signature.asc Description: This is a digitally signed message part.

Re: Restrict admin to superusers only

2009-11-27 Thread Mike Dewhirst
o_admin?) with no permissions and put each of your is_staff=True users into that group. At the same time remove all their personally assigned permissions. Should do the trick. I would create a test user and try it out to ensure things still work properly. Mike > > Can this be achieved witho

Re: Custom Authentication Backend

2009-12-02 Thread Mike Dewhirst
groups you have related to AD or eD groups. This lets users login with ldap auth and if the ldap server is down they can log into the Django app using Django auth. Regards Mike I would > greatly appreciate it if someone could point me in the right > direction, or tell me what I'm doi

design starting question

2009-12-09 Thread Mike Dewhirst
nt name to trigger a direct display if there is only one search result but a list if there is more than one. Thanks for any ideas Mike -- 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...@

Re: Django Docs Chrome Extension

2009-12-13 Thread Mike Ramirez
On Sunday 13 December 2009 16:09:38 Jonathan Eatherly wrote: > I have only tested this on Chromium for mac so feel free to test it on > windows and linux for me :) > > Enjoy! > Works in Linux :) Thanks Mike -- I might have gone to West Point, but I was too proud to speak to

Re: csrf error on login and admin

2009-12-14 Thread Mike Ramirez
t conflicts with the other disallowing login till I delete existing cookies. Mike -- Never eat more than you can lift. -- Miss Piggy signature.asc Description: This is a digitally signed message part.

Re: csrf error on login and admin

2009-12-14 Thread Mike Ramirez
On Monday 14 December 2009 17:19:02 Kenneth Gonsalves wrote: > I cleared all cookies - now all forms have stopped working with 'cookie not > set' csrf error. > hmm, never happened to me there, I suggest trying another browser. If it still continues, no clue, sorry. Mike --

Re: LDAP-groups problem

2009-12-17 Thread Mike Dewhirst
Wayne wrote: > Hi, > > I tried to use djando-ldap-groups but got some errors from database > configuration. Could somebody shed some light on the possible problems > of my set up? > Maybe the Oracle API is translating the PK into a LOB? If LOB is a large object then that is probably the issue

why wordpress

2010-04-15 Thread Mike Dewhirst
I have just been asked by a client to install Wordpress for them. Someone in the marketing department apparently wants a blog for the organisation. I'd prefer to avoid php so I'm wondering if anyone knows of a Python or even better a Django equivalent? Thanks Mike -- You rec

Re: why wordpress

2010-04-15 Thread Mike Dewhirst
On 16/04/2010 11:15am, CLIFFORD ILKAY wrote: On 04/15/2010 08:37 PM, Mike Dewhirst wrote: I have just been asked by a client to install Wordpress for them. Someone in the marketing department apparently wants a blog for the organisation. I'd prefer to avoid php so I'm wondering if an

Re: why wordpress

2010-04-15 Thread Mike Dewhirst
treadmill. Not to mention the way wordpress plugins serialize configuration informations (paths, IPs, urls) making wordpress almost impossible to move across servers or even just moving the installation path. Thaanks for the heads-up Mike Regards, Xavier. -- You received this mes

Re: GUI builder for django

2010-04-21 Thread Mike Dewhirst
On 22/04/2010 8:10am, andres osinski wrote: No, and it's not a good idea to do WYSIWYG development for HTML. HTML is not a format that produces static content; it varies depending on screen fonts, browser, and platform, and getting that right means sticking to relative layout, making content flow

Atom Feed Publication Time Question

2010-05-03 Thread Mike Bader
hanks much for any help that anyone might be able to provide. best, mike from django.core.exceptions import ObjectDoesNotExist from django.utils.feedgenerator import Atom1Feed from django.contrib.comments.models import Comment from django.contrib.sites.models import

Re: Atom Feed Publication Time Question

2010-05-03 Thread Mike Bader
I am not sure that this is the appropriate place to request assistance with the following question, but if anyone can either help me or direct me to an appropriate location for assistance, I would greatly appreciate help that anyone can provide. Thank you much, mike On May 3, 9:25 am, Mike

Re: New User Stuck on Tutorial Part 2

2010-05-10 Thread Mike Dewhirst
html" which it extends is actually in ../templates If I wanted Mysite base_site.html to extend the real Django base.html I would have to put ... {% extends "admin/base.html" %} HTH Mike That's exactly the path that my directories show, including my idiosyncratic up

Re: New User Stuck on Tutorial Part 2

2010-05-10 Thread Mike Dewhirst
On 11/05/2010 4:18pm, Old Davy wrote: Thank you, Mike. That DID work! So, if I have a directory that contains the /admin/base_site.html, all I have to do is specify the containing directory. I'll need to study the actual string you used a little more closely once I get more familiar wit

Re: New User Stuck on Tutorial Part 2

2010-05-10 Thread Mike Dewhirst
On 11/05/2010 4:04pm, Mike Dewhirst wrote: On 11/05/2010 3:42pm, Old Davy wrote: On 05/10/2010 08:18 PM, Shawn Milochik wrote: Exactly what directory is your copied template in? It's most likely not in the right place. Ensure that you have a template dir that your settings knows about

template url tag fetches wrong URL with generic view

2010-05-12 Thread Mike Dewhirst
th exactly the same detail as the link in 2 above. I have tried closing down the dev server and browser and starting again but the same thing happens. My urls.py and /urls/*.py files are as documented in the book. Where have I gone astray? Thanks Mike -- You received this message because y

[Solved] template url tag fetches wrong URL with generic view

2010-05-12 Thread Mike Dewhirst
On 13/05/2010 12:43pm, Mike Dewhirst wrote: I'm working through the Coltrane weblog tutorial and trying to implement semi-hard-coded breadcrumbs. It seems reverse doesn't like what I've done. Totally fair. I don't like what I did either. In 3. below I left out the = betw

Re: Uploaded File Security

2010-05-19 Thread Mike Dewhirst
to travel this road in the medium term future. I have done a test implementation of Peter Herndon's django-ldap-groups with eDir and one of the next steps for me is to look at the Apache LDAP docs. http://code.google.com/p/django-ldap-groups/ Good luck Mike Thanks. - Lee -- Y

Setting Up Django as Virtual Host

2010-05-22 Thread Mike T
Um, could someone point me in the right direction. I have a site with a standard lamp server, running PHP. I want to add a second Django site, using a virtual host. I have the virtual host set up, but I don't know anything about configuring it to work. I've done Django Development, but never co

Re: Built in password reset views resulting in Caught NoReverseMatch while rendering: Reverse for 'django.contrib.auth.views.password_reset_confirm'

2010-05-30 Thread Mike Dewhirst
. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', ) hth Mike On 30/05/2010 11:49pm, Cromulent wrote: Well I got it working by changing the names of my templates to something ot

Re: Built in password reset views resulting in Caught NoReverseMatch while rendering: Reverse for 'django.contrib.auth.views.password_reset_confirm'

2010-05-31 Thread Mike Dewhirst
On 1/06/2010 6:20am, Cromulent wrote: Hi Mike, Thanks for the response. I did think of that. My template loaders setting is as follows: TEMPLATE_LOADERS = ( 'django.template.loaders.app_directories.Loader', 'django.template.loaders.filesystem.Loader', ) all

Re: Directory structuring

2010-06-03 Thread Mike Dewhirst
'? That means the production stuff is not under version control and therefore cannot clash. Give the user which runs your script sufficient privileges to completely remove the directory trees, completely recreate them, export from svn and then chown, chmod as required and touch your wsgi sc

Re: setting DEBUG=False disables flatpages

2010-06-08 Thread Mike Dewhirst
deployments? I just changed to DEBUG = False and had a look at a flatpage with the dev server and it works fine for me. Python 2.6.5, django 1.2.x (head) Mike Additionally if running the "manage.py runserver" or as fcgi with DEBUG=False the return codes are always 200 (even if the page

Re: how to develop cms on django

2010-07-19 Thread Mike Dewhirst
On 19/07/2010 7:02pm, Dmitry Dulepov wrote: Hi! Julio Cesar Rodriguez Cruz wrote: sir i am a beginner in python and django.. i want develop a content management system using django.. It is a bit late to respond to this but I have to say it: you are going to fail this project. Why? Can you im

data import and auto-incrementing id columns

2010-07-20 Thread Mike Dewhirst
ng Paradox keys. Thanks for any hints Mike -- 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...@g

Re: No fixtures found

2010-07-25 Thread Mike Dewhirst
John It looks like you mis-spelled slightly ... > ... 'django.contrib.sessi[o]ns.middleware.Session(s)Middleware', It should be django.contrib.sessions.middleware.SessionMiddleware but you have probably discovered that already. Cheers Mike On 26/07/2010 6:59am, john wr

Re: No fixtures found

2010-07-25 Thread Mike Dewhirst
.py then drop the table and run syncdb again. Finally you need a script to adjust your dumped data and pump it back into the new table. This is a very common process and Google will help when you need to do it. HTH Mike Creating table django_admin_log Creating table auth_permission Creating

django-tables with ID

2010-08-10 Thread Mike W.
Hi, I'm trying to use django-tables to display the output in a grid-like view. I'd like a user to be able to choose a row and send it to a detail page. I've tried to look for a way to pass the ID across, but I can't seem to find much about it. Is it possible, and if so, how? Is there something

Re: How long do objects live?

2010-08-11 Thread Mike Dewhirst
as all references to an object are gone, the object is automatically garbage collected. I think however that the web server might hang on to processes according to keep-alive settings. Mike -- You received this message because you are subscribed to the Google Groups "Django users&q

Book's sample code dl

2010-08-13 Thread Mike W.
Hi, I was wondering if anybody has a location for the sample code download for the book/author/publish application in the Django book. I'm getting hung up on making forms and updating multiple tables (foreign keys) in a database. It seems like there's a lot of tutorials out there that will cover

Re: Create files and directories from Django 1.2.1

2010-08-14 Thread Mike Dewhirst
On 15/08/2010 12:10am, Mark Mooij wrote: Hi all, I recently migrated from Django 1.1.1 to 1.2.1. In 1.1.1 I had an application which imports an external python script in which a directory and some files are created. Since the migrate this doesn't work anymore, I get a number of IOErrors because

Re: Create files and directories from Django 1.2.1

2010-08-15 Thread Mike Dewhirst
On 16/08/2010 1:06am, Mark Mooij wrote: Hi Mike, Thanks for your reply. I haven't changed anything else, I am processing the MS updates, but I don't think this is the problem, as this all worked fine before the migration to 1.2.1, also if I call the script directly (outside Django

Re: Create files and directories from Django 1.2.1

2010-08-15 Thread Mike Dewhirst
On 16/08/2010 12:57pm, Mike Dewhirst wrote: On 16/08/2010 1:06am, Mark Mooij wrote: Hi Mike, Thanks for your reply. I haven't changed anything else, I am processing the MS updates, but I don't think this is the problem, as this all worked fine before the migration to 1.2.1, also if

Re: Create files and directories from Django 1.2.1

2010-08-16 Thread Mike Dewhirst
surprisingly being successful. So my question is, has anyone written a dissertation on the best approaches for particular circumstances? Mike as different OS's have different path formats. Or perhaps it is the kml string that you are creating that has other issues (unicode?) I would pr

Re: help with understanding tag cloud code

2010-08-22 Thread Mike Dewhirst
On 23/08/2010 11:17am, John Yeukhon Wong wrote: Hi, I am confused with this piece of code. This is a code responsible for building a tag cloud. It lives in the views.py The part I don't understand is # Calculate tag, min and max counts. min_count = max_count = tags[0].bookmarks.count(

deployment problem gotcha

2010-08-30 Thread Mike Dewhirst
/local/lib64/python2.6/site-packages/django/contrib/admin rather than the one prepared earlier which incorporated /python/ which is a symbolic link. Google indicated I could have included Options FollowSymLinks and maybe I should have done that instead. Maybe an expert who has read this far m

Re: deployment problem gotcha

2010-08-30 Thread Mike Dewhirst
python2.6 in the path. Thanks again Mike On 30/08/2010 5:36pm, Mike Dewhirst wrote: I had an admin media problem finding base.css in deploying an app from the Django (svn head) dev server on Windows to Apache 2.2 on Linux Because I had prepared this email ready to ask for help, I'm posting it a

Re: mod_wsgi, apache, windows XP

2010-09-02 Thread Mike Dewhirst
On 3/09/2010 7:46am, Jesse wrote: Hello Graham, I have the c:/public/apache/apache_django_wsgi.conf working now, at least apache restarts. Do you know if mod_wsgi has a problem with these versions: python 2.7 and apache 2.2, and postgres 8.4, psycopg 2.2.2 My server error is: TemplateSyntaxEr

Re: mod_wsgi, apache, windows XP

2010-09-02 Thread Mike Dewhirst
find it but it isn't available for some reason. I would be investigating the database side of things. Without googling I would know whether there might be any subtle psycopg2 version problems but I'd eliminate everything else as a possibility first. Mike Jesse On Sep 2, 5:41

Re: Generate a daily serial/batch/lot number

2010-09-06 Thread Mike Dewhirst
g the sequence when the clock ticks over. lot_no then gets the value prior to the save() Mike There is a high risk of concurrency so just finding the previous max and then do a +1 before saving is not what I want. The important part of the model looks like this... cla

Re: Generate a daily serial/batch/lot number

2010-09-06 Thread Mike Dewhirst
On 6/09/2010 5:38 PM, kmpm wrote: On Sep 6, 9:02 am, Mike Dewhirst wrote: On 6/09/2010 4:19pm, kmpm wrote: I have a project running in a manufacturing industry that is actually built upon django. In this I need to generate a unique serial, batch or lot number (depending on what you would

Re: Generate a daily serial/batch/lot number

2010-09-06 Thread Mike Dewhirst
I'm reminded that almost all my own disasters were caused by premature optimisation. I would go with the simplest solution and keep an eye on performance as it scales. Gives you plenty of time to research plan B. That'll be 2c please M On 7/09/2010 4:49am, kmpm wrote: On Sep 6, 6:52 pm,

webmin

2010-09-08 Thread Mike Dewhirst
A perl, C and C++ colleague is leaning towards python/django and needs an app roughly equivalent to Webmin. Does anyone know of some django-ish thing for him to look at? Thanks Mike -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: windows xp, python 2.6, mod_wsgi, apache 8.4, MySQL 5.1 - CSS not loading.

2010-09-12 Thread Mike Dewhirst
On 12/09/2010 7:33am, Jesse wrote: Hello, I've successfully implemented mod_wsgi with Apache on Windows XP using MySQL 5.1. Everything but the CSS/html for the index page is working. Even the admin pages are working with style sheets. The following is my code. I cannot seem to find the error

Re: windows xp, python 2.6, mod_wsgi, apache 8.4, MySQL 5.1 - CSS not loading.

2010-09-12 Thread Mike Dewhirst
On 13/09/2010 3:11pm, Mike Dewhirst wrote: On 12/09/2010 7:33am, Jesse wrote: Hello, I've successfully implemented mod_wsgi with Apache on Windows XP using MySQL 5.1. Everything but the CSS/html for the index page is working. Even the admin pages are working with style sheets. The followi

Re: Django and third party python apps, best practices for path locations?

2010-09-15 Thread Mike Dewhirst
t matter if something goes belly-up. In fact when the unit tests fail it is usually because I haven't installed or updated a third party package on the linux machine. Finally, I put a shortcut to the site-packages directory in the same directory as my settings.py file so I can visit third

Re: Auto Increment Primary_Key

2010-09-19 Thread Mike Dewhirst
This might not work for you but I would consider South. You might be able to rework the schema and migrate the data. On 19/09/2010, at 4:40 PM, "hellowrakesh...@gmail.com" wrote: > Hi, > I am in a trouble and need help. We have an application developed in > Django and has a custom defined

how should models be semi-related

2010-09-20 Thread Mike Dewhirst
ckle this, might it be better to write database triggers? Thanks Mike -- 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 e

Re: Why Django Apps Suck

2010-09-21 Thread Mike Dewhirst
Also at pycon-au http://glamkit.org/ where the talk focused on reusability of apps. On 22/09/2010 6:26am, klaasvanschel...@gmail.com wrote: Ok here it goes: I don't have a proper platform for my observations / rants so I figured I'd try my luck here. Django has been my favorite framework for d

Custom Exception question

2010-09-23 Thread Mike Pelley
nds up as "Retrieve Error: ". If I change "e" to "e.reason", it works fine. Could someone tell me why e does not give me the string as intended? I've included a bit of the code below as a reference. Thanks very much, Mike. In "models.py": class ModelPl

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Mike Dewhirst
be able to put parts of it on sourceforge and I can use it :) Mike Thanks for your time. -- 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

Re: Accessing schemas in django

2010-09-27 Thread Mike Dewhirst
On 27/09/2010 4:53pm, Jean-Pierre De Villiers wrote: Hi, Is there a way to access an existing database schema in Django? Any help would be appreciated! google for 'existing schema django' J -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: What's the best way to implement project permissions in a project management app?

2010-10-04 Thread Mike Dewhirst
to me that it has what you are looking for. I'm planning to look more closely but haven't had time yet. Mike -- 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.

Re: iPhone posting FILEs = "Invalid content length"

2010-10-15 Thread Mike Krieger
Hey Eric! We're using ASI & Django and seeing the same thing. Was setting shouldAttemptPersistentConnection enough to make the problem go away? About 1/50 of our requests fail with this bug. Thanks! Mike On Oct 7, 11:21 am, Eric Chamberlain wrote: > We ran into the sam

Re: Newbie question: How should I structure my very simple project / app?

2010-10-19 Thread Mike Seidle
Waza - Django should be ideal for your project. It should be a snap once you figure out how Django's put together. *Skip Do as others have suggested and do the tutorial. It will help you better understand MVC. * Skip the AJAX stuff unitl you have the above figured out. The magic ponies some

Re: /admin list help ASAP

2010-10-20 Thread Mike Dewhirst
On 21/10/2010 1:24pm, Bobby Roberts wrote: hi all. I have two models setup let's call them Gallery Photos photos has a field as such: GalleryId = models.ForeignKey('Gallery', verbose_name=_('Gallery Id'), related_name='Gallery_Id',blank=False, null=False, help_text=_("Please choose the galler

Re: Converting Django to Desktop App? (Multiple Instances)

2010-10-29 Thread Mike Dewhirst
assuming corporate environment == Microsoft. Also, if a hole in the locked roadmap emerged in future you have a VM ready to roll. My 2c Mike I know on the Rails side, there was a product by Joyent called Slingshot (http://joyeur.com/2007/03/22/joyent-slingshot/), which allegedly did something

Re: Django - Alternative to using NULLs? (for integer and FK fields).

2010-11-29 Thread Mike Dewhirst
ivorced etc. If you can find any person then you can navigate through all the relationships to find all connected persons. Finally, if someone has multiple spouses then they probably need counselling but at least you can represent it with multiple relationship records :) Mike With childr

Re: Django - Alternative to using NULLs? (for integer and FK fields).

2010-11-29 Thread Mike Dewhirst
On 30/11/2010 5:10pm, Victor Hooi wrote: Mike, Hmm, I'm currently using a recursive ('self') Many2Many and ForeignKey for Children and Spouse, respectively (see source in the first post). Is that what you meant? Or perhaps I'm not quite getting what you mean - any chan

Re: Loading CSS

2010-12-01 Thread Mike Dewhirst
e css file and make it available to your Django pages. The AliasMatch entries which are commented out should have worked but I didn't have the patience so I used Alias entries instead. Good luck Mike ServerName http://xxx.xxx:80 DocumentRoot /srv/www/xxx/htdocs/ HostnameL

Authentication

2010-12-06 Thread Mike Hull
e a simpler solution? Many thanks Mike -- 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...@goog

Re: Authentication

2010-12-06 Thread Mike Hull
orate each function so that I would manually add the header to the request, but it doesn't seem to be working If I look at the user object, it always seens to give an AnnoymousUser. Any suggestions would be greatly appreciated! Thanks Mike On Dec 6, 4:00 pm, Tom Evans wrote: > On M

Re: __init__.py file executed twice ?

2010-12-08 Thread Mike Dewhirst
= object.__new__(self) slate.state = { 'threads':True, # add other state things as required } self._singleton = slate return self._singleton hth Mike -- You received this message because you are subscribed to

Re: __init__.py file executed twice ?

2010-12-10 Thread Mike Dewhirst
On 10/12/2010 7:43pm, martvefun wrote: On 09-12-10 01:37, Mike Dewhirst wrote: It seems like a good place to put it. Maybe you can test to see if the threads have been started already? Here is a singleton which could live in your __init__.py and might help to record the state of your threading

Re: Apache & mod_wsgi are configured correctly. Need Django to recognize my django.wsgi file.

2010-12-11 Thread Mike Dewhirst
/ /srv/www/duckling.org/store/wsgi-scripts/django.wsgi # and give the public full access - but only to the entry point Order deny,allow Allow from all hth Mike And here are versions of the stack that I'm using, I saw over at the mod_wsgi site that you all would like the versions of

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