Re: Django admin and changes

2010-12-12 Thread Kenneth Gonsalves
On Mon, 2010-12-13 at 08:09 +0100, Isaac XxX wrote:
> When i add or update something through django admin interface, the
> rest of
> the web does not notice it. I need to restart server, and then all
> behaves
> in the normal way (new records are displayed). 

this is impossible - it must be browser cache
-- 
regards
Kenneth Gonsalves

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django admin and changes

2010-12-12 Thread Isaac XxX
Hi mates,

i'm having trouble using django admin. Currently, i've finished a project,
and it is the only issue i've open.

When i add or update something through django admin interface, the rest of
the web does not notice it. I need to restart server, and then all behaves
in the normal way (new records are displayed).

I'm not using any cache, so cache is not the problem. I will deploy my
project in a production environment soon, and this is an issue that must be
arranged before this last step.

Thanks in advance!

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DateTimeField doesnt get future date.

2010-12-12 Thread Recep KIRMIZI
On Mon, 13 Dec 2010 14:23:06 +1100
Sam Lai  wrote:

> On 13 December 2010 13:45, Recep KIRMIZI  wrote:
> > On Mon, 13 Dec 2010 13:33:37 +1100
> > Sam Lai  wrote:
> >
> >> Sounds odd. What is the future date you're entering? Are you sure your
> >> system has the right date format set, e.g. you're not entering a
> >> MM/dd/ date when the system is expecting a dd/MM/ date or vice
> >> versa?
> >>
> > This is what i tried just now:
> > Date: 23/12/2010
> > Time: 12:00:00
> > i've set these values from the datepicker applet in admin panel.
> >
> > now i recognized sth. I guess it's expecting as u said. MM/dd/
> > bec. i've chosen a past date and it works. Coinsidencely today is 13rd. of 
> > December. so the days before this date in this month are like 11/12/2010 so 
> > it 's ok both day or month less then 12 :)
> > i tried past month. 25th it failed again. how can i change the default 
> > datetime format?
> 
> Windows or Linux?
> 
i m using linux, and i fixed it by adding 

USE_L10N = True

in my settings.py 

> >> On 13 December 2010 08:29, Recep KIRMIZI  wrote:
> >> > Hi i have a model which has a datetime field like
> >> >
> >> >    pub_date = models.DateTimeField("Etkinlik Tarihi")
> >> >
> >> > this model is written to organize some events in a cafe. when i m trying 
> >> > to create some events from the admin panel. if i choose today and now 
> >> > from the date widget in admin; it works. if i choose a past date it 
> >> > works too. But if i choose a future date, it says. Enter a valid date. i 
> >> > dont know is it a bug about django or did i do sth. wrong in my model. 
> >> > here is my whole model.
> >> >
> >> > p.s.: i'm using django trunk on my server
> >> >
> >> > (InteractiveConsole)
> >>  import django
> >>  django.VERSION
> >> > (1, 3, 0, 'alpha', 1)
> >> 
> >> > --
> >> > #!/usr/bin/python
> >> > #-*- coding: utf-8 -*-
> >> > from django.db import models
> >> > from photologue.models import Photo
> >> >
> >> > class Etkinlik(models.Model):
> >> >    name = models.CharField("Etkinlik Adı", max_length=100)
> >> >    text = models.TextField("Etkinlik Metni", max_length=2000)
> >> >    foto = models.ForeignKey(Photo)
> >> >    pub_date = models.DateTimeField("Etkinlik Tarihi")
> >> >    is_active = models.BooleanField("Aktif", default=True)
> >> >
> >> >    class Meta:
> >> >        get_latest_by = "pub_date"
> >> >        verbose_name = "Etkinlik"
> >> >        verbose_name_plural = "Etkinlikler"
> >> >
> >> >    def __unicode__(self):
> >> >        return u"%s - %s" %(self.name, self.text)
> >> >
> >> >    def get_absolute_url(self):
> >> >        return "/etkinlik/%i/" % self.id
> >> > --
> >> >
> >> >
> >> > --
> >> > Yours,
> >> > Recep KIRMIZI 
> >> >
> >> > --
> >> > 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...@googlegroups.com.
> >> > For more options, visit this group at 
> >> > http://groups.google.com/group/django-users?hl=en.
> >> >
> >> >
> >>
> >> --
> >> 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...@googlegroups.com.
> >> For more options, visit this group at 
> >> http://groups.google.com/group/django-users?hl=en.
> >>
> >
> >
> > --
> > Recep KIRMIZI 
> >
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group at 
> > http://groups.google.com/group/django-users?hl=en.
> >
> >
> 
> -- 
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 


-- 
Recep KIRMIZI 

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py startproject not working

2010-12-12 Thread Brad Reardon
Another tip is to add *.py to the PATHEXT variable or the like. That will allow 
the script to be found on the path. I'm not sure if that's the right variable 
name, but check it out. 

On Dec 12, 2010, at 10:13 PM, codegal  wrote:

