Re: Template file not recognized for some strange reason

2012-03-30 Thread Juan Pablo Martínez
Try TEMPLATE_DIRS = ("*C:*/Users/Documents/Music\ App/redlab/ templates",) On Fri, Mar 30, 2012 at 12:58 AM, Mika wrote: > TEMPLATE_DIRS = ("/Users/Documents/Music\ App/redlab/ > templates",) > -- juanpex -- You received this message because you are subscribed to the Google Groups "Django

Re: Best approach for multiple sites in a single deployment?

2012-04-10 Thread Juan Pablo Martínez
Apache VirtualHost do that. Listen 39986 NameVirtualHost *:39986 ServerLimit 2 ServerName domain1.com ServerAlias www.domain1.com WSGIProcessGroup django_group1 WSGIDaemonProcess django_group1 processes=2 threads=12 python-path=/home/user/djangosite:/home/user/path/python2.7 display-name=%{GROU

Re: Language Translation using multilingual in django

2012-05-10 Thread Juan Pablo Martínez
If you only want to display information but dont want to work with translations in code you can try https://github.com/juanpex/django-model-i18n/ On Thu, May 10, 2012 at 10:13 AM, Madhu wrote: > Hi! > I am new in django. > I use multilingual & create flatpages. > I add different languages into

Re: Custom model field as foreign key

2012-06-19 Thread Juan Pablo Martínez
You saw this? https://docs.djangoproject.com/en/dev/howto/custom-model-fields/#django.db.models.Field.to_python On Tue, Jun 19, 2012 at 9:38 AM, Melvyn Sopacua wrote: > Hi, > > When using a custom field as primary key, and subsequently as a > ForeignKey the database representation gets stored as

Re: How to translate Lookup values in Django?

2012-10-02 Thread Juan Pablo Martínez
GENDER_CHOICES = ( ('male', _(u'Male')), ('female', _(u'Female')), ) gender = models.CharField(_(u'Sex'), max_length=10, choices=GENDER_CHOICES) On Tue, Oct 2, 2012 at 7:23 PM, Houmie wrote: > Django has an excellent support for internationalization, any English > expression within Mode

Re: How to translate Lookup values in Django?

2012-10-03 Thread Juan Pablo Martínez
of 139 values. It would be difficult to > keep that in the model itself. ;-) > But you are right about smaller lookups. > > Regards, > Houman > > On 3 Oct 2012, at 01:57, Juan Pablo Martínez wrote: > > GENDER_CHOICES = ( > ('male', _(u'Male'))

Re: perfectionists... motto doesn't fit

2012-10-12 Thread Juan Pablo Martínez
gooby pls :) On Fri, Oct 12, 2012 at 6:49 AM, Moonlight wrote: > > Some people make the argument of "whatever tool is right for the job".. >> >> Sure - you could make a handsome shed with your first born's plastic tool >> set, but for perfectionists it's not just about the end result, it's about

Re: South Error in migration:

2013-03-27 Thread Juan Pablo Martínez
do 0001 --fake, your table south_migrations dont have the row indicating that initial On Wed, Mar 27, 2013 at 8:49 PM, Tim Cook wrote: > I modified one model from this: -- juanpex -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: Nginx versus Apache

2013-10-08 Thread Juan Pablo Martínez
+1 nginx+gunicorn On Tue, Oct 8, 2013 at 5:09 PM, Mando wrote: > +1 nginx+uWSGI > > > On Tuesday, October 8, 2013 7:16:42 AM UTC-5, Andréas Kühne wrote: >> >> Hi, >> >> I was wondering, which server would be best for a production environment. >> Nginx or apache? At the moment we are running bot

Re: Python-Social-Auth + Django

2014-04-10 Thread Juan Pablo Martínez
Hi Chad, the mailing list for that package is here https://groups.google.com/forum/#!forum/python-social-auth Bye On Thu, Apr 10, 2014 at 5:54 AM, Chad Hollman wrote: > Hi all, my name is Chad, I'm working a project for a club at my university > and my team and I are trying to provide a means