Re: more than 1 level of belongsTo

2012-06-08 Thread rihad
On Jun 8, 8:17 pm, bruno desthuilliers wrote: > What about posting your CakePHP questions to a CakePHP related > group ? > Dammit, sorry for that. Wrong topic. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Oracle schema not working

2012-06-01 Thread rihad
On Jun 1, 2:58 pm, Jani Tiainen wrote: > 1.6.2012 10:43, rahajiyev kirjoitti: > > > > > > > > > > > Hello. The user connecting to Oracle is an ordinary user and needs to > > prefix all tables with the schema name. > > I've tried crafting Meta.db_table like so: >

Re: tutorial error

2011-11-02 Thread rihad
On Nov 2, 1:29 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Wednesday, 2 November 2011 07:24:39 UTC, rihad wrote: > > > render_to_response('polls/detail.html', {'poll': p}) Oops, of course this has no relation to URLs, it's just a filepath :) -- You received th

Re: tutorial error

2011-11-02 Thread rihad
On Nov 2, 1:29 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Wednesday, 2 November 2011 07:24:39 UTC, rihad wrote: > > > It says at the end of part 3 of the Django tutorial: > > > "The idea behind include() and URLconf decoupling is to make it eas

tutorial error

2011-11-02 Thread rihad
It says at the end of part 3 of the Django tutorial: "The idea behind include() and URLconf decoupling is to make it easy to plug-and-play URLs. Now that polls are in their own URLconf, they can be placed under "/polls/", or under "/fun_polls/", or under "/ content/polls/", or any other path

Re: Can't add superuser

2011-10-31 Thread rihad
On Nov 1, 4:43 am, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Oct 31, 2011 at 8:43 AM, rihad <ri...@mail.ru> wrote: > > Hi, I'm unable to add superuser. Running latest development trunk of > > Django, & Python 2.7 > > This has been reported:https:

Can't add superuser

2011-10-31 Thread rihad
Hi, I'm unable to add superuser. Running latest development trunk of Django, & Python 2.7 You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes Traceback (most recent call last): File "./manage.py", line 9, in

Re: IPAddressField inserted as empty string although null=True

2010-09-21 Thread rihad
Incidentally this has been mentioned in the trac for 3 years by a few, but no milestone has been set yet. http://code.djangoproject.com/ticket/5622 Unfortunately I'm not yet knowledgeable enough in Django's inner workings to propose a patch myself. -- You received this message because you are

Re: IPAddressField inserted as empty string although null=True

2010-09-20 Thread rihad
On Sep 20, 8:02 pm, Bill Freeman wrote: > I believe that this is documented. Yes, the docs do mention that string types like Char or Textarea should be using '' instead of NULL as a no-value option. But there really isn't such a value for Postgres' inet database type. Given

IPAddressField inserted as empty string although null=True

2010-09-20 Thread rihad
I have these fields in a model: ipaddr1 = models.IPAddressField() ipaddr2 = models.IPAddressField(blank=True, null=True) When I "wrap" this model in a ModelForm, fill the form, and call form.save(), empty ipaddr2 gets inserted as '', causing database errors for Postgres' inet

What to use: release or development?

2009-03-25 Thread rihad
1) From the FAQ (http://docs.djangoproject.com/en/dev/faq/install/): Q: Should I use the official version or development version?¶ A: [...] we recommend that you use the latest development code, because it generally contains more features and fewer bugs than the “official” releases. 2) From

Does cache timeout need to be set in two places?

2009-03-22 Thread rihad
>From Django Book http://www.djangobook.com/en/2.0/chapter15/ : > CACHE_BACKEND = "locmem:///?timeout=30_entries=400" but, a bit later: > Then, add the following required settings to your Django settings file: >* CACHE_MIDDLEWARE_SECONDS — The number of seconds each page should be >

Tutorial part 3 q'n

2009-02-11 Thread rihad
http://docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03 The "Decoupling the URLconfs" section in the end says that moving mysite/urls.py to mysite/polls/urls.py and making the necessary changes decouples the polls app completely from the containing project. But it isn't so.

Re: FreeBSD 6.2 trouble using postgresql_psycopg2

2009-02-09 Thread rihad
On Feb 9, 6:23 pm, rihad <ri...@mail.ru> wrote: > I understand this is a wrong place to post > issues with Django FreeBSD port, so I might try doing it somewhere > else. The "issue" being that www/py-django port unconditionally installs py- psycopg if WITH_POSTGRESQL is

Re: FreeBSD 6.2 trouble using postgresql_psycopg2

2009-02-09 Thread rihad
Thanks, as 'postgresql' was one of the types listed in the comment, I tried that and it worked. I understand this is a wrong place to post issues with Django FreeBSD port, so I might try doing it somewhere else. --~--~-~--~~~---~--~~ You received this message

FreeBSD 6.2 trouble using postgresql_psycopg2

2009-02-09 Thread rihad
Hi there! I have py25-django-1.0.2 port installed on FreeBSD. While following this tutorial: http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01 I've reached the line that says DATABASE_ENGINE -- Either 'postgresql_psycopg2', 'mysql' or 'sqlite3'. Other backends are also

Re: DjangoBook Ch. 7 not working

2008-02-10 Thread rihad
The first example (the search form) doesn't work either with the same error (str object is not callable). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

DjangoBook Ch. 7 not working

2008-02-10 Thread rihad
/rihad/dj/mysite', '/usr/local/lib/ python25.zip', '/usr/local/lib/python2.5', '/usr/local/lib/python2.5/ plat-freebsd6', '/usr/local/lib/python2.5/lib-tk', '/usr/local/lib/ python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/ usr/local/lib/python2.5/site-packages/PIL', '/usr/local/lib