> Thanks.  Good pointer for running python scripts in the future - will
> follow as a matter of practice.
> 
> As it turned out in this case, I just wasn't providing the full path.
> I had set up a .pth file, and had tried copying django-admin.py into
> the main Python directory, but it turned out that directory is not
> assumed, and neither the PYTHONPATH nor the environmental variables
> path gets checked when Python runs the command, so this (full path to
> django-admin.py) is what finally worked for me:
> 
> python C:/Python27/Scripts/django-admin.py startproject mysite
> 
> 
> On Dec 12, 8:06 pm, Brad Reardon  wrote:
>> Vista is very picky about permissions. Try running the command prompt as an
>> administrator.
>> 
>> 
>> 
>> On Sun, Dec 12, 2010 at 8:06 PM, codegal  wrote:
>>> I'm trying to create my first Django project, and I must be missing
>>> something really basic. I'm using Windows Vista, and have installed
>>> Python 2.7 and Django 1.2.3, put the location of django-admin.py into
>>> my PATH variable, and navigated via command line to the location where
>>> I want to create a project. I'm entering:
>> 
>>> django-admin.py startproject cms
>> 
>>> at the command line. I don't get an error, but I also don't get any
>>> processing back - just a new prompt, and no project created in the
>>> directory. Can't find any posts on the web regarding this issue...
>> 
>>> 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-us...@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.- Hide quoted text -
>> 
>> - Show quoted text -
> 
> -- 
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DateTimeField doesnt get future date.

2010-12-12 Thread Sam Lai
On 13 December 2010 13:45, Recep KIRMIZI  wrote:
> On Mon, 13 Dec 2010 13:33:37 +1100
> Sam Lai  wrote:
>
>> Sounds odd. What is the future date you're entering? Are you sure your
>> system has the right date format set, e.g. you're not entering a
>> MM/dd/ date when the system is expecting a dd/MM/ date or vice
>> versa?
>>
> This is what i tried just now:
> Date: 23/12/2010
> Time: 12:00:00
> i've set these values from the datepicker applet in admin panel.
>
> now i recognized sth. I guess it's expecting as u said. MM/dd/
> bec. i've chosen a past date and it works. Coinsidencely today is 13rd. of 
> December. so the days before this date in this month are like 11/12/2010 so 
> it 's ok both day or month less then 12 :)
> i tried past month. 25th it failed again. how can i change the default 
> datetime format?

Windows or Linux?

>> On 13 December 2010 08:29, Recep KIRMIZI  wrote:
>> > Hi i have a model which has a datetime field like
>> >
>> >    pub_date = models.DateTimeField("Etkinlik Tarihi")
>> >
>> > this model is written to organize some events in a cafe. when i m trying 
>> > to create some events from the admin panel. if i choose today and now from 
>> > the date widget in admin; it works. if i choose a past date it works too. 
>> > But if i choose a future date, it says. Enter a valid date. i dont know is 
>> > it a bug about django or did i do sth. wrong in my model. here is my whole 
>> > model.
>> >
>> > p.s.: i'm using django trunk on my server
>> >
>> > (InteractiveConsole)
>>  import django
>>  django.VERSION
>> > (1, 3, 0, 'alpha', 1)
>> 
>> > --
>> > #!/usr/bin/python
>> > #-*- coding: utf-8 -*-
>> > from django.db import models
>> > from photologue.models import Photo
>> >
>> > class Etkinlik(models.Model):
>> >    name = models.CharField("Etkinlik Adı", max_length=100)
>> >    text = models.TextField("Etkinlik Metni", max_length=2000)
>> >    foto = models.ForeignKey(Photo)
>> >    pub_date = models.DateTimeField("Etkinlik Tarihi")
>> >    is_active = models.BooleanField("Aktif", default=True)
>> >
>> >    class Meta:
>> >        get_latest_by = "pub_date"
>> >        verbose_name = "Etkinlik"
>> >        verbose_name_plural = "Etkinlikler"
>> >
>> >    def __unicode__(self):
>> >        return u"%s - %s" %(self.name, self.text)
>> >
>> >    def get_absolute_url(self):
>> >        return "/etkinlik/%i/" % self.id
>> > --
>> >
>> >
>> > --
>> > Yours,
>> > Recep KIRMIZI 
>> >
>> > --
>> > 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...@googlegroups.com.
>> > For more options, visit this group at 
>> > http://groups.google.com/group/django-users?hl=en.
>> >
>> >
>>
>> --
>> 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...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
> --
> Recep KIRMIZI 
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject not working

2010-12-12 Thread codegal
Thanks.  Good pointer for running python scripts in the future - will
follow as a matter of practice.

As it turned out in this case, I just wasn't providing the full path.
I had set up a .pth file, and had tried copying django-admin.py into
the main Python directory, but it turned out that directory is not
assumed, and neither the PYTHONPATH nor the environmental variables
path gets checked when Python runs the command, so this (full path to
django-admin.py) is what finally worked for me:

python C:/Python27/Scripts/django-admin.py startproject mysite


On Dec 12, 8:06 pm, Brad Reardon  wrote:
> Vista is very picky about permissions. Try running the command prompt as an
> administrator.
>
>
>
> On Sun, Dec 12, 2010 at 8:06 PM, codegal  wrote:
> > I'm trying to create my first Django project, and I must be missing
> > something really basic. I'm using Windows Vista, and have installed
> > Python 2.7 and Django 1.2.3, put the location of django-admin.py into
> > my PATH variable, and navigated via command line to the location where
> > I want to create a project. I'm entering:
>
> > django-admin.py startproject cms
>
> > at the command line. I don't get an error, but I also don't get any
> > processing back - just a new prompt, and no project created in the
> > directory. Can't find any posts on the web regarding this issue...
>
> > 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-us...@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.- Hide quoted text -
>
> - Show quoted text -

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DateTimeField doesnt get future date.

2010-12-12 Thread Recep KIRMIZI
On Mon, 13 Dec 2010 13:33:37 +1100
Sam Lai  wrote:

> Sounds odd. What is the future date you're entering? Are you sure your
> system has the right date format set, e.g. you're not entering a
> MM/dd/ date when the system is expecting a dd/MM/ date or vice
> versa?
> 
This is what i tried just now:
Date: 23/12/2010
Time: 12:00:00
i've set these values from the datepicker applet in admin panel.

now i recognized sth. I guess it's expecting as u said. MM/dd/
bec. i've chosen a past date and it works. Coinsidencely today is 13rd. of 
December. so the days before this date in this month are like 11/12/2010 so it 
's ok both day or month less then 12 :)
i tried past month. 25th it failed again. how can i change the default datetime 
format?

> On 13 December 2010 08:29, Recep KIRMIZI  wrote:
> > Hi i have a model which has a datetime field like
> >
> >    pub_date = models.DateTimeField("Etkinlik Tarihi")
> >
> > this model is written to organize some events in a cafe. when i m trying to 
> > create some events from the admin panel. if i choose today and now from the 
> > date widget in admin; it works. if i choose a past date it works too. But 
> > if i choose a future date, it says. Enter a valid date. i dont know is it a 
> > bug about django or did i do sth. wrong in my model. here is my whole model.
> >
> > p.s.: i'm using django trunk on my server
> >
> > (InteractiveConsole)
>  import django
>  django.VERSION
> > (1, 3, 0, 'alpha', 1)
> 
> > --
> > #!/usr/bin/python
> > #-*- coding: utf-8 -*-
> > from django.db import models
> > from photologue.models import Photo
> >
> > class Etkinlik(models.Model):
> >    name = models.CharField("Etkinlik Adı", max_length=100)
> >    text = models.TextField("Etkinlik Metni", max_length=2000)
> >    foto = models.ForeignKey(Photo)
> >    pub_date = models.DateTimeField("Etkinlik Tarihi")
> >    is_active = models.BooleanField("Aktif", default=True)
> >
> >    class Meta:
> >        get_latest_by = "pub_date"
> >        verbose_name = "Etkinlik"
> >        verbose_name_plural = "Etkinlikler"
> >
> >    def __unicode__(self):
> >        return u"%s - %s" %(self.name, self.text)
> >
> >    def get_absolute_url(self):
> >        return "/etkinlik/%i/" % self.id
> > --
> >
> >
> > --
> > Yours,
> > Recep KIRMIZI 
> >
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group at 
> > http://groups.google.com/group/django-users?hl=en.
> >
> >
> 
> -- 
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 


-- 
Recep KIRMIZI 

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DateTimeField doesnt get future date.

2010-12-12 Thread Sam Lai
Sounds odd. What is the future date you're entering? Are you sure your
system has the right date format set, e.g. you're not entering a
MM/dd/ date when the system is expecting a dd/MM/ date or vice
versa?

On 13 December 2010 08:29, Recep KIRMIZI  wrote:
> Hi i have a model which has a datetime field like
>
>    pub_date = models.DateTimeField("Etkinlik Tarihi")
>
> this model is written to organize some events in a cafe. when i m trying to 
> create some events from the admin panel. if i choose today and now from the 
> date widget in admin; it works. if i choose a past date it works too. But if 
> i choose a future date, it says. Enter a valid date. i dont know is it a bug 
> about django or did i do sth. wrong in my model. here is my whole model.
>
> p.s.: i'm using django trunk on my server
>
> (InteractiveConsole)
 import django
 django.VERSION
> (1, 3, 0, 'alpha', 1)

> --
> #!/usr/bin/python
> #-*- coding: utf-8 -*-
> from django.db import models
> from photologue.models import Photo
>
> class Etkinlik(models.Model):
>    name = models.CharField("Etkinlik Adı", max_length=100)
>    text = models.TextField("Etkinlik Metni", max_length=2000)
>    foto = models.ForeignKey(Photo)
>    pub_date = models.DateTimeField("Etkinlik Tarihi")
>    is_active = models.BooleanField("Aktif", default=True)
>
>    class Meta:
>        get_latest_by = "pub_date"
>        verbose_name = "Etkinlik"
>        verbose_name_plural = "Etkinlikler"
>
>    def __unicode__(self):
>        return u"%s - %s" %(self.name, self.text)
>
>    def get_absolute_url(self):
>        return "/etkinlik/%i/" % self.id
> --
>
>
> --
> Yours,
> Recep KIRMIZI 
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject not working

2010-12-12 Thread Brad Reardon
Vista is very picky about permissions. Try running the command prompt as an
administrator.

On Sun, Dec 12, 2010 at 8:06 PM, codegal  wrote:

> I'm trying to create my first Django project, and I must be missing
> something really basic. I'm using Windows Vista, and have installed
> Python 2.7 and Django 1.2.3, put the location of django-admin.py into
> my PATH variable, and navigated via command line to the location where
> I want to create a project. I'm entering:
>
> django-admin.py startproject cms
>
> at the command line. I don't get an error, but I also don't get any
> processing back - just a new prompt, and no project created in the
> directory. Can't find any posts on the web regarding this issue...
>
> 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-us...@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.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django-admin.py startproject not working

2010-12-12 Thread codegal
I'm trying to create my first Django project, and I must be missing
something really basic. I'm using Windows Vista, and have installed
Python 2.7 and Django 1.2.3, put the location of django-admin.py into
my PATH variable, and navigated via command line to the location where
I want to create a project. I'm entering:

django-admin.py startproject cms

at the command line. I don't get an error, but I also don't get any
processing back - just a new prompt, and no project created in the
directory. Can't find any posts on the web regarding this issue...

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-us...@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: __init__.py file executed twice ?

2010-12-12 Thread martvefun

On 10-12-10 11:09, Mike Dewhirst wrote:
> 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 ... or anything else for
>>> that matter.
>>>
>>> class singleton(object):
>>>  """ designed by Oren Tirosh and Jeff Pitman """
>>>  def __new__(self, *args, **kwargs):
>>>  if not '_singleton' in self.__dict__:
>>>  slate = object.__new__(self)
>>>  slate.state = {
>>>  'threads':True,
>>>  # add other state things as required
>>>  }
>>>  self._singleton = slate
>>>  return self._singleton
>>>
>>> hth
>>>
>>> Mike
>>>
>> Sorry but I don't really understand how works the function you gave me.
>
> A singleton is a class which guarantees to return exactly the same
> object every time. It can only create an object once then returns a
> handle to the existing object instead of creating a new one.
>
> If you initiate your threads and set (in the above example)
> slate.state['threads'] = True I think you can rely on that and avoid
> initiating them twice.
>
> I used it once to manage the state of a "switch" where different parts
> of the project could instantiate a singleton object and read the
> state, make decisions and update the state reliably for other part of
> the app.
>
> Mike
>

Thank you, it works if I have to call in the same files (like s1 =
singleton() ; s2 = singleton() ) but here I still have two calls

class singleton(object):
 """ designed by Oren Tirosh and Jeff Pitman """
 def __new__(self, *args, **kwargs):
 print "call singleton"
 if not '_singleton' in self.__dict__:
print "first time created"
slate = object.__new__(self)
slate.state = {
'threads':True,
# add other state things as required
}
self._singleton = slate
 return self._singleton

singleton()
print "Server is now runing"

gives me :
$ python manage.py runserver
call singleton
first time created
Server is now runing
call singleton
first time created
Server is now runing
Validating models...
0 errors found

And anyway I just realised another problem : I'll need to have access to
the objects I created from views.
The idea is to send a message to the thread when a certain action is
done (like user registration, validate choices...) but to do that I need
an access to this object (I cannot create another one because of
concurrency safety)

Any idea ?

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



DateTimeField doesnt get future date.

2010-12-12 Thread Recep KIRMIZI
Hi i have a model which has a datetime field like 

pub_date = models.DateTimeField("Etkinlik Tarihi")

this model is written to organize some events in a cafe. when i m trying to 
create some events from the admin panel. if i choose today and now from the 
date widget in admin; it works. if i choose a past date it works too. But if i 
choose a future date, it says. Enter a valid date. i dont know is it a bug 
about django or did i do sth. wrong in my model. here is my whole model.

p.s.: i'm using django trunk on my server 

(InteractiveConsole)
>>> import django
>>> django.VERSION
(1, 3, 0, 'alpha', 1)
>>> 
--
#!/usr/bin/python
#-*- coding: utf-8 -*-
from django.db import models
from photologue.models import Photo

class Etkinlik(models.Model):
name = models.CharField("Etkinlik Adı", max_length=100)
text = models.TextField("Etkinlik Metni", max_length=2000)
foto = models.ForeignKey(Photo)
pub_date = models.DateTimeField("Etkinlik Tarihi")
is_active = models.BooleanField("Aktif", default=True)

