getting problem while submiting in dynamic form

2012-03-18 Thread shweta
hi,
i m trying to create dynamic form with corresponding fields using
following code. But getting problem while submiting value.
If i entered blank value then error is :

Attribute Error:

'module' object has no attribute ''
in forms.py


and if I entered value for salary then error is:

Attribute Error:

'module' object has no attribute '10'
in forms.py


Here is forms.py

from django import forms
class ContextForm(forms.Form):
  def __init__(self. rdict, *args, **kwargs):
super(ContextForm, self).__init__(*args, **kwargs)
for key in rdict.keys():
  self.fields['%s' % str(key)] = getattr(forms,
rdict.get(key))()
---
rdict = {: 'CharField', : 'CharField', : 'IntegerField',
: 'CharField', :
'CharField'}

c = ContextForm(rdict)

plz help me for this
Thank you

--
Regards,
Shweta Chaughule

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



getting problem while submiting in dynamic form

2012-03-18 Thread shweta chaughule
hi,
i m trying to create dynamic form with corresponding fields using following
code. But getting problem while submiting value.
If i entered blank value then error is :

Attribute Error:

'module' object has no attribute ''
in forms.py


and if I entered value for salary then error is:

Attribute Error:

'module' object has no attribute '10'
in forms.py


Here is forms.py

from django import forms
class ContextForm(forms.Form):
  def __init__(self. rdict, *args, **kwargs):
super(ContextForm, self).__init__(*args, **kwargs)
for key in rdict.keys():
  self.fields['%s' % str(key)] = getattr(forms,
rdict.get(key))()
---
rdict = {: 'CharField', :
'CharField', : 'IntegerField', : 'CharField', : 'CharField'}

c = ContextForm(rdict)

plz help me for this
Thank you

-- 
Regards,
Shweta Chaughule

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: problem with admin settings

2012-03-18 Thread Swaroop Shankar V
Sophia,
Could you please provide me with your settings.py file?
On Mar 19, 2012 4:04 AM, "Sophia"  wrote:

> Swaroop,
>
> I run sync.db this is what it shows after running sync.db :
>
> Creating tables ...
> Installing custom SQL ...
> Installing indexes ...
> No fixtures found.
>
> Process finished with exit code 0
>
> without any error, but it still doesn't work, would you please help me
> with it, I really stuck :(
>
>
> On Saturday, March 17, 2012 2:46:25 PM UTC-7, Swaroop Shankar wrote:
>>
>> Did you run the syncdb after enabling it? While doing a syncdb did you
>> encounter any errors? From the error it looks like django_session table
>> is not created.
>>
>> Thanks and Regards,
>> Swaroop Shankar V
>>
>>
>>
>> On Sun, Mar 18, 2012 at 3:07 AM, Sophia  wrote:
>>
>>> Thank you for helping, I had enabled it. But I don't know what's wrong
>>> with it!
>>>
>>>
>>> On Saturday, March 17, 2012 2:23:10 PM UTC-7, Swaroop Shankar wrote:

 Sophia,
 Please check if you have enabled the app 'django.contrib.sessions' in
 your INSTALLED_APPS, if not do that and then do a syncdb, this issue should
 be resolved.

 Thanks and Regards,
 Swaroop Shankar V



 On Sun, Mar 18, 2012 at 2:41 AM, Sophia wrote:

> Hi all,
>
> I'm trying to set my admin settings so I will get the web page asking
> for user name and password, I did all the settings that is needed and
> mentioned in the online django book(chapter6), but the page keep giving me
> this error :
>
> Exception Type: DatabaseError  Exception Value:
>
> no such table: django_session
>
>
> this my settings.py what could be wrong with my code?
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': 'test.db',
> 'USER': '',
> 'PASSWORD': '',
> 'HOST': '',
> 'PORT': '',
> }
> }
>
> Thanks in advance
> Sophia
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit https://groups.google.com/d/*
> *ms**g/django-users/-/**huWdNc8xUycJ
> .
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@**googl**egroups.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 view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/DkRv66Jz-**lYJ
>>> .
>>>
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en
>>> .
>>>
>>
>>
> On Saturday, March 17, 2012 2:46:25 PM UTC-7, Swaroop Shankar wrote:
>>
>> Did you run the syncdb after enabling it? While doing a syncdb did you
>> encounter any errors? From the error it looks like django_session table
>> is not created.
>>
>> Thanks and Regards,
>> Swaroop Shankar V
>>
>>
>>
>> On Sun, Mar 18, 2012 at 3:07 AM, Sophia  wrote:
>>
>>> Thank you for helping, I had enabled it. But I don't know what's wrong
>>> with it!
>>>
>>>
>>> On Saturday, March 17, 2012 2:23:10 PM UTC-7, Swaroop Shankar wrote:

 Sophia,
 Please check if you have enabled the app 'django.contrib.sessions' in
 your INSTALLED_APPS, if not do that and then do a syncdb, this issue should
 be resolved.

 Thanks and Regards,
 Swaroop Shankar V



 On Sun, Mar 18, 2012 at 2:41 AM, Sophia wrote:

> Hi all,
>
> I'm trying to set my admin settings so I will get the web page asking
> for user name and password, I did all the settings that is needed and
> mentioned in the online django book(chapter6), but the page keep giving me
> this error :
>
> Exception Type: DatabaseError  Exception Value:
>
> no such table: django_session
>
>
> this my settings.py what could be wrong with my code?
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': 'test.db', 

Add user page extend.

2012-03-18 Thread yillkid
I can add new field to the UserProfile class, for example I add a integer 
field to take down the account valid days.

But, if I want to add this filed to "/admin/auth/user/add/" page, 

then admin can modify the value when add user (link user_name/password 
input), how should I do ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/osFJmQ5S45YJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Looking for a round trip example of adding/editing/saving a record using class-based views

2012-03-18 Thread Lee Hinde
I'm looking for something like the vote function in step 4 of the tutorial, 
but using class-based views.py. Any pointers would be appreciated.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/igEcuWG2YqEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: problem with admin settings

2012-03-18 Thread Sophia
Swaroop,

I run sync.db this is what it shows after running sync.db :

Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.

Process finished with exit code 0

without any error, but it still doesn't work, would you please help me with 
it, I really stuck :(


On Saturday, March 17, 2012 2:46:25 PM UTC-7, Swaroop Shankar wrote:
>
> Did you run the syncdb after enabling it? While doing a syncdb did you 
> encounter any errors? From the error it looks like django_session table 
> is not created.
>
> Thanks and Regards,
> Swaroop Shankar V
>
>
>
> On Sun, Mar 18, 2012 at 3:07 AM, Sophia  wrote:
>
>> Thank you for helping, I had enabled it. But I don't know what's wrong 
>> with it!
>>
>>
>> On Saturday, March 17, 2012 2:23:10 PM UTC-7, Swaroop Shankar wrote:
>>>
>>> Sophia,
>>> Please check if you have enabled the app 'django.contrib.sessions' in 
>>> your INSTALLED_APPS, if not do that and then do a syncdb, this issue should 
>>> be resolved.
>>>
>>> Thanks and Regards,
>>> Swaroop Shankar V
>>>
>>>
>>>
>>> On Sun, Mar 18, 2012 at 2:41 AM, Sophia wrote:
>>>
 Hi all,

 I'm trying to set my admin settings so I will get the web page asking 
 for user name and password, I did all the settings that is needed and 
 mentioned in the online django book(chapter6), but the page keep giving me 
 this error :

 Exception Type: DatabaseError  Exception Value: 

 no such table: django_session


 this my settings.py what could be wrong with my code?

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.sqlite3',
 'NAME': 'test.db',**  
 'USER': '',  
 'PASSWORD': '',  
 'HOST': '',  
 'PORT': '',  
 }
 } 

 Thanks in advance
 Sophia

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To view this discussion on the web visit https://groups.google.com/d/**
 msg/django-users/-/**huWdNc8xUycJ
 .
 To post to this group, send email to django-users@googlegroups.com.
 To unsubscribe from this group, send email to django-users+unsubscribe@
 **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 view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/DkRv66Jz-lYJ.
>>
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
On Saturday, March 17, 2012 2:46:25 PM UTC-7, Swaroop Shankar wrote:
>
> Did you run the syncdb after enabling it? While doing a syncdb did you 
> encounter any errors? From the error it looks like django_session table 
> is not created.
>
> Thanks and Regards,
> Swaroop Shankar V
>
>
>
> On Sun, Mar 18, 2012 at 3:07 AM, Sophia  wrote:
>
>> Thank you for helping, I had enabled it. But I don't know what's wrong 
>> with it!
>>
>>
>> On Saturday, March 17, 2012 2:23:10 PM UTC-7, Swaroop Shankar wrote:
>>>
>>> Sophia,
>>> Please check if you have enabled the app 'django.contrib.sessions' in 
>>> your INSTALLED_APPS, if not do that and then do a syncdb, this issue should 
>>> be resolved.
>>>
>>> Thanks and Regards,
>>> Swaroop Shankar V
>>>
>>>
>>>
>>> On Sun, Mar 18, 2012 at 2:41 AM, Sophia wrote:
>>>
 Hi all,

 I'm trying to set my admin settings so I will get the web page asking 
 for user name and password, I did all the settings that is needed and 
 mentioned in the online django book(chapter6), but the page keep giving me 
 this error :

 Exception Type: DatabaseError  Exception Value: 

 no such table: django_session


 this my settings.py what could be wrong with my code?

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.sqlite3',
 'NAME': 'test.db',**  
 'USER': '',  
 'PASSWORD': '',  
 'HOST': '',  
 'PORT': '',  
 }
 } 

 Thanks in advance
 Sophia

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django 

Re: NullBooleanField default to unknown

2012-03-18 Thread Mike Dewhirst

I did a bit of playing around and found the same as you did.

I think the bottom line is that a boolean field of any type can only 
realistically hold two values. The NullBoolean must only be a workaround 
to support various form logic.


If you truly need a third value then an IntegerField is probably your 
best bet.


Mike

On 18/03/2012 8:10am, Ben Racine wrote:


yes.

On Mar 16, 2012 8:07 PM, "Mike Dewhirst" > wrote:


On 17/03/2012 11:02am, Ben wrote:

I have a NullBooleanField that I would like to show up in my admin
interface as radio buttons with unknown selected by default.

# I have the following simplified files

## models.py ##
class Value(models.Model):
presence = models.NullBooleanField(default=False)


Have you tried

   presence = models.NullBooleanField(default=None)


??



## admin.py ##
PRESENCE_CHOICES = ((True, 'True'), (False, 'False'), (None,
'None') )
class ValueAdmin(admin.ModelAdmin):
formfield_overrides = {
models.NullBooleanField: {'widget':
RadioSelect(choices=PRESENCE_CHOICES)}
}
admin.site.register(Value, ValueAdmin)

This behaves very closely to what I desire, but I don't know
what I
could replace the False with in:
presence = models.NullBooleanField(default=False)
in order to make it behave as I would like.

Thanks so much for your time,
Ben R.


-- 
You received this message because you are subscribed to the Google

Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google 
Groups "Django users" group.

To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Trouble setting up website with mysql as backend

2012-03-18 Thread CLIFFORD ILKAY

On 03/17/2012 04:49 PM, Swaroop Shankar V wrote:

Hello All,
I was developing a website and the development was all done using sqlite
database. Now the development is almost complete so i need to test the
site using mysql. When i did a syncdb on a fresh database i got the
following error:

[snip]

_mysql_exceptions.Warning: Data truncated for column 'name' at row 1

As you can see its a mysql warning since i had changed mysql mode to non
strict.


Hello,

Others have already explained why this happened. Let me add that you 
should not run MySQL in non-strict mode. Django is actually saving you 
from creating junk data in this case but that would not necessarily be 
the case if you were to do insert or update operations on that same 
database with something other than Django.


MySQL used to have a "feature", which I considered a bug, whereby it 
would happily accept a string longer than the width of the column in 
which that data was to be stored and not even mention that it had 
truncated your string to fit into that particular column.


Recent versions of MySQL allow you to set the database to non-strict 
mode whereby it will still allow you to insert a string longer than the 
width of a column but at least, it will generate a warning message. 
Older versions would just silently truncate. Either scenario is 
unacceptable in a database. Why would you want the database to tell you 
after-the-fact, "Oh, by the way, I just screwed up your data." 
after-the-fact? The first job of a database should be to protect data 
integrity so if you're attempting to insert 51 characters into a 
varchar(50) column, it should not accept it under any circumstances and 
throw an exception.


The MySQL docs 
, which 
I've quoted below, explains this.


###
TRADITIONAL

Make MySQL behave like a “traditional” SQL database system. A 
simple description of this mode is “give an error instead of a warning” 
when inserting an incorrect value into a column.

Note

The INSERT/UPDATE aborts as soon as the error is noticed. This may 
not be what you want if you are using a nontransactional storage engine, 
because data changes made prior to the error may not be rolled back, 
resulting in a “partially done” update. (Added in MySQL 5.0.2)


When this manual refers to “strict mode,” it means a mode where at least 
one of STRICT_TRANS_TABLES or STRICT_ALL_TABLES is enabled.

###
--
Regards,

Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada  M4N 3P6


+1 416-410-3326

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django registration and weird date validation data

2012-03-18 Thread nicolas HERSOG
Hi everyone,

I added django registration to my app and i'm facing a problem with date
validation.
In my settings.py I have this :

DATE_INPUT_FORMATS = ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y',
'%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B % d %Y',
'%B %d, %Y', '%d %B %Y', '%d %B, %Y')
USE_L10N = True
USE_I18N = True
TIME_ZONE = 'Europe/Paris'
LANGUAGE_CODE = 'fr-FR'

I added a date field in my form.
ex :

from django import forms
from models import UserProfile
from captcha.fields import CaptchaField

from registration.forms import RegistrationForm

class ProfileForm(forms.Form):

birthday = forms.DateField()
country = forms.CharField()
city = forms.CharField()
addr1 = forms.CharField()

def save(self, user):
try:
data = user.get_profile()
except:
data = UserProfile(user=user)

data.city = self.cleaned_data["city"]
data.birthday = self.cleaned_data["birthday"]
data.country = self.cleaned_data["country"]
data.addr1 = self.cleaned_data["addr1"]
data.save()

class UserRegistrationForm(RegistrationForm):
birthday = forms.DateField()
country = forms.CharField()
city = forms.CharField()
addr1 = forms.CharField()
captcha = CaptchaField()


The problem is when I submit this form with a date like 'dd/mm/' I met
this error :

ValidationError at /accounts/register/
[u'Saisissez une date valide au format -MM-JJ.']
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py"
in get_response
  111. response = callback(request, *callback_args,
**callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/registration/views.py" in
register
  187. new_user = backend.register(request, **form.cleaned_data)
File
"/usr/local/lib/python2.6/dist-packages/registration/backends/default/__init__.py"
in register
  82.  request=request)
File "/usr/local/lib/python2.6/dist-packages/django/dispatch/dispatcher.py"
in send
  172. response = receiver(signal=self, sender=sender, **named)
File
"/home/projets/perso/myApp/alpha/myApp/../myApp/myAppFront/regbackend.py"
in user_created
  10. data.save()


Do i have to conf the date input format of django registration ?
In order to test my date_input_format conf, i created an empty form with
one dateField, i submited it and print the cleaned_data value.
Every time I typed something like 'dd/mm/' it worked well in my new
form, but fail in my register form.

Do anyone have ever faced this kind of issues ?

Thx for your help :)

Regards
Nicolas

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: model can return a count but no data

2012-03-18 Thread Maarten Japink
Great! this works. Thank you so much Kevin.


2012/3/18 Kevin Wetzels 

>
> On Sunday, March 18, 2012 12:55:31 PM UTC+1, Maarten Japink wrote:
>>
>> I 'm working on a taxonomie.
>> These are my models:
>>
>> class Classificatie(models.Model):
>> name=models.CharField(max_**length=60)
>>
>> def __unicode__(self):
>> return self.name
>>
>> class Taxonomie(models.Model):
>> name=models.CharField(max_**length=60)
>> level=models.ForeignKey(**Classificatie)
>> parent=models.ForeignKey('**self', related_name='parent_id' )
>> synoniem=models.ForeignKey('**self',
>> related_name='synoniem_id' ,blank=True, null=True)
>>
>> I populated the tabels in postgresql
>>
>> When I do:
>> >>>Taxonomie.objects.count()
>> I get the proper number of rows (593)
>>
>> but when i want to read a single object with:
>> >>> t=Taxonomie.objects.get(id=20)
>> Traceback (most recent call last):
>>   File "", line 1, in 
>>   File "C:\Python27\lib\site-**packages\django\db\models\**manager.py",
>> line 132, in
>>  get
>> return self.get_query_set().get(***args, **kwargs)
>>   File "C:\Python27\lib\site-**packages\django\db\models\**query.py",
>> line
>> 344, in g
>> et
>> num = len(clone)
>>   File "C:\Python27\lib\site-**packages\django\db\models\**query.py",
>> line
>> 82, in __
>> len__
>> self._result_cache = list(self.iterator())
>>   File "C:\Python27\lib\site-**packages\django\db\models\**query.py",
>> line
>> 286, in i
>> terator
>> obj = model(*row[index_start:**aggregate_start])
>>   File "C:\Python27\lib\site-**packages\django\db\models\**base.py",
>> line
>> 297, in __
>> init__
>> setattr(self, field.attname, val)
>>   File "C:\Python27\lib\site-**packages\django\db\models\**fields
>> \related.py", line
>> 402, in __set__
>> manager.add(*value)
>> TypeError: add() argument after * must be a sequence, not int
>>
>>
>> I also tried the Taxonomie model with both ' self ' Foreignkey set to
>> blank=True and null=True
>> gives me the same problem. I also can't make new taxonomie objects
>> with django
>>
>>
>> What am I doiing wrong?
>>
>>
> You're using the implicit column_name as the related_name on the
> self-referencing FKs. Django will generate a column name from the name of
> your field, which means parent_id and synoniem_id columns will be used.
> Then you decide to use those as the related_name for the corresponding
> ForeignKey. This won't cause a problem when you perform a count since in
> that case no model instances need to be loaded; it's simply a query that's
> executed.
>
> This works and is more inline with what you should expect of a related
> name:
>
> class Taxonomie(models.Model):
> name=models.CharField(max_length=60)
> level=models.ForeignKey(Classificatie)
> parent=models.ForeignKey('self', related_name='parents' ,blank=True,
> null=True)
> synoniem=models.ForeignKey('self', related_name='synoniemen'
> ,blank=True, null=True)
>
> By the way: if you can, you're better off using English for your code
> rather than Dutch.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/Icc1RBqovDcJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: New way to run your Django projects

2012-03-18 Thread Justin Holmes
I feel the need to inject, once again, that the Twisted WSGI container
rocks.

On Sun, Mar 18, 2012 at 12:40 PM, Bolang  wrote:

> Hi Alexander,
> What is the advantage of using gevent-fastcgi instead of simply using
> nginx and maybe with gunicorn?
>
>
>
> On 03/18/2012 12:59 PM, Alexander wrote:
>
>> Hello everybody,
>>
>> I'm working on gevent coroutine based  library FastCGI server
>> implementation and I's ready for testing. It most likely contains lots
>> of bugs and it would be great if you help to catch some of them.
>>
>> Just install gevent-fastcgi package:
>>
>> $ easy_install gevent-fastcgi
>>
>> Then include gevent_fastcgi.adapters.django into INSTALLED_APPS list
>> of your settings.py. Then run:
>>
>> $ python manage.py run_gevent_fastcgi host:port
>>
>> Run "python manage.py run_gevent_fastcgi --help" to find out more
>> about run_gevent_fastcgi command.
>>
>> Alex
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>


-- 
Justin Holmes

Head Instructor, SlashRoot Collective
SlashRoot: Coffee House and Tech Dojo
60 Main Street
New Paltz, NY 12561
845.633.8330

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: model can return a count but no data

2012-03-18 Thread Kevin Wetzels
 
On Sunday, March 18, 2012 12:55:31 PM UTC+1, Maarten Japink wrote:
>
> I 'm working on a taxonomie. 
> These are my models: 
>
> class Classificatie(models.Model): 
> name=models.CharField(max_length=60) 
>
> def __unicode__(self): 
> return self.name 
>
> class Taxonomie(models.Model): 
> name=models.CharField(max_length=60) 
> level=models.ForeignKey(Classificatie) 
> parent=models.ForeignKey('self', related_name='parent_id' ) 
> synoniem=models.ForeignKey('self', 
> related_name='synoniem_id' ,blank=True, null=True) 
>
> I populated the tabels in postgresql 
>
> When I do: 
> >>>Taxonomie.objects.count() 
> I get the proper number of rows (593) 
>
> but when i want to read a single object with: 
> >>> t=Taxonomie.objects.get(id=20) 
> Traceback (most recent call last): 
>   File "", line 1, in  
>   File "C:\Python27\lib\site-packages\django\db\models\manager.py", 
> line 132, in 
>  get 
> return self.get_query_set().get(*args, **kwargs) 
>   File "C:\Python27\lib\site-packages\django\db\models\query.py", line 
> 344, in g 
> et 
> num = len(clone) 
>   File "C:\Python27\lib\site-packages\django\db\models\query.py", line 
> 82, in __ 
> len__ 
> self._result_cache = list(self.iterator()) 
>   File "C:\Python27\lib\site-packages\django\db\models\query.py", line 
> 286, in i 
> terator 
> obj = model(*row[index_start:aggregate_start]) 
>   File "C:\Python27\lib\site-packages\django\db\models\base.py", line 
> 297, in __ 
> init__ 
> setattr(self, field.attname, val) 
>   File "C:\Python27\lib\site-packages\django\db\models\fields 
> \related.py", line 
> 402, in __set__ 
> manager.add(*value) 
> TypeError: add() argument after * must be a sequence, not int 
>
>
> I also tried the Taxonomie model with both ' self ' Foreignkey set to 
> blank=True and null=True 
> gives me the same problem. I also can't make new taxonomie objects 
> with django 
>
>
> What am I doiing wrong? 
>
>
You're using the implicit column_name as the related_name on the 
self-referencing FKs. Django will generate a column name from the name of 
your field, which means parent_id and synoniem_id columns will be used. 
Then you decide to use those as the related_name for the corresponding 
ForeignKey. This won't cause a problem when you perform a count since in 
that case no model instances need to be loaded; it's simply a query that's 
executed.

This works and is more inline with what you should expect of a related name:

class Taxonomie(models.Model):
name=models.CharField(max_length=60)
level=models.ForeignKey(Classificatie)
parent=models.ForeignKey('self', related_name='parents' ,blank=True, 
null=True)
synoniem=models.ForeignKey('self', related_name='synoniemen' 
,blank=True, null=True)  

By the way: if you can, you're better off using English for your code 
rather than Dutch.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Icc1RBqovDcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: VERY strange unicode encode error on internet connection

2012-03-18 Thread ionic drive
Karen,

sometimes its only good to get pushed by someone else.
I also think, that the code is going down different paths.

I thought I might have overseen something.
I just have to inspect my code further.

Thanks for the hint
Ionic

On Sun, 2012-03-18 at 12:48 -0400, Karen Tracey wrote:

> On Sun, Mar 18, 2012 at 8:37 AM, ionic drive  wrote:
> > hello django friends,
> >
> > I am facing a VERY strange unicode encode error on internet connection.
> > No Error when network(LAN/internet) is disabled.
> >
> > Situation:
> > 
> > In a template I do have a link to a site(google) in this a URL a '/u' is
> > included.
> >
> > I am testing this in my virtual-machine so I can turn on and off internet
> > connection.
> > the server is in my virtual-machine and the browser is in this
> > virtual-machine too.
> > So I am able to test the site with "internet connection" and without
> > "internet connection".
> >
> > Now the VERY strange behavior:
> >
> > When my internet connection is activated I do get the following Template
> > Error:
> >
> > Caught UnicodeDecodeError while rendering: 'ascii' codec can't
> > decode byte 0xe2 in position 31: ordinal not in range(128)
> >
> > When my internet connection is disabled everything works fine.
> >
> >
> > I did not know that my django - interpreter is internet connection related!?
> >
> > Please give me some insights on that problem.
> >
> 
> Your code is going down some different paths in the two situations,
> why that is the case is hard to speculate on without more information.
> It's also pretty much impossible to give guidance on how to fix the
> UnicoceDecodeError without the full traceback from it.
> 
> Karen
> -- 
> http://tracey.org/kmt/
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: VERY strange unicode encode error on internet connection

2012-03-18 Thread Karen Tracey
On Sun, Mar 18, 2012 at 8:37 AM, ionic drive  wrote:
> hello django friends,
>
> I am facing a VERY strange unicode encode error on internet connection.
> No Error when network(LAN/internet) is disabled.
>
> Situation:
> 
> In a template I do have a link to a site(google) in this a URL a '/u' is
> included.
>
> I am testing this in my virtual-machine so I can turn on and off internet
> connection.
> the server is in my virtual-machine and the browser is in this
> virtual-machine too.
> So I am able to test the site with "internet connection" and without
> "internet connection".
>
> Now the VERY strange behavior:
>
> When my internet connection is activated I do get the following Template
> Error:
>
>     Caught UnicodeDecodeError while rendering: 'ascii' codec can't
> decode byte 0xe2 in position 31: ordinal not in range(128)
>
> When my internet connection is disabled everything works fine.
>
>
> I did not know that my django - interpreter is internet connection related!?
>
> Please give me some insights on that problem.
>

Your code is going down some different paths in the two situations,
why that is the case is hard to speculate on without more information.
It's also pretty much impossible to give guidance on how to fix the
UnicoceDecodeError without the full traceback from it.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: New way to run your Django projects

2012-03-18 Thread Bolang

Hi Alexander,
What is the advantage of using gevent-fastcgi instead of simply using 
nginx and maybe with gunicorn?



On 03/18/2012 12:59 PM, Alexander wrote:

Hello everybody,

I'm working on gevent coroutine based  library FastCGI server
implementation and I's ready for testing. It most likely contains lots
of bugs and it would be great if you help to catch some of them.

Just install gevent-fastcgi package:

$ easy_install gevent-fastcgi

Then include gevent_fastcgi.adapters.django into INSTALLED_APPS list
of your settings.py. Then run:

$ python manage.py run_gevent_fastcgi host:port

Run "python manage.py run_gevent_fastcgi --help" to find out more
about run_gevent_fastcgi command.

Alex



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to display development server page

2012-03-18 Thread Karen Tracey
On Sat, Mar 17, 2012 at 1:23 AM, Alex Glaros  wrote:
> Newbie trying to run Django for the first time.
>
> I'm using a hosted Linux server; I run python manage.py runserver, and
> get:
>
> Validating models...
>
> 0 errors found
> Django version 1.3.1, using settings 'alexSite.settings'
> Development server is running at http://127.0.0.1:8000/
> Quit the server with CONTROL-C.
>
> But my browser doesn't see anything at http://127.0.0.1:8000/
>
> Any hints?  Where is the page, on my PC or the hosted server?

The page will be served by your linux host. However, you can't reach
your linux host from your PC using 127.0.0.1 as the IP address.
127.0.0.1 is a special "loopback" IP address. Traffic for it is never
routed off the local machine. The development server by default
listens only on 127.0.0.1, meaning you cannot reach it from other
machines. If you are trying to reach your linux host from a browser on
your PC using the 127.0.0.1 address, port 8000, what's happening is
your PC browser is trying to reach a server on port 8000 on your PC.
It's never going to find your linux host using the 127.0.0.1 address.

You can make the development server listen on all network interfaces
by starting it via "manage.py runserver 0.0.0.0:8000". (Doc:
https://docs.djangoproject.com/en/1.3/ref/django-admin/#runserver-port-or-address-port).
The all-zero address signals all network interfaces on the machine, so
you don't have to go hunting down the IP address of the linux host.
However to reach it from your PC you will need to know its hostname or
IP address so that you can specify it instead of 127.0.0.1 in the url.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Fwd: adding a button on clicking save and continue editing in django admin

2012-03-18 Thread dummyman dummyman
-

Hi,

I want to add  a new button on clicking a save and continue editing in
django admin add
I have created admin folder in my project and all those prelims im done
with it

Where exactly i should add the html code in change_form.html ? i cannot add
in submit_line.html coz it will affect other forms as well

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: syncdb failure in new project with 1.4c2

2012-03-18 Thread Karen Tracey
On Sat, Mar 17, 2012 at 3:16 PM, Thomas Lockhart
 wrote:
> locale.getdefaultlocale() should return something other than (None,None) if
> environment variables are set but istm that this should fail gracefully (or
> not fail at all; the ticket suggests a solution using a different call which
> does return a non-None on my system).

Yes, it should fail gracefully and it currently doesn't. The ticket is
still open, that's why you still see this failure in 1.4rc1.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Trouble setting up website with mysql as backend

2012-03-18 Thread Sithembewena Lloyd Dube
Congrats :)

On Sun, Mar 18, 2012 at 8:55 AM, Swaroop Shankar V wrote:

> As Alasdair pointed out, i had few custom permission which had pretty big
> name. I reduce it and it got fixed. Thank you both for helping me out.
>
> Thanks and Regards,
> Swaroop Shankar V
>
>
>
> On Sun, Mar 18, 2012 at 6:27 AM, Sithembewena Lloyd Dube <
> zebr...@gmail.com> wrote:
>
>> ^^ What Alasdair said. If you still cannot solve this after shortening
>> your models' names, can we see your models?
>>
>>
>> On Sat, Mar 17, 2012 at 11:54 PM, Alasdair Nicol wrote:
>>
>>> On 17/03/12 20:49, Swaroop Shankar V wrote:
>>>
 Hello All,
 I was developing a website and the development was all done using
 sqlite database. Now the development is almost complete so i need to test
 the site using mysql. When i did a syncdb on a fresh database i got the
 following error:

 Traceback (most recent call last):
  File "./manage.py", line 19, in 
execute_manager(settings)
  File 
 "/usr/local/lib/python2.7/**site-packages/django/core/**management/__init__.py",
 line 438, in execute_manager
utility.execute()
 

  File 
 "/usr/local/lib/python2.7/**site-packages/django/contrib/**auth/management/__init__.py",
 line 51, in create_permissions
content_type=ctype
 

  File "/usr/lib64/python2.7/site-**packages/MySQLdb/cursors.py", line
 92, in _warning_check
warn(w[-1], self.Warning, 3)
 _mysql_exceptions.Warning: Data truncated for column 'name' at row 1

  When you run syncdb for the django auth app, it creates permissions
>>> for your models [1]. It looks like it's trying to insert a permission with
>>> a name longer than 50 characters, so it's getting truncated. Perhaps you
>>> have:
>>>
>>>  * defined a custom permission with a really long name, or
>>>  * defined a model with a really long name so that "Can view " is
>>> longer than 50 characters.
>>>
>>> Regards,
>>> Alasdair Nicol
>>>
>>> [1]: https://docs.djangoproject.**com/en/dev/topics/auth/#**
>>> default-permissions
>>>
>>> --
>>> Alasdair Nicol
>>> Developer, MEMSET
>>>
>>> mail: alasd...@memset.com
>>>  web: http://www.memset.com/
>>>
>>> Memset Ltd., registration number 4504980. 25 Frederick Sanger Road,
>>> Guildford, Surrey, GU2 7YD, UK.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en
>>> .
>>>
>>>
>>
>>
>> --
>> Regards,
>> Sithembewena Lloyd Dube
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Regards,
Sithembewena Lloyd Dube

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



model can return a count but no data

2012-03-18 Thread Maarten Japink
I 'm working on a taxonomie.
These are my models:

class Classificatie(models.Model):
name=models.CharField(max_length=60)

def __unicode__(self):
return self.name

class Taxonomie(models.Model):
name=models.CharField(max_length=60)
level=models.ForeignKey(Classificatie)
parent=models.ForeignKey('self', related_name='parent_id' )
synoniem=models.ForeignKey('self',
related_name='synoniem_id' ,blank=True, null=True)

I populated the tabels in postgresql

When I do:
>>>Taxonomie.objects.count()
I get the proper number of rows (593)

but when i want to read a single object with:
>>> t=Taxonomie.objects.get(id=20)
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python27\lib\site-packages\django\db\models\manager.py",
line 132, in
 get
return self.get_query_set().get(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line
344, in g
et
num = len(clone)
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line
82, in __
len__
self._result_cache = list(self.iterator())
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line
286, in i
terator
obj = model(*row[index_start:aggregate_start])
  File "C:\Python27\lib\site-packages\django\db\models\base.py", line
297, in __
init__
setattr(self, field.attname, val)
  File "C:\Python27\lib\site-packages\django\db\models\fields
\related.py", line
402, in __set__
manager.add(*value)
TypeError: add() argument after * must be a sequence, not int


I also tried the Taxonomie model with both ' self ' Foreignkey set to
blank=True and null=True
gives me the same problem. I also can't make new taxonomie objects
with django


What am I doiing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Strange south migration, after django updating (from 1.2.5 to 1.2.7)

2012-03-18 Thread shiva
Andrew Godwin answered for this question in South mailing-list:
http://groups.google.com/group/south-users/t/e0f228eb09a11ec9

2012/3/18 shiva :
> Hi!
>
> In our project, we have south 0.7.3 and django 1.2.5. After updating
> django, to version 1.2.7 I have got strange south migration, with
> equal backwards and forwards content.
>
> Models and migrations listed here: https://gist.github.com/2069316
>
> Can anyone describe, why did it happend? Thanks!
>
> ---
> Shavrin Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Strange south migration, after django updating (from 1.2.5 to 1.2.7)

2012-03-18 Thread shiva
Hi!

In our project, we have south 0.7.3 and django 1.2.5. After updating
django, to version 1.2.7 I have got strange south migration, with
equal backwards and forwards content.

Models and migrations listed here: https://gist.github.com/2069316

Can anyone describe, why did it happend? Thanks!

---
Shavrin Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



New way to run your Django projects

2012-03-18 Thread Alexander
Hello everybody,

I'm working on gevent coroutine based  library FastCGI server
implementation and I's ready for testing. It most likely contains lots
of bugs and it would be great if you help to catch some of them.

Just install gevent-fastcgi package:

$ easy_install gevent-fastcgi

Then include gevent_fastcgi.adapters.django into INSTALLED_APPS list
of your settings.py. Then run:

$ python manage.py run_gevent_fastcgi host:port

Run "python manage.py run_gevent_fastcgi --help" to find out more
about run_gevent_fastcgi command.

Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



intriguing django session save behavior

2012-03-18 Thread pyramid...@gmail.com
If i clear my cookies and run this view, i get a new session key each
page load.

If I comment out the print, and output the session key in the
template, new session key each load.

If I print session key in both view and template, the session key is
'saved' and remains the same each page load.

def view_session(request):
print request.session.session_key
return render(request, "view_session.html", {})

So how to explain this behavior? at no point do i modify the session.
I can print twice in the view and still get new keys.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



VERY strange unicode encode error on internet connection

2012-03-18 Thread ionic drive
hello django friends,

I am facing a VERY strange unicode encode error on internet connection.
No Error when network(LAN/internet) is disabled.

Situation:

In a template I do have a link to a site(google) in this a URL a '/u' is
included.

I am testing this in my virtual-machine so I can turn on and off
internet connection.
the server is in my virtual-machine and the browser is in this
virtual-machine too.
So I am able to test the site with "internet connection" and without
"internet connection".

Now the VERY strange behavior:

  * When my internet connection is activated I do get the following
Template Error:

Caught UnicodeDecodeError while rendering: 'ascii' codec can't
decode byte 0xe2 in position 31: ordinal not in range(128)


  * When my internet connection is disabled everything works fine.


I did not know that my django - interpreter is internet connection
related!?

Please give me some insights on that problem.

Thank you very much!!!
Ionic





-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: logs complaining about 404 url(css-files)

2012-03-18 Thread ionic drive
sorry friends,

bad news.
I stopped investigation further on that issue as it is not urgent and
minor.

I stopped sending mails on 404 errors and switched back to use the logs
to inspect 404s again.

Maybe in the future I am able to fix this strange 404 issue with
IE-versions. 

Kind regards,
ionic

On Sat, 2012-03-17 at 23:36 +0530, yati sagade wrote:

> try using {{ STATIC_URL }} instead of {{MEDIA_URL}} - It has worked
> for me, and where it doesn't, pass settings.STATIC_URL as a context
> variable from the view.
> 
> 
> On Sat, Mar 17, 2012 at 11:27 PM, ionic drive 
> wrote:
> 
> 
> hello django friends,
> 
> my log files do complain about strange 404 errors when serving
> static css files to IE, because I do use special CSS files to
> please IE-versions via @import for CSS.
> 
> The css files are included as follows in the html code:
> 
>  href="{{ media_url }}css/style_base.css">
> 
> @import
> url({{ media_url }}css/style_all_no_ie.css) all;
> 
> 
> 
> 
> 
> 
> 
> There is NO problem with IE8, but IE7 gives this error on
> connect:
> 
> localhost - - [17/Mar/2012:15:30:37 +0100]
> "GET /url(/media/css/style_all_no_ie.css)%20all HTTP/1.0" 404
> 1128 "http://example.com/site/; "Mozilla/4.0 (compatible; MSIE
> 7.0; Windows NT 5.1)"
> 
> I guess it has to do something with the setup:
> +NGINX to serve static files
> +APACHE via mod_wsgi
> 
> The GOOD news are:
> +everything works fine
> +the css files get served as the should for all browsers (for
> IE7 too).
> 
> The BAD news:
> +I want django to email me 404 errors via the
> "SEND_BROKEN_LINK_EMAILS = True" parameter.
> +But now I do get a lot of emails with 404 errors which are no
> real 404 errors.
> 
> Did someone of you already had that issue and is able to come
> up with a solution to fix it?
> 
> Thank you very much!
> ionic
> 
> -- 
> You received this message because you are subscribed to the
> Google Groups "Django users" group.
> To post to this group, send email to
> django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 
> 
> -- 
> Yati Sagade 
> 
> (@yati_itay)
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Storing many to many fields

2012-03-18 Thread dummyman dummyman
HI,

One more question

How do  i update a manytomany field which is  a self referential field ie
it points to the same table.
Consider for example facebooksession contains a field called friends

 friends =
models.ManyToManyField("self",db_column='uid',blank=True,null=True)

On Sun, Mar 18, 2012 at 4:08 PM, dummyman dummyman wrote:

> thnk u very much i got it :)
>
>
> On Sun, Mar 18, 2012 at 3:57 PM, Ian Lewis  wrote:
>
>> Hi,
>>
>> facebook_session.books_name is a RelatedManager on the Books model class.
>>
>> You need to add books to the list with the add() method.
>>
>> book = Books(book_name="name", book_category="category")
>> book.save()
>> facebook_session.books_name.add(book)
>>
>> See:
>>
>> https://docs.djangoproject.com/en/1.3/ref/models/relations/#django.db.models.fields.related.RelatedManager.add
>>
>> On Sun, Mar 18, 2012 at 4:41 PM, dummyman dummyman 
>> wrote:
>> > Hi
>> >
>> > I ve to models
>> >
>> > class FacebookSession(models.Model):
>> >
>> > access_token = models.CharField(max_length = 250,unique=True)
>> > expires = models.IntegerField(null=True)
>> >
>> > user = models.ForeignKey(User, null=True)
>> > uid = models.BigIntegerField(unique=True, null=True)
>> >
>> > birthday = models.DateField(blank=True,null=True)
>> > name = models.CharField(max_length=100,blank=True,null=True)
>> >
>> > books_name = models.ManyToManyField(Books,blank=True,null=True)
>> >
>> >
>> > lass Books(models.Model):
>> >
>> >  book_name = models.CharField(max_length=100)
>> >  book_category =
>> models.CharField(max_length=100,blank=True,null=True)
>> >
>> >  def __unicode__(self):
>> >  return self.book_name
>> >
>> >
>> >
>> > now i want to have a list of books in a list called books_list
>> >
>> > How to store those in the database
>> >
>> > I understood how to store basic_fields
>> >
>> >
>> > database_obj = FacebookSession.objects.get(uid=123444)
>> > database_obj.name="ss"
>> >
>> > database_obj.save()
>> >
>> > How do i do the same thing for books_name which is a many to many field
>> in
>> > FacebookSession class
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Django users" group.
>> > To post to this group, send email to django-users@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/django-users?hl=en.
>>
>>
>>
>> --
>> Ian
>>
>> http://www.ianlewis.org/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> 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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: problem with admin settings

2012-03-18 Thread Martynas Sklizmantas
http://flask.pocoo.org/

On Sun, Mar 18, 2012 at 11:45 AM, Sophia  wrote:

> Actually I use PyCharm environment, and I right click on the database file
> and  click synchronization 'database.db', I think that would do the syncdb
> that we use in command prompt. But here I still have the problem.
>
>
> On Saturday, March 17, 2012 2:46:25 PM UTC-7, Swaroop Shankar wrote:
>>
>> Did you run the syncdb after enabling it? While doing a syncdb did you
>> encounter any errors? From the error it looks like django_session table
>> is not created.
>>
>> Thanks and Regards,
>> Swaroop Shankar V
>>
>>
>>
>> On Sun, Mar 18, 2012 at 3:07 AM, Sophia  wrote:
>>
>>> Thank you for helping, I had enabled it. But I don't know what's wrong
>>> with it!
>>>
>>>
>>> On Saturday, March 17, 2012 2:23:10 PM UTC-7, Swaroop Shankar wrote:

 Sophia,
 Please check if you have enabled the app 'django.contrib.sessions' in
 your INSTALLED_APPS, if not do that and then do a syncdb, this issue should
 be resolved.

 Thanks and Regards,
 Swaroop Shankar V



 On Sun, Mar 18, 2012 at 2:41 AM, Sophia wrote:

> Hi all,
>
> I'm trying to set my admin settings so I will get the web page asking
> for user name and password, I did all the settings that is needed and
> mentioned in the online django book(chapter6), but the page keep giving me
> this error :
>
> Exception Type: DatabaseError  Exception Value:
>
> no such table: django_session
>
>
> this my settings.py what could be wrong with my code?
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': 'test.db',
> 'USER': '',
> 'PASSWORD': '',
> 'HOST': '',
> 'PORT': '',
> }
> }
>
> Thanks in advance
> Sophia
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit https://groups.google.com/d/*
> *ms**g/django-users/-/**huWdNc8xUycJ
> .
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@**googl**egroups.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 view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/DkRv66Jz-**lYJ
>>> .
>>>
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *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 view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/hYJeERqd4bsJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: problem with admin settings

2012-03-18 Thread Sophia
Actually I use PyCharm environment, and I right click on the database file 
and  click synchronization 'database.db', I think that would do the syncdb 
that we use in command prompt. But here I still have the problem.

On Saturday, March 17, 2012 2:46:25 PM UTC-7, Swaroop Shankar wrote:
>
> Did you run the syncdb after enabling it? While doing a syncdb did you 
> encounter any errors? From the error it looks like django_session table 
> is not created.
>
> Thanks and Regards,
> Swaroop Shankar V
>
>
>
> On Sun, Mar 18, 2012 at 3:07 AM, Sophia  wrote:
>
>> Thank you for helping, I had enabled it. But I don't know what's wrong 
>> with it!
>>
>>
>> On Saturday, March 17, 2012 2:23:10 PM UTC-7, Swaroop Shankar wrote:
>>>
>>> Sophia,
>>> Please check if you have enabled the app 'django.contrib.sessions' in 
>>> your INSTALLED_APPS, if not do that and then do a syncdb, this issue should 
>>> be resolved.
>>>
>>> Thanks and Regards,
>>> Swaroop Shankar V
>>>
>>>
>>>
>>> On Sun, Mar 18, 2012 at 2:41 AM, Sophia wrote:
>>>
 Hi all,

 I'm trying to set my admin settings so I will get the web page asking 
 for user name and password, I did all the settings that is needed and 
 mentioned in the online django book(chapter6), but the page keep giving me 
 this error :

 Exception Type: DatabaseError  Exception Value: 

 no such table: django_session


 this my settings.py what could be wrong with my code?

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.sqlite3',
 'NAME': 'test.db',**  
 'USER': '',  
 'PASSWORD': '',  
 'HOST': '',  
 'PORT': '',  
 }
 } 

 Thanks in advance
 Sophia

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To view this discussion on the web visit https://groups.google.com/d/**
 msg/django-users/-/**huWdNc8xUycJ
 .
 To post to this group, send email to django-users@googlegroups.com.
 To unsubscribe from this group, send email to django-users+unsubscribe@
 **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 view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/DkRv66Jz-lYJ.
>>
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/hYJeERqd4bsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Storing many to many fields

2012-03-18 Thread dummyman dummyman
thnk u very much i got it :)

On Sun, Mar 18, 2012 at 3:57 PM, Ian Lewis  wrote:

> Hi,
>
> facebook_session.books_name is a RelatedManager on the Books model class.
>
> You need to add books to the list with the add() method.
>
> book = Books(book_name="name", book_category="category")
> book.save()
> facebook_session.books_name.add(book)
>
> See:
>
> https://docs.djangoproject.com/en/1.3/ref/models/relations/#django.db.models.fields.related.RelatedManager.add
>
> On Sun, Mar 18, 2012 at 4:41 PM, dummyman dummyman 
> wrote:
> > Hi
> >
> > I ve to models
> >
> > class FacebookSession(models.Model):
> >
> > access_token = models.CharField(max_length = 250,unique=True)
> > expires = models.IntegerField(null=True)
> >
> > user = models.ForeignKey(User, null=True)
> > uid = models.BigIntegerField(unique=True, null=True)
> >
> > birthday = models.DateField(blank=True,null=True)
> > name = models.CharField(max_length=100,blank=True,null=True)
> >
> > books_name = models.ManyToManyField(Books,blank=True,null=True)
> >
> >
> > lass Books(models.Model):
> >
> >  book_name = models.CharField(max_length=100)
> >  book_category =
> models.CharField(max_length=100,blank=True,null=True)
> >
> >  def __unicode__(self):
> >  return self.book_name
> >
> >
> >
> > now i want to have a list of books in a list called books_list
> >
> > How to store those in the database
> >
> > I understood how to store basic_fields
> >
> >
> > database_obj = FacebookSession.objects.get(uid=123444)
> > database_obj.name="ss"
> >
> > database_obj.save()
> >
> > How do i do the same thing for books_name which is a many to many field
> in
> > FacebookSession class
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
>
>
>
> --
> Ian
>
> http://www.ianlewis.org/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> 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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to display development server page

2012-03-18 Thread Eugene Gavrish
Just that very case I suggested for my recipe with ip address of your
remote server

On 17 мар, 19:00, Alex Glaros  wrote:
> thanks sayakurt
>
> I'm on my PC at home, logged onto a SSH session on the host Linux
> server.  So I'm typing the command on the server.
>
> Thanks,
>
> Alex Glaros
>
> On Mar 17, 12:53 am, Iqbal Hasnan  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I'm trying to help you as much as I can, but lets make the question more
> > clear first.
>
> > so, you have a linux server? and run "python manage.py runserver" command
> > on your computer terminal or ssh from you server?
>
> > -sayakurt
>
> > On Sat, Mar 17, 2012 at 1:23 AM, Alex Glaros  wrote:
> > > Newbie trying to run Django for the first time.
>
> > > I'm using a hosted Linux server; I run python manage.py runserver, and
> > > get:
>
> > > Validating models...
>
> > > 0 errors found
> > > Django version 1.3.1, using settings 'alexSite.settings'
> > > Development server is running athttp://127.0.0.1:8000/
> > > Quit the server with CONTROL-C.
>
> > > But my browser doesn't see anything athttp://127.0.0.1:8000/
>
> > > Any hints?  Where is the page, on my PC or the hosted server?
>
> > > Thanks,
>
> > > Alex Glaros
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Django users" group.
> > > To post to this group, send email to django-users@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Storing many to many fields

2012-03-18 Thread Ian Lewis
Hi,

facebook_session.books_name is a RelatedManager on the Books model class.

You need to add books to the list with the add() method.

book = Books(book_name="name", book_category="category")
book.save()
facebook_session.books_name.add(book)

See:
https://docs.djangoproject.com/en/1.3/ref/models/relations/#django.db.models.fields.related.RelatedManager.add

On Sun, Mar 18, 2012 at 4:41 PM, dummyman dummyman  wrote:
> Hi
>
> I ve to models
>
> class FacebookSession(models.Model):
>
>     access_token = models.CharField(max_length = 250,unique=True)
>     expires = models.IntegerField(null=True)
>
>     user = models.ForeignKey(User, null=True)
>     uid = models.BigIntegerField(unique=True, null=True)
>
>     birthday = models.DateField(blank=True,null=True)
>     name = models.CharField(max_length=100,blank=True,null=True)
>
>     books_name = models.ManyToManyField(Books,blank=True,null=True)
>
>
> lass Books(models.Model):
>
>      book_name = models.CharField(max_length=100)
>      book_category = models.CharField(max_length=100,blank=True,null=True)
>
>      def __unicode__(self):
>          return self.book_name
>
>
>
> now i want to have a list of books in a list called books_list
>
> How to store those in the database
>
> I understood how to store basic_fields
>
>
> database_obj = FacebookSession.objects.get(uid=123444)
> database_obj.name="ss"
>
> database_obj.save()
>
> How do i do the same thing for books_name which is a many to many field in
> FacebookSession class
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.



-- 
Ian

http://www.ianlewis.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Running manage.py commands in Windows Power Shell

2012-03-18 Thread orschiro
Hello Sam,

Let's assume we're having the following script test.py containing
nothing more than a print statement and a raw_input.


print "Test"
raw_input()


When I launch test.py in PowerShell like that:

PS C:\Users\Robert> .\test.py

Then C:\Python27\python.exe is launched in a new cmd window that runs
test.py.

When I launch test.py in PowerShell like that:

PS C:\Users\Robert> python test.py

Then the script is launched inside PowerShell. Exactly this should
happen also when I only type .\test.py.

Is this the case for the ActivePython package?

Regards,

Robert

On Mar 15, 10:54 am, Sam Lai  wrote:
> On 15 March 2012 04:35, orschiro  wrote:
>
>
>
>
>
>
>
>
>
> > Hello,
>
> > I have a question which is based on the discussion here:
>
> >http://groups.google.com/group/django-users/browse_thread/thread/2333...
>
> > I'm working on Windows 7 with the PowerShell. Python 2.7 and the path
> > to django-admin.py is stored in my PATH variable.
>
> > After creating a project I can make use of the various manage.py
> > commands in my PowerShell. However, only in the following way:
>
> > 'python manage.py runserver'
>
> > If I only type '.\manage.py runserver' then a new CMD window is opened
> > running again 'python manage.py runserver'. That is, the command is
> > forwarded to the CMD shell which opens it with the Python
> > interpreter.
>
> > Is there any way to tell the PowerShell to interpret the command given
> > within the shell instead of launching a CMD window?
>
> For me, both ways execute within PowerShell's shell. I do have
> ActiveState ActivePython installed instead of the Python distribution
> from python.org though; I find the ActiveState distribution integrates
> much better with Windows than python.org's.
>
> That said, I can't really explain why you're seeing what you're seeing
> though. Does it happen if you just do '.\test.py' where test.py just
> contains simple Python commands like a couple of print statements?
>
>
>
>
>
>
>
> > Regards,
>
> > Robert
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Storing many to many fields

2012-03-18 Thread dummyman dummyman
Hi

I ve to models

class FacebookSession(models.Model):

access_token = models.CharField(max_length = 250,unique=True)
expires = models.IntegerField(null=True)

user = models.ForeignKey(User, null=True)
uid = models.BigIntegerField(unique=True, null=True)

birthday = models.DateField(blank=True,null=True)
name = models.CharField(max_length=100,blank=True,null=True)

books_name = models.ManyToManyField(Books,blank=True,null=True)


lass Books(models.Model):

 book_name = models.CharField(max_length=100)
 book_category = models.CharField(max_length=100,blank=True,null=True)

 def __unicode__(self):
 return self.book_name



now i want to have a list of books in a list called books_list

How to store those in the database

I understood how to store basic_fields


database_obj = FacebookSession.objects.get(uid=123444)
database_obj.name="ss"

database_obj.save()

How do i do the same thing for books_name which is a many to many field in
FacebookSession class

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Trouble setting up website with mysql as backend

2012-03-18 Thread Swaroop Shankar V
As Alasdair pointed out, i had few custom permission which had pretty big
name. I reduce it and it got fixed. Thank you both for helping me out.

Thanks and Regards,
Swaroop Shankar V



On Sun, Mar 18, 2012 at 6:27 AM, Sithembewena Lloyd Dube
wrote:

> ^^ What Alasdair said. If you still cannot solve this after shortening
> your models' names, can we see your models?
>
>
> On Sat, Mar 17, 2012 at 11:54 PM, Alasdair Nicol wrote:
>
>> On 17/03/12 20:49, Swaroop Shankar V wrote:
>>
>>> Hello All,
>>> I was developing a website and the development was all done using sqlite
>>> database. Now the development is almost complete so i need to test the site
>>> using mysql. When i did a syncdb on a fresh database i got the following
>>> error:
>>>
>>> Traceback (most recent call last):
>>>  File "./manage.py", line 19, in 
>>>execute_manager(settings)
>>>  File 
>>> "/usr/local/lib/python2.7/**site-packages/django/core/**management/__init__.py",
>>> line 438, in execute_manager
>>>utility.execute()
>>> 
>>>
>>>  File 
>>> "/usr/local/lib/python2.7/**site-packages/django/contrib/**auth/management/__init__.py",
>>> line 51, in create_permissions
>>>content_type=ctype
>>> 
>>>
>>>  File "/usr/lib64/python2.7/site-**packages/MySQLdb/cursors.py", line
>>> 92, in _warning_check
>>>warn(w[-1], self.Warning, 3)
>>> _mysql_exceptions.Warning: Data truncated for column 'name' at row 1
>>>
>>>  When you run syncdb for the django auth app, it creates permissions for
>> your models [1]. It looks like it's trying to insert a permission with a
>> name longer than 50 characters, so it's getting truncated. Perhaps you have:
>>
>>  * defined a custom permission with a really long name, or
>>  * defined a model with a really long name so that "Can view " is
>> longer than 50 characters.
>>
>> Regards,
>> Alasdair Nicol
>>
>> [1]: https://docs.djangoproject.**com/en/dev/topics/auth/#**
>> default-permissions
>>
>> --
>> Alasdair Nicol
>> Developer, MEMSET
>>
>> mail: alasd...@memset.com
>>  web: http://www.memset.com/
>>
>> Memset Ltd., registration number 4504980. 25 Frederick Sanger Road,
>> Guildford, Surrey, GU2 7YD, UK.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to django-users+unsubscribe@**
>> googlegroups.com .
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en
>> .
>>
>>
>
>
> --
> Regards,
> Sithembewena Lloyd Dube
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.