Re: TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2013-06-21 Thread Addy Yeow
TEMPLATE_CONTEXT_PROCESSORS is not there by default in your project's settings.py. It's defined in the django/conf/global_settings.py, see https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_CONTEXT_PROCESSORSfor the default callables that are included. On Sat, Jun 22, 2013

Re: settings.py "DEBUG = False" doesn't work why?

2013-06-12 Thread Addy Yeow
Try, ALLOWED_HOSTS = [ '127.0.0.1', 'localhost', ] https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts On Wed, Jun 12, 2013 at 8:03 PM, Pepsodent Cola wrote: > Hi I have basically followed each step in Django's tutorial from part 1 to > part 6.

Re: How do I stopt this bot 66.249.73.7

2013-05-25 Thread Addy Yeow
That's Googlebot crawling your site: http://dazzlepod.com/ip/66.249.73.7/ Instead of stopping it, you probably want to throttle down the crawler using Google Webmaster Tools. On Sat, May 25, 2013 at 9:30 PM, frocco wrote: > Should I stop this bot at 66.249.73.7 > > It is

Re: quick problem with str and int

2013-04-29 Thread Addy Yeow
You would want to match this, (?P.*), against a string not integer. On Mon, Apr 29, 2013 at 11:40 PM, MikeKJ wrote: > So unfortunately due to historical reason a numerical reference is set as > a CharField in the model now I want to pass that reference through a url

Re: How to switch languages?

2013-04-22 Thread Addy Yeow
There are several ways to switch language ( https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#how-django-discovers-language-preference). I normally set django_language session variable to the preferred language. For 1), have you compiled your messages into .mo files? You will also

Re: Moving a Django website to another server

2013-01-25 Thread Addy Yeow
I was looking for a consistent and error-free deployment as I switch between servers frequently despite using the same public domain. rsync was great but I had to manually reload server thereafter or issue a syncdb, etc. I have since moved to Fabric for my deployment needs. See

Re: Insane sql logging

2013-01-15 Thread Addy Yeow
Why not do this at database level? e.g. using http://dev.mysql.com/doc/refman/5.1/en/query-log.html On Tue, Jan 15, 2013 at 9:35 PM, Matteo Suppo wrote: > Sometimes people ask for strange features, like "I want to log every > database query except select". > > There will

Re: Changing password on code.djangoproject.com?

2013-01-04 Thread Addy Yeow
https://www.djangoproject.com/accounts/password/change/ On Fri, Jan 4, 2013 at 6:03 PM, Brandon Carl wrote: > I can't for the life of me figure out how to change the password for my Trac > account on code.djangoproject.com. Could somebody please point me in the > right direction?

Re: Apache + mod_wsgi

2013-01-04 Thread Addy Yeow
You may want to define WSGIDaemonProcess inside your VirtualHost, see http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIDaemonProcess.html On Fri, Jan 4, 2013 at 9:36 PM, Tsolmon Narantsogt wrote: > Hello Comrades. > I have a problem when deploying django

django-mongodb-cache

2012-03-10 Thread Addy Yeow
Anyone managed to use django-mongodb-cache with Django >= 1.3.1? http://pypi.python.org/pypi/django-mongodb-cache It appears to have been abandoned since May/2010. Maybe there's a better alternative? -- You received this message because you are subscribed to the Google Groups "Django users"

Raspberry Pi Live

2012-02-26 Thread Addy Yeow
Hey folks, Just sharing a Django-powered page to get live status off raspberrypi.org: http://dazzlepod.com/raspberrypi/ Raspberry Pi is an ARM GNU/Linux box for $25 (model A) / $35 (model B). It is expected to be available for order in the next couple of days but the first batch will only see

Re: Django Location- Does anyone know about this?

2012-02-16 Thread Addy Yeow
Not exactly a Django package but it's implemented in Django and uses MaxMind geoip database: http://dazzlepod.com/ip/ You could use the API for free, e.g. http://dazzlepod.com/ip/8.8.8.8.json On Thu, Feb 16, 2012 at 10:03 PM, Derek wrote: > http://geodjango.org/ ? > > On

Automatically block requests from bad IP addresses

2012-02-11 Thread Addy Yeow
I was looking for a Django solution to automatically block requests from bad IP addresses to some of my apps. After searching for a while without much luck, I attempted to write a simple Python script that: - parses my Apache access log - block IP that made too many requests within a set interval

Re: Django app for IP address lookup

2011-12-31 Thread Addy Yeow
JSON? > > > On Sat, Dec 31, 2011 at 4:09 PM, yati sagade <yati.sag...@gmail.com>wrote: > >> Nice app :) can you share the sources? And happy new year to you, too! >> >> >> On Sat, Dec 31, 2011 at 5:20 PM, Addy Yeow <ayeo...@gmail.com> wrote: >&g

Django app for IP address lookup

2011-12-31 Thread Addy Yeow
Hi guys, Just sharing a simple Django app that allows you to do IP address lookup: http://dazzlepod.com/ip/ Happy new year! -- 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

Cache timeout