class Meta:
get_latest_by = "pub_date"
verbose_name = "Etkinlik"
verbose_name_plural = "Etkinlikler"

def __unicode__(self):
return u"%s - %s" %(self.name, self.text)

def get_absolute_url(self):
return "/etkinlik/%i/" % self.id
--


-- 
Yours,
Recep KIRMIZI 

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django on a hosting service

2010-12-12 Thread Todd Wilson
Here is the latest communication from my hosting provider:

We will schedule mod_wsgi installation at the beginning of next
week. Please let us know what configuration options you would like
to have. System Administrators will review the list and if it
does not affect other customers on the server the changes will be
implemented.

The apache processes are started on the server with a -f referring to a
configuration file in my home directory, to which I don't have read
access.  There is also an htdocs subdirectory that is my document root.
 Their web interface allows me to change a couple of features of the
configuration (Server Name, Log Level, Directory Index, Timeout, Keep
Alive, Directory Listing), and start and stop the webserver, but that's
it.  It is natural to assume that, since this server has 241 users with
the same set-up I have, each with different domain names pointing to the
same IP address, there must be a virtual host declaration in this hidden
configuration file.

As I understand the quote above, I can propose any set of configuration
options for inclusion in this file, as long as it doesn't have a
negative effect on other users.  I also have to decide where to install
django (if they don't do it for me), where to put my django application
files, and where to put my site media.  I'd be grateful for any advice
on these topics.  Thanks,

--Todd

tiemonster wrote, on 12/12/2010 06:03 AM:
> Do you have access to any sort of virtualhost file? I honestly can't
> say I've ever tried it with an .htaccess. It would be rather
> inefficient because it would be read on every connection. I'm not
> sure, but I think that might force a reload on every connection.
> 
> -Mark
> 
> On Dec 11, 10:40 pm, Todd Wilson  wrote:
>> tiemonster wrote, on 12/11/2010 05:45 AM:
>>
>>> To use Django with Apache, it would be necessary to install *some*
>>> python interpreter into the server. I used Django on our shared
>>> hosting site using an .htaccess that called the mod_python handler in
>>> Django. However, mod_python was already installed. If they are
>>> offering to install mod_wsgi, then absolutely take them up on it. The
>>> performance difference between mod_wsgi and pretty much every other
>>> Apache arrangement cannot be understated.
>>
>> Thanks for clearing that up; I will definitely have them install
>> mod_wsgi.  But, will there be more for them to do than just installing
>> the module?  In other words, presuming that they are not already
>> familiar with mod_wsgi, will I also have to ask them make some further
>> modifications to the Apache config file, which I don't have access to,
>> or can I do the rest myself with an .htaccess file?
>>
>> --Todd> On Dec 9, 8:56 pm, Todd Wilson  wrote:
 A couple of weeks ago I sent the message quoted below to the list.  One
 reader (Daniel Roseman) replied and suggested that I might not need to
 ask the hosting service to install anything, quoting documentation from
 the FastCGI section, but it seemed to me (as explained in my reply on
 11/28/2010) that mod_fastcgi had to be installed, which it isn't (or at
 least it's not in /etc/apache2/mods-available/).
>>
 Anyway, I got through to the hosting provider's tech support with my
 request and got this reply:
>>
According to Django requirements (http://packages.debian.org/lenny
/python-django) and our experience there is no need to have
mod_python or mod_wsgi installed on the server.  So, you could
try to run Django web site on the server.  If any problem arises we
will install the mod_wsgi module.
>>
 I wonder if they are referring to the development server here.  Please
 correct me if I'm wrong, but I understood from the documentation that a
 vanilla installation of Apache would not be sufficient to deploy
 production Django applications, except possibly through (old-fashioned)
 CGI:  some form of integration (mod_wsgi, mod_python, mod_fastcgi, ...)
 would be needed.  Is that right?
>>
 In any case, they are willing to install mod_wsgi.  Not being very
 familiar with Apache configuration, can someone tell me how much of the
 WSGI configuration mentioned in the Django docs for WSGI deployment
 (http://docs.djangoproject.com/en/1.2/howto/deployment/modwsgi/) can be
 done with an .htaccess file, and how much I will have to ask them to do
 for me?
>>
 Thanks,
>>
 --Todd
>>
 Todd Wilson wrote, on 11/27/2010 07:20 PM:> I'm helping some friends 
 improve a portal website they have created
> using PHP, but which would be ideal for Django, in the sense that a lot
> of the work they've already done, and would like to do as they improve
> the site, would be easy to do in Django.  They have a hosting contract
> with Intermedia (http://www.intermedia.net/) and would very much like to
> keep it.  I've gotten ssh 

send_mail issue

2010-12-12 Thread Vikesh Khanna
Hi,
I have never used sendmail in Ubuntu and I am not too good at networks. I
was trying to implement a mail application in Django where I send a mail to
the newly registered user for confirmation. I used the following settings in
my settings.py file :
*
*EMAIL_HOST='localhost'
#EMAIL_HOST_USER='vikesh'
#EMAIL_HOST_PASSWORD='vikesh'
EMAIL_PORT=1025
DEFAULT_FROM_EMAIL = "nore...@edciitr.com"
SERVER_EMAIL = "ad...@domain.com"
EMAIL_USE_TLS = False

I am sending the mail like this - send_mail('Subject_Test','Content_Test','
khanna.vik...@gmail.com',['khanna.vik...@gmail.com'])

Using these settings I am able to see the output on the console when I run
the Python debugserver on port 1025 but when I change the port to 25, I am
not able to send the mail using the same settings. My port 25 is open (which
I confirmed by running sendmail and using netstat -an | grep "LISTEN"). I am
a beginner,  don't know if it is even possible to send a mail like this.
Help will be appreciated.

Regards,
Vikesh Khanna,
B.Tech. Computer Science, IV Year
Indian Institute of Technology, Roorkee

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Started now my django

2010-12-12 Thread Vikesh Khanna
Django has beautiful documentation. It is very easy to follow and learn
using this documentation even if you don't have any experience with Python -
http://docs.djangoproject.com/en/dev/

Also, you can refer to the Django book-
www.*djangobook*.com

On Sun, Dec 12, 2010 at 8:26 PM, NavaTux  wrote:

> I am new to this world ..i hope to live plenty here;I would like to
> get the materials which lead me on flow from the newbies
> beginning ..can you please give me your guidance(or steps) that i
> should follow sequentially to remove all obstacles(learn django
> pretty) plz!!
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Vikesh Khanna,
B.Tech. Computer Science, IV Year
Indian Institute of Technology, Roorkee

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Started now my django

2010-12-12 Thread Dima Moroz
Have you already follower http://docs.djangoproject.com/en/1.2/#first-steps ?

On 12 December 2010 16:56, NavaTux  wrote:
> I am new to this world ..i hope to live plenty here;I would like to
> get the materials which lead me on flow from the newbies
> beginning ..can you please give me your guidance(or steps) that i
> should follow sequentially to remove all obstacles(learn django
> pretty) plz!!
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
Sincerely,
Dima Moroz

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Started now my django

2010-12-12 Thread NavaTux
I am new to this world ..i hope to live plenty here;I would like to
get the materials which lead me on flow from the newbies
beginning ..can you please give me your guidance(or steps) that i
should follow sequentially to remove all obstacles(learn django
pretty) plz!!

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Extending AdminSite for custom views

2010-12-12 Thread Marcos Moyano
Add your custom urls before the admin include urls directive:
urlpatterns += patterns('',
(r'^admin/myview/$', 'your_admin_view'),
(r'^admin/', include(admin.site.urls)),
...

and continue working as usual. Django will go through the urls in descending
order matching your custom url before loading all the other admin urls.

Rgds,
Marcos


On Sat, Dec 11, 2010 at 1:33 PM, William Grzybowski wrote:

> Hello,
>
> I am trying to extend AdminSite so I can provide custom views, so far
> i have this:
>
> class MyAdminSite(AdminSite):
>
>def get_urls(self):
>urls = super(self.__class__, self).get_urls()
>my_urls = patterns('',
>(r'^myview/$', self.admin_view(myview))
>)
>return my_urls + urls
>
> myadmin = MyAdminSite()
>
> admpattern = patterns('', (r'^admin/', include(myadmin.urls)),)
>
> It works fine, except for one reason. I don't get any ModelAdmin
> registered in this admin, because all external apps register it doing
> admin.site.register().
>
> I figured out do add the registered models from site instance to
> myadmin through:
> myadmin._registry = site._registry
>
> But it doesn't feel right.
>
> Anyone with experience in this could point me out to the most correct
> answer for this problem?
>
> Thank you!
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Some people, when confronted with a problem, think “I know, I'll use regular
expressions.” Now they have two problems.

Jamie Zawinski, in comp.emacs.xemacs

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Closing or resetting long-running connections

2010-12-12 Thread Craig Trader
Background:

I have a fairly complex distributed Django application that, for
excellent reasons that I can not go into, requires that it have as low
an attack surface as possible AND that it run on both Windows and
Linux.  One consequence of this is that instead of using any of the
normal tools for building and managing distributed applications (ie:
RabbitMQ + Celery + django-celery) I've chosen to roll my own
infrastructure.  It all works remarkably well, except for one part,
and I'm looking for some advice in that area.

Much of the application is using SQLite for persistance, but the
correlation aspects of the application use Oracle.  Each piece of the
application has a web server (either Apache/mod-python or CherryPy)
and a background job processor.  The job processor pulls tasks off a
queue, runs them, then reschedules them as necessary.  Most of these
tasks interact with the database through Django.  Each individual task
is effectively sharing a single

Problem:

The problem that I'm currently facing is that occasionally an Oracle
instance will get reset (for any number of good reasons), but the
background process continues to attempt to use it's connection Object,
resulting in errors until I detect the problem and restart the
background process.

What I would like to be able to do is to have my background process
close and/or reset its database connection, as often as necessary.

Thank you in advance for any assistance you can render.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django on a hosting service

2010-12-12 Thread tiemonster
Do you have access to any sort of virtualhost file? I honestly can't
say I've ever tried it with an .htaccess. It would be rather
inefficient because it would be read on every connection. I'm not
sure, but I think that might force a reload on every connection.

-Mark

On Dec 11, 10:40 pm, Todd Wilson  wrote:
> tiemonster wrote, on 12/11/2010 05:45 AM:
>
> > To use Django with Apache, it would be necessary to install *some*
> > python interpreter into the server. I used Django on our shared
> > hosting site using an .htaccess that called the mod_python handler in
> > Django. However, mod_python was already installed. If they are
> > offering to install mod_wsgi, then absolutely take them up on it. The
> > performance difference between mod_wsgi and pretty much every other
> > Apache arrangement cannot be understated.
>
> Thanks for clearing that up; I will definitely have them install
> mod_wsgi.  But, will there be more for them to do than just installing
> the module?  In other words, presuming that they are not already
> familiar with mod_wsgi, will I also have to ask them make some further
> modifications to the Apache config file, which I don't have access to,
> or can I do the rest myself with an .htaccess file?
>
> --Todd> On Dec 9, 8:56 pm, Todd Wilson  wrote:
> >> A couple of weeks ago I sent the message quoted below to the list.  One
> >> reader (Daniel Roseman) replied and suggested that I might not need to
> >> ask the hosting service to install anything, quoting documentation from
> >> the FastCGI section, but it seemed to me (as explained in my reply on
> >> 11/28/2010) that mod_fastcgi had to be installed, which it isn't (or at
> >> least it's not in /etc/apache2/mods-available/).
>
> >> Anyway, I got through to the hosting provider's tech support with my
> >> request and got this reply:
>
> >>    According to Django requirements (http://packages.debian.org/lenny
> >>    /python-django) and our experience there is no need to have
> >>    mod_python or mod_wsgi installed on the server.  So, you could
> >>    try to run Django web site on the server.  If any problem arises we
> >>    will install the mod_wsgi module.
>
> >> I wonder if they are referring to the development server here.  Please
> >> correct me if I'm wrong, but I understood from the documentation that a
> >> vanilla installation of Apache would not be sufficient to deploy
> >> production Django applications, except possibly through (old-fashioned)
> >> CGI:  some form of integration (mod_wsgi, mod_python, mod_fastcgi, ...)
> >> would be needed.  Is that right?
>
> >> In any case, they are willing to install mod_wsgi.  Not being very
> >> familiar with Apache configuration, can someone tell me how much of the
> >> WSGI configuration mentioned in the Django docs for WSGI deployment
> >> (http://docs.djangoproject.com/en/1.2/howto/deployment/modwsgi/) can be
> >> done with an .htaccess file, and how much I will have to ask them to do
> >> for me?
>
> >> Thanks,
>
> >> --Todd
>
> >> Todd Wilson wrote, on 11/27/2010 07:20 PM:> I'm helping some friends 
> >> improve a portal website they have created
> >>> using PHP, but which would be ideal for Django, in the sense that a lot
> >>> of the work they've already done, and would like to do as they improve
> >>> the site, would be easy to do in Django.  They have a hosting contract
> >>> with Intermedia (http://www.intermedia.net/) and would very much like to
> >>> keep it.  I've gotten ssh access to their server and went poking around
> >>> a bit, and, although python is available on the server (version 2.5.2),
> >>> there doesn't seem to be any support for WSGI, mod_python, FastCGI, or
> >>> the other deployment options listed in the documentation (at least I
> >>> didn't see them in /etc/apache2/mods-available/), and it doesn't look
> >>> like they support other frameworks (Rails, Drupal, Zope) either.
>
> >>> My question:  I've always set up my own servers and don't have any
> >>> experience with web hosting;  is there a minimal sort of request that I
> >>> could make to Intermedia that, if granted, would make it possible for me
> >>> (and presumably others) to deploy a Django site using their service, or
> >>> should I just try to convince my friends to find a different hosting
> >>> service?  It seems like there would be many to choose from:
>
> >>>    http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
>
> >>> Thanks,
>
> >>> --Todd

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Conflict trying to save models when roles metaclass is applied.

2010-12-12 Thread juacompe
I did not have time to go over the implementation of ModelBase class
yet but I tried extend my test cases and want to update the progress.

I apply the Carpenter role (in the earlier post) in setUp of all test
classes in 2 small projects and add the test below in each of them.

---
def test_carpenter_role_applied(self):
s = self.student
self.failUnless(isinstance(s, Student))
self.failUnless(isinstance(s, Carpenter))
s.chop()


Just to test that the model are properly roled and ran the whole test
suite to see if any of my assumptions were broken. All pass! Quite
happy with the result. :)

Thank again to Bruno for his kind advice. ;)

Best regards,
Chokchai P.

On Dec 4, 5:37 pm, juacompe  wrote:
> Good idea! I'll try that and update the post.
>
> I'll be out of town for a week, don't think i can code during that. so
> my next post would be around the next weekend.
>
> Have a good day!
> Chokchai P.
>
> On Dec 4, 12:19 am, bruno desthuilliers
>
>
>
>
>
>
>
>  wrote:
> > On 3 déc, 08:00, juacompe  wrote:
>
> > > Hi Bruno,
>
> > > Thank you very much!! Adding an inner Meta class works like charm.
>
> > Cool 8)
>
> > Now beware, there _might_ be a couple other dark corners... I strongly
> > suggest you take a look at ModelBase implementation and possibly
> > extend your test cases, at least to make sure you spotted all possible
> > side-effects of the role+model combo.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2010-12-12 Thread Mike Dewhirst

On 12/12/2010 10:55pm, Mike Dewhirst wrote:

On 12/12/2010 12:35pm, jc wrote:

I ran the Django develplment server and everything runs fine. It's
only when I go back to the other web server that things start to break
on me.


In that case check out http://blip.tv/file/3840484 for Graham
Dumpleton's talk on precisely the problem you describe.


Er ... I meant to include this link too

http://blog.dscpl.com.au/search/label/mod_wsgi

Mike




hth

Mike



On Dec 11, 8:06 pm, Mike Dewhirst wrote:

On 12/12/2010 10:56am, jc wrote:










I've tried to fix my config files and it gives me a 500 error, here is
what i see n the logs. I've been told by someone else that they think
it's still my mod_wsgi/Apache configuration and not the error that I'm
getting in the log about missing modules. Any suggestions? Here is the
server error log message and my newly configured files:



#
# error.log
#
mod_wsgi (pid=20698): Exception occurred processing WSGI script '/
srv/
www/duckling.org/store/wsgi-scripts/django.wsgi'.
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
wsgi.py", line 230, in __call__
self.load_middleware()
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py", line 42, in load_middleware
raise exceptions.ImproperlyConfigured('Error importing middleware %s:
"%s"' % (mw_module, e))
ImproperlyConfigured: Error importing middleware
satchmo_store.shop.SSLMiddleware: "No module named
satchmo_store.shop.SSLMiddleware
I'm at a loss here as to how I find out if the problem lies with
mod_wsgi or apache configs or django or satchmo. So, I'm posting here
just in case someone might be able to help me out. Without some help
this project is as good as doomed as I don't have a lot of skills and
I'm learning along the way.


The loading middleware error seems straightforward. My guess is the
module containing the middleware cannot be found.

If you installed Satchmo correctly it will have added itself properly to
the Python path and that error wouldn't occur.

If you are learning and still need to develop your skills I would
recommend using the Django dev server to try it out.

hth

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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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

2010-12-12 Thread Mike Dewhirst

On 12/12/2010 12:35pm, jc wrote:

I ran the Django develplment server and everything runs fine. It's
only when I go back to the other web server that things start to break
on me.


In that case check out http://blip.tv/file/3840484 for Graham 
Dumpleton's talk on precisely the problem you describe.


hth

Mike



On Dec 11, 8:06 pm, Mike Dewhirst  wrote:

On 12/12/2010 10:56am, jc wrote:










I've tried to fix my config files and it gives me a 500 error, here is
what i see n the logs. I've been told by someone else that they think
it's still my mod_wsgi/Apache configuration and not the error that I'm
getting in the log about missing modules. Any suggestions? Here is the
server error log message and my newly configured files:



#
# error.log
#
mod_wsgi (pid=20698): Exception occurred processing WSGI script '/
srv/
www/duckling.org/store/wsgi-scripts/django.wsgi'.
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
wsgi.py", line 230, in __call__
   self.load_middleware()
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py", line 42, in load_middleware
raise exceptions.ImproperlyConfigured('Error importing middleware %s:
"%s"' % (mw_module, e))
   ImproperlyConfigured: Error importing middleware
satchmo_store.shop.SSLMiddleware: "No module named
satchmo_store.shop.SSLMiddleware
I'm at a loss here as to how I find out if the problem lies with
mod_wsgi or apache configs or django or satchmo. So, I'm posting here
just in case someone might be able to help me out. Without some help
this project is as good as doomed as I don't have a lot of skills and
I'm learning along the way.


The loading middleware error seems straightforward. My guess is the
module containing the middleware cannot be found.

If you installed Satchmo correctly it will have added itself properly to
the Python path and that error wouldn't occur.

If you are learning and still need to develop your skills I would
recommend using the Django dev server to try it out.

hth

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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.