Create a specific instance in the admin?

2010-07-07 Thread jmat
If I have models like below where I have a multiple instance of the base manufacturer (could be inherited or I could just have a OneToOne relationship): class Manufacturer(models.Model): name = models.CharField(max_length=128) class ManuType1(Manufacturer): def myfunc(self, str): r

Creating something similar to WPMU with django?

2009-10-29 Thread jmat
I have a client that needs to create a way to generate a sub-domain website on the fly, much like you can do with wordpress mu: http://mu.wordpress.org/ I would really like to avoid another wordpress/php project so I'm inquiring here if anyone has any pointers as to how this might be accomplished

Permission Denied: /tmp/python.cache_root

2009-06-08 Thread jmat
I'm getting an error using Django 1.0 when trying to log a new user in. When I call login(request) On a new user I will occassionally (not very often) get an error (the cache number values will be different): Permission Denied: /tmp/python.cache_root/8/7/2 Which is an: OSError in /usr/lib/p

Use django.contrib.auth.login at root of site

2009-03-07 Thread jmat
I'm trying to figure out a way to use the django.contrib.auth tools at the root of the site for login but I'm running into one issue (I know I can write my own viewbut not trying not to do that here). So I have this in my urls.py (r'^$', login, {'template_name':'login_base.html'}), so when

Re: PREPEND_WWW

2008-12-19 Thread jmat
It did fix my issue..hopefully this is helpful to anyone else running into this On Dec 15, 4:47 pm, "Craig Kimerer" wrote: > Yes, this was fixed post 1.0 release.  If you upgrade to 1.0.2 it may fix > your problem. > > Craig > > On Mon, Dec 15, 2008 at 4:04 PM,

Re: PREPEND_WWW

2008-12-15 Thread jmat
le back that was fixed > (http://code.djangoproject.com/ticket/9199). > > Hope that helps. > > Craig > > On Mon, Dec 15, 2008 at 11:23 AM, jmat wrote: > > > Just curious, has anyone else ever set this to true and not had it > > work? > > > On Dec 14, 4:05

Re: PREPEND_WWW

2008-12-15 Thread jmat
Ok, thanks, I was curious if we use a .htaccess file to do the re- writing with django, does the file live in the webroot or in the django application root? On Dec 15, 12:41 pm, Ross wrote: > @jmat I have never tried Django's PREPEND_WWW, but it can easily be > handled by Apache.

Re: PREPEND_WWW

2008-12-15 Thread jmat
Just curious, has anyone else ever set this to true and not had it work? On Dec 14, 4:05 pm, jmat wrote: > I set this to true in my settings file but It doesn't seem to be > getting picked up. > > Does this still have issues with some middleware or am I seeing some > kind o

PREPEND_WWW

2008-12-14 Thread jmat
I set this to true in my settings file but It doesn't seem to be getting picked up. Does this still have issues with some middleware or am I seeing some kind of settings reload or cache issue? --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Is trunk usually stable enough to run in a development server?

2008-10-12 Thread jmat
Oops sorry to many groups open, this was meant for the satchmo group. On Oct 12, 3:17 pm, jmat <[EMAIL PROTECTED]> wrote: > Just curious what anyones suggestions are for running satchmo on a dev > server?  Is trunk stable enough to develop a new site on (perhaps > anticipating

Is trunk usually stable enough to run in a development server?

2008-10-12 Thread jmat
Just curious what anyones suggestions are for running satchmo on a dev server? Is trunk stable enough to develop a new site on (perhaps anticipating the site being done soon after the .8 release)? If so do you have any (general) suggestions on how to stay relatively up to date with the code bas

Re: MOD_PYTHON ERROR - but appears more related to MySQLdb

2008-04-19 Thread jmat
9, 11:26 am, jmat <[EMAIL PROTECTED]> wrote: > I have been able to get django working with the development server. > I'm pulling my hair out trying to get it working on my osx 10.4 box > with apache/mod_python/mysqldb > > I have confirmed that apache works, mod_python

MOD_PYTHON ERROR - but appears more related to MySQLdb

2008-04-19 Thread jmat
I have been able to get django working with the development server. I'm pulling my hair out trying to get it working on my osx 10.4 box with apache/mod_python/mysqldb I have confirmed that apache works, mod_python works, and mysqldb work stand alone. I was following the django book and created t