2011-11-26 Thread Addy Yeow
If I use cache_page() decorator for my view function, will the TIMEOUT be able to take precedence over CACHE_MIDDLEWARE_SECONDS? In my settings.py, CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 'LOCATION': os.path.join(WEB_ROOT,

Django-based RedirectAnywhere

2011-06-24 Thread Addy Yeow
RedirectAnywhere http://dazzlepod.com/redirect_anywhere/ is a small Django app that allows you to share blocked links, e.g. ThePirateBay links, on Facebook or on sites that are blocking them. Source code available http://djangosnippets.org/snippets/2470/ -- You received this message because you

Re: Want to give a talk at Djangocon, the time to submit is now

2011-06-22 Thread Addy Yeow
Any plan to host Djangcon in Asia? On Thu, Jun 23, 2011 at 12:08 AM, Sean O'Connor wrote: > Hey Everybody, > > I know we're a bit late this year but the new Djangocon.US site is finally > up and we are accepting talk proposals today. > > Unfortunately, thanks to our

SEND_BROKEN_LINK_EMAILS = True not sending email

2011-05-30 Thread Addy Yeow
Is SEND_BROKEN_LINK_EMAILS = True working for you guys? I am using Django 1.2.5. I have view function that raise Http404 when object is not found but I am not receiving the email despite SEND_BROKEN_LINK_EMAILS = True in my settings.py. I do receive email for HTTP500 though. --

Re: sitemaps not quite as easy to setup as suggested?

2011-05-27 Thread Addy Yeow
I keep sitemap for those objects in 1 sitemap file, and manually create another sitemap file for all my static pages. Then, create a sitemap index to point to the two. Would love to hear from others though. On Fri, May 27, 2011 at 11:22 PM, i...@webbricks.co.uk wrote: >

Re: 500.html and STATIC_URL

2011-05-25 Thread Addy Yeow
http://docs.djangoproject.com/en/dev/topics/http/views/#the-500-server-error-view On Wed, May 25, 2011 at 11:22 PM, bax...@gretschpages.com < mail.bax...@gmail.com> wrote: > Am I correct in understanding that when there is a 500 error and the > user is routed to 500.html, it does not know

Re: Read write config from a file. How?

2011-04-02 Thread Addy Yeow
Take a look at http://docs.python.org/library/configparser.html On Sun, Apr 3, 2011 at 4:45 AM, Swordfish wrote: > Hi! is your file in 'ini' format or simply in 'py'? > > Regards, > Eugeny > > 02.04.11, 10:34, "hollando" : > >> Hi, some of my config store in

Re: Read write config from a file. How?

2011-04-02 Thread Addy Yeow
Have you tried http://docs.python.org/library/configparser.html? On Sat, Apr 2, 2011 at 2:34 PM, hollando wrote: > Hi, some of my config store in a file not in settings.py. Are there > any build in library doing that? Thanks > > -- > You received this message because you are

Re: What apps or snippets to use for Facebook and Twitter registration, login and posting?

2011-03-03 Thread Addy Yeow
For Twitter, https://github.com/joshthecoder/tweepy does the trick for me. On Thu, Mar 3, 2011 at 9:51 PM, guyf wrote: > > > On Mar 2, 4:28 pm, Rodrigo Cea wrote: >> I am developing a site that I want to link with Facebook and Twitter. >> >> So as to

Re: remember me in login

2010-11-26 Thread Addy Yeow
i use this http://djangosnippets.org/snippets/1881/ On Sat, Nov 27, 2010 at 8:07 AM, robos85 wrote: > Is there any easy way to do remember me trigger during login? > I know that there is SESSION_COOKIE_AGE but it's set site-wide. Is > there any possibility to set expiration

Re: Why Django Admin Won't Display full graphics

2010-09-30 Thread Addy Yeow
runserver takes care of thing like this for you but you need to handle it properly in Apache. See http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#serving-the-admin-files On Fri, Oct 1, 2010 at 12:03 AM, octopusgrabbus wrote: > > When I run Django

Re: Trouble Starting Up with runserver

2009-05-10 Thread Addy Yeow
Firewall option is Green, as in 'on'. > > I looked for normal firewall products on my computer such as Symantec > > and couldn't find any active ones. > > > > How can find which firewall I'm using and shut it off. > > > > ---Chris DPS > > > > On May 8, 8:10 p

Re: List users that are currently logged in

2009-05-10 Thread Addy Yeow
:) I was about to ask the exact same question. A quick Google, I found this 1.

Re: Hospedagem Django - review locaweb

2009-05-08 Thread Addy Yeow
Gostaria de recomendar webfaction sempre :) - Addy On Fri, May 8, 2009 at 11:35 PM, Fabrício wrote: > > Olá pessoal! Fiz uma pesquisa e vi uns tópicos falando sobre > hospedagem. > No entanto queria saber a opinião de vocês sobre duas hospedagens: > > webfaction e

Re: Trouble Starting Up with runserver

2009-05-08 Thread Addy Yeow
Do you have firewall running?It could be blocking incoming local connection to port 8000. - Addy On Sat, May 9, 2009 at 7:01 AM, Chris DPS wrote: > > I am new to Django. > > When I try to execute: python manage.py runserver, I get the following > error > > Error: [Errno

Re: Hooking up Django signal to urls.py

2009-03-23 Thread Addy Yeow
Apache would have solved the problem for simple request but there are other data that I wanted to store when the request is made, e.g. attribute data, etc. On Mon, Mar 23, 2009 at 6:44 PM, Russell Keith-Magee <freakboy3...@gmail.com > wrote: > > On Mon, Mar 23, 2009 at 7:17 PM, Add

Hooking up Django signal to urls.py

2009-03-23 Thread Addy Yeow
Hi guys, I like to track my visitors URL request in my application. To achieve this, I am trying to trigger my signal's receiver function called log_start when a browser request matches a URL pattern in my_app/urls.py. === my_proj/my_app/models.py === from django.core.signals import * from