Re: how to create bigint ?

2009-03-13 Thread xankya

Thanks Karen Tracey and Kegan Gan. I'll check the issues of storing
large numbers later, and will post the results.


> and is bigint(length=5) different that int
> (length=5)?

by this i meant to ask, creating bigint of length 5 (say) in mysql
does make sense? in other words, for length 5, we would normally
create int field of length 5 in mysql. so my question is creating
bigint of length 5 does have any overhead or it is no different that
int field of length 5.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



how to create bigint ?

2009-03-12 Thread xankya

I created an integer field for a mobile number as
mobile = models.IntegerField(max_length=20)

In MySQL interface, it created an integer field with length 11.

So my question is how to create bigint in mysql for storing big
numbers such as mobile number.

And my another mysql newbie question is why int(length=20) in mysql
can't store 10 digit number? and is bigint(length=5) different that int
(length=5)?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



css framework

2009-03-10 Thread xankya

does django prefer any kind of css framework. Which css framework do u
use?
--~--~-~--~~~---~--~~
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: Can't run django on Apache

2009-03-06 Thread xankya

One thing I noticed in my windows and sun solaris is that, there is no
trailing slash in python paths. When I added trailing slash, apache
showed error. So you might as well try removing trailing slash in
python paths.
--~--~-~--~~~---~--~~
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: Can't run django on Apache

2009-03-04 Thread xankya

I guess u need to set python path to mysite plus django folders

In httpd.conf:


SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonDebug On
PythonPath "['path to mysite', 'path to django'] + sys.path"


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Template error

2009-03-02 Thread xankya

This works fine in my computer. but in remote server the following
error is shown:

Template error

In template /opt/local/lib/python2.4/site-packages/django/contrib/
comments/templates/comments/form.html, error at line 2
Caught an exception while rendering: Reverse for '' with arguments '()' and keyword arguments
'{}' not found.

1{% load comments i18n %}
2   
3 {% for field in form %}
4   {% if field.is_hidden %}
5 {{ field }}
6   {% else %}
7 
10  {% if field.errors %}{{ field.errors }}{% endif %}
11  {{ field.label_tag }} {{ field }}
12

In my computer i am using python 2.5.1, mod_python 3.3.1, django
1.0.2, MySQLdb 1.2.2.
And in the remote server i am using python 2.4.4, mod_python 3.2.10,
django 1.0.2, MySQL 1.2.2
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



template error

2009-03-02 Thread xankya

This works fine in my computer. but in remote server the following
error is shown:

Template error

In template /opt/local/lib/python2.4/site-packages/django/contrib/
comments/templates/comments/form.html, error at line 2
Caught an exception while rendering: Reverse for '' with arguments '()' and keyword arguments
'{}' not found.1{% load comments i18n %}
2   
3 {% for field in form %}
4   {% if field.is_hidden %}
5 {{ field }}
6   {% else %}
7 
10  {% if field.errors %}{{ field.errors }}{% endif %}
11  {{ field.label_tag }} {{ field }}
12

In my computer i am using python 2.5.1, mod_python 3.3.1, django
1.0.2, MySQLdb 1.2.2.
And in the remote server i am using python 2.4.4, mod_python 3.2.10,
django 1.0.2, MySQL 1.2.2
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



finally found Free Django Hosting

2009-02-25 Thread xankya

I finally got django hosted on free. Thanks to joyent.us, google,
google-groups and joyent community. Being a newbie, I am too happy to
have come so far. I gotta go much farther.
For those who wanna check: http://dac402c1.fb.joyent.us

Thank you all
--~--~-~--~~~---~--~~
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: template tag

2009-02-16 Thread xankya

Thank you very much Malcolm Tredinnick. That will definitely work for
me.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



template tag

2009-02-16 Thread xankya

hi,
   i need to do the following kind of template logic. can i achieve
this using built in tags or i need to create custom tags?

{% if user in voter_list %}
 You have already voted.
{% else %}
Vote
{% endif %}
--~--~-~--~~~---~--~~
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: free django hosting

2009-02-06 Thread xankya

has anyone hosted django on joyent?

I guess joyent does have apache and python installed. but i could not
configure install mod_python and django.

 thanx
--~--~-~--~~~---~--~~
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 sync database upon change in field attribute ?

2009-02-04 Thread xankya

I am using MySql.


Karen Tracey wrote:
> On Wed, Feb 4, 2009 at 1:26 PM, xankya <suzan.sha...@gmail.com> wrote:
>
> >
> > class Bookmark(models.Model):
> >title = models.CharField(max_length=200, unique=True)
> >user = models.ForeignKey(User)
> >link = models.ForeignKey(Link)
> >
> > I need to remove "unique=True" attribute. I guess "manage.py syncdb
> > won't do this". So can anyone help me?
>
>
> Specifics of the SQL you'll need to issue to delete the database constraint
> will depend on the database you are using, which you haven't shared with us.
>
> Karen
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



free django hosting

2009-01-30 Thread xankya

hi,
anybody know free django hosting ?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



form_for_model

2009-01-30 Thread xankya

hi, I am using django.VERSION (1, 0, 2, 'final', 0).

django.forms.form_for_model is not available in this version. can
anybody tell me what is the equivalent module name for
form_for_module ??
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



problem on django book tutorial

2009-01-21 Thread xankya

class Admin didnt show "book" on admin interface. instead admin.py in
the books folder show up "book" on admin interface.

Can anyone conform "class Amin: pass" works ??

class Book(models.Model):
title = models.CharField(maxlength=100)
authors = models.ManyToManyField(Author)
publisher = models.ForeignKey(Publisher)
publication_date = models.DateField()
num_pages = models.IntegerField(blank=True, null=True)

def __str__(self):
return self.title

class Admin:
pass

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---