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) publishe

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 subscrib

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 emai

how to sync database upon change in field attribute ?

2009-02-04 Thread xankya
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? --~--~-~--~-

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 wrote: > > > > > class Bookmark(models.Model): > >title = models.CharField(max_length=200, unique=True) > >user = models.ForeignKey(User) > >link = model

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

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 messag

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 uns

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

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

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

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

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

css framework

2009-03-09 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 u

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 wh

Re: how to create bigint ?

2009-03-12 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 wou