Re: Criar slideShow

2014-06-25 Thread Sandro Dutra
Você está em uma lista de discussão internacional, se espera alguma
resposta, escreva em inglês.

You're on international group, if you expect some answer, write in english.


2014-06-24 21:50 GMT-03:00 Carlos Andre :

> Olá pessoal, tudo bem com todos?
> Gostaria de uma solução que permita referenciar fotos para m slideshow com
> até no máximo 5 fotos que seguirão ordem de inserção! tipo usando um id!
> Obrigado pela atenção de todos!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA8yBMzR-r9dsUeYrHN6xiLNOqGXpj%3DSMLsPjv5TcjEhLhARzA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH%2Bpf9nXzfdrgVmza8qRvUt3YEO3ym9PckdZ6wjyPKCjdpNqDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to fix this error?

2014-03-21 Thread Sandro Dutra
You're trying to use a MySQL database without the proper library installed,
download the python-mysql.

http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python


2014-03-21 16:34 GMT-03:00 Aayush Aggarwal :

> Hello!
>
> Please help me in fixing this error.When is use the command python
> manage.py runserver 8000.It shows following error
>
>
> Validating models...
>
> Unhandled exception in thread started by  of  at 0xb706728c>>
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py",
> line 88, in inner_run
> self.validate(display_num_errors=True)
>   File
> "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 249, in validate
> num_errors = get_validation_errors(s, app)
>   File
> "/usr/local/lib/python2.7/site-packages/django/core/management/validation.py",
> line 28, in get_validation_errors
> from django.db import models, connection
>   File "/usr/local/lib/python2.7/site-packages/django/db/__init__.py",
> line 78, in 
> connection = connections[DEFAULT_DB_ALIAS]
>   File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line
> 93, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line
> 33, in load_backend
> return import_module('.base', backend_name)
>   File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
> __import__(name)
>   File
> "/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
> line 14, in 
> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module:
> No module named MySQLdb
>
> How i can solve this issue.i have already installed
> mysql-server,python-mysqlldb,django version-1.3.1,PYTHON 2.7.6
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7f8cbca0-d29b-4bcc-ac6c-8fbd2fd3d828%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH%2Bpf9m5FWVwPiK2KttKfkjFJuN639az3iLQWNv70tsmCY6mpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: "Beginning Geo Django: Rich Gis Web Applications With Python" Where can I get the book?

2014-02-21 Thread Sandro Dutra
Buy the book and don't be fool!


2014-02-21 10:02 GMT-03:00 Tom Evans :

> On Fri, Feb 21, 2014 at 10:15 AM, Ram Shrestha 
> wrote:
> > Dear All,
> > I am want to learn GeoDjango in real world application. I believe this
> book
> > "Beginning Geo Django: Rich Gis Web Applications With Python" is the best
> > book for me. But I could not download download it.
> >
> > If anyone have this book Please share the book with me. Where can I get
> it
> > for free!
>
> If the author or publisher does not make this book available as a free
> download, it is not appropriate to use this list to try to pirate it.
>
> Doing so discourages future authors and publishers from writing books
> about Django.
>
>
> Cheers
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFHbX1KcDx05ebasmcJFdEaumVm6Wf4Gxmc23DNobjCnz5ZPBQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH%2Bpf9%3DNkG9-5Q%3D_MpPB43MXEJ%3Dc_uUzRRQbVWnhiQB78jSzFA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Invalid control character char 30262

2013-11-11 Thread Sandro Dutra
Try to write on top of this file:

# -*- coding: utf-8 -*-

Maybe help.


2013/11/11 Chi Tak Lam 

> Is there anyone can help?
>
> I think i should do a str.replace(old, new)?
> but i not sure what i should i set for 'old' and 'new' argument...
>
> something like this?
> "my text".replace(char 30262, '???')
>
>
> On Saturday, November 9, 2013 11:44:53 PM UTC+8, Chi Tak Lam wrote:
>>
>> Hi,
>>
>> I have a django-celery task to retrieve data from a third party service
>> and store into my database.
>> But I found an error in my log file, which is
>> None: Invalid control character at: line 1134 column 14 (char 30262)
>>
>> Not sure what is char 30262, maybe this?
>> http://www.fileformat.info/info/unicode/char/30262/index.htm
>>
>> My question is, how can i solve this problem without skip this records?
>>
>> Thanks.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cc611f7e-ea7a-4ac6-827e-da1bef990387%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH%2Bpf9mDaLDDbWBV9kH0H7AY-nhe3DnQOk%2BK-ah9ZOTyhvKCcA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Formatacao

2013-10-25 Thread Sandro Dutra
First it's recommeded to post in english. Recomendado postar em inglês.

Não sei que essa template tag "foundation" faz, você precisa explicar,
tendo em vista que ela não é built-in, já a referência de floatformat está
aqui:
https://docs.djangoproject.com/en/1.5/ref/templates/builtins/#floatformat

Sendo assim acho que não está retornando um float para ser tratado pelo
floatformat.

De resto, não tem como te ajudar com essa dúvida incompleta, não tem
informação suficiente. Da próxima, seja mais cuidadoso e escreva em inglês,
esta é uma lista internacional.


2013/10/25 fabricio mata de castro Mata 

>  estou usando no html
>
>{{ form.valor_ultimacompra|foundation }}
>
>
> quando tendo colocar  {{
> form.valor_ultimacompra|foundation|floatformat:2 }} o campo some alguem
> pode me ajudar?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/137f5a1e-8a60-415f-a7e8-df4a7cab6f6a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH%2Bpf9nnGyRObgvgHtFMGP%3DXTV1nuafMCs0R%3DBsimMKbm08M-g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Bug in admin models?

2013-10-25 Thread Sandro Dutra
Sorry, I didn't see the django.contrib.admin. You're overrriding the add
method for you model? Because it's appear the add method is returning None:

Exception Type: TypeError at /admin/myapp/mymodel/add/
Exception Value: 'NoneType' object has no attribute '__getitem__'


2013/10/25 Derek 

> Yes, I simplified the names in the installed list and traceback, and as
> result probably altered the correct grammer slighlty ... but I am hoping
> that someone who understand the "innards" of the Django admin can point
> what is _actually_ wrong; given that the error trace is not actually
> referencing any lines in my app/project.
>
>
>
> On Thursday, 24 October 2013 16:17:17 UTC+2, Nigel Legg wrote:
>
>> In installed apps you have s2.myapp, the traceback is just myapp.  Also
>> you have 's2.myapp, in the installed_apps, should it not be 's2.myapp', (ie
>> missing the end quote)?
>>
>>
>> Cheers, Nigel
>> 07914 740972
>>
>>
>>
>> On 24 October 2013 14:20, Derek  wrote:
>>
>>>  Yes, its there - the line after 'suit'.
>>>
>>>
>>> On Wednesday, 23 October 2013 19:22:54 UTC+2, Odin wrote:
>>>
 Can't see the django.contrib.admin in INSTALLED_APPS.


 2013/10/23 Derek 

> I am trying to add a model entry, via the admin; I get this error
> (which has not happened before), running Django on Ubuntu 12.04 with the
> test server.  Not sure if there is an error with the model (which has
> worked fine up to now) or ...?
>
>
> Request Method: POST
> Request URL: 
> http://127.0.0.1:8000/admin/**my**app/mymodel/add/
>
> Django Version: 1.5.4
> Python Version: 2.7.3
> Installed Applications:
> ('django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.staticfiles',
>  'django.contrib.messages',
>  'django.contrib.admindocs',
>  'django_nose',
>  'django_extensions',
>  'crispy_forms',
>  'autocomplete_light',
>  'admin_enhancer',
>  'smart_selects',
>  'selectable',
>  'massadmin',
>  's2.myapp,
>  'suit',
>  'django.contrib.admin')
> Installed Middleware:
> ('django.middleware.common.**Com**monMiddleware',
>  'django.contrib.sessions.**midd**leware.SessionMiddleware',
>  'django.middleware.csrf.**CsrfV**iewMiddleware',
>  'django.contrib.auth.**middlewa**re.**AuthenticationMiddleware',
>  'django.contrib.messages.**midd**leware.MessageMiddleware',
>  's2s.middle.middleware.**AdminS**essionMiddleware')
>
>
> Traceback:
> File "/usr/local/lib/python2.7/**dist**-packages/django/core/**
> handlers**/base.py" in get_response
>   115. response = callback(request,
> *callback_args, **callback_kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/contrib/**
> admin**/options.py" in wrapper
>   372. return self.admin_site.admin_view(**vie**w)(*args,
> **kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/utils/**
> decorat**ors.py" in _wrapped_view
>   91. response = view_func(request, *args,
> **kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/views/**
> decorat**ors/cache.py" in _wrapped_view_func
>   89. response = view_func(request, *args, **kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/contrib/**
> admin**/sites.py" in inner
>   202. return view(request, *args, **kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/utils/**
> decorat**ors.py" in _wrapper
>   25. return bound_func(*args, **kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/utils/**
> decorat**ors.py" in _wrapped_view
>   91. response = view_func(request, *args,
> **kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/utils/**
> decorat**ors.py" in bound_func
>   21. return func(self, *args2, **kwargs2)
> File "/usr/local/lib/python2.7/**dist**-packages/django/db/**
> transactio**n.py" in inner
>   223. return func(*args, **kwargs)
> File "/usr/local/lib/python2.7/**dist**-packages/django/contrib/**
> admin**/options.py" in add_view
>   1009. self.log_addition(request, new_object)
> File "/usr/local/lib/python2.7/**dist**-packages/django/contrib/**
> admin**/options.py" in log_addition
>   530. action_flag = ADDITION
> File "/usr/local/lib/python2.7/**dist**-packages/django/contrib/**
> admin**/models.py" in log_action
>   18. e = self.model(None, None, user_id, content_type_id,
> smart_text(object_id), object_repr[:200], action_flag, change_message)
>
> Exception Type: TypeError at 

Re: Bug in admin models?

2013-10-23 Thread Sandro Dutra
Can't see the django.contrib.admin in INSTALLED_APPS.


2013/10/23 Derek 

> I am trying to add a model entry, via the admin; I get this error (which
> has not happened before), running Django on Ubuntu 12.04 with the test
> server.  Not sure if there is an error with the model (which has worked
> fine up to now) or ...?
>
>
> Request Method: POST
> Request URL: http://127.0.0.1:8000/admin/myapp/mymodel/add/
>
> Django Version: 1.5.4
> Python Version: 2.7.3
> Installed Applications:
> ('django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.staticfiles',
>  'django.contrib.messages',
>  'django.contrib.admindocs',
>  'django_nose',
>  'django_extensions',
>  'crispy_forms',
>  'autocomplete_light',
>  'admin_enhancer',
>  'smart_selects',
>  'selectable',
>  'massadmin',
>  's2.myapp,
>  'suit',
>  'django.contrib.admin')
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  's2s.middle.middleware.AdminSessionMiddleware')
>
>
> Traceback:
> File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
> in get_response
>   115. response = callback(request,
> *callback_args, **callback_kwargs)
> File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in
> wrapper
>   372. return self.admin_site.admin_view(view)(*args,
> **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py"
> in _wrapped_view
>   91. response = view_func(request, *args, **kwargs)
> File
> "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py"
> in _wrapped_view_func
>   89. response = view_func(request, *args, **kwargs)
> File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in
> inner
>   202. return view(request, *args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py"
> in _wrapper
>   25. return bound_func(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py"
> in _wrapped_view
>   91. response = view_func(request, *args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py"
> in bound_func
>   21. return func(self, *args2, **kwargs2)
> File "/usr/local/lib/python2.7/dist-packages/django/db/transaction.py" in
> inner
>   223. return func(*args, **kwargs)
> File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in
> add_view
>   1009. self.log_addition(request, new_object)
> File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in
> log_addition
>   530. action_flag = ADDITION
> File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/models.py" in
> log_action
>   18. e = self.model(None, None, user_id, content_type_id,
> smart_text(object_id), object_repr[:200], action_flag, change_message)
>
> Exception Type: TypeError at /admin/myapp/mymodel/add/
> Exception Value: 'NoneType' object has no attribute '__getitem__'
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF1Wu3PHp7FM8yge3YLRQuMFaCw24ENzTOuuhYmW54QADXRg%2BA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH%2Bpf9m42BHXiNJDyU9T0ZhQZ4%2BqO08e%3DkyjKLmYbp6ZT2gW3A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Stuck with TemplateDoesNotExist at /

2013-09-02 Thread Sandro Dutra
Django cannot load the template, probably the path is wrong, try to put
this in your settings:

TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), '..',
'templates').replace('\\','/'),)

About the views, I think you don't need to code it if in your urls.py you
already used the TemplateView.as_view


2013/9/2 vogernewsletters 

>  Hi I am new to both Python and Django. I am studying various tutorials
> and now I am following the tutorial from
> http://gettingstartedwithdjango.com where the author walks through the
> creation of a simple microblog.
>
> I tried to follow the tutorial to the point but I keep getting
> TemplateDoesNotExist at /. Then I tried to modify few things but still I
> keep getting the error. Right now the configuration is like this.
>
> My project tree:
>
> microblog/
> ├── manage.py
> ├── microblog
> │   ├── __init__.py
> │   ├── __init__.pyc
> │   ├── settings
> │   │   ├── base.py
> │   │   ├── base.pyc
> │   │   ├── __init__.py
> │   │   ├── __init__.pyc
> │   │   ├── local.py
> │   │   └── local.pyc
> │   ├── urls.py
> │   ├── urls.pyc
> │   ├── views.py
> │   ├── wsgi.py
> │   └── wsgi.pyc
> ├── requirements.txt
> └── templates
> ├── 500.html
> └── index.html
>
> My settings/base.py which is essentially equivalent to settings.py
> import os
> ...
>
> PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> ...
> TEMPLATE_LOADERS = (
> 'django.template.loaders.filesystem.Loader',
> 'django.template.loaders.app_directories.Loader',
> 'django.template.loaders.eggs.Loader',
> )
> ...
> TEMPLATE_DIRS = (
> os.path.join(PROJECT_ROOT, 'templates'),
> )
>
> My urls.py
>
> from django.views.generic import TemplateView
> ...
> urlpatterns = patterns('',
>
> ...
> url(r'^$', TemplateView.as_view(template_name="index.html")),
> ...
> )
>
> and I added a views.py just in case
> from django.views.generic import TemplateView
>
> class HomepageView(TemplateView):
> template_name = "index.html"
>
> Always I get the error message "TemplateDoesNotExist at /"
>
>
>  Django tried loading these templates, in this order:
>
> - Using loader django.template.loaders.filesystem.Loader:
>   -
>   /home/voger/PycharmProjects/microblog/microblog/templates/index.html
>(File does not exist)
> - Using loader django.template.loaders.app_directories.Loader:
>   -
>   
> /home/voger/blog-venv/lib/python2.7/site-packages/django/contrib/auth/templates/index.html
>(File does not exist)
>   -
>   
> /home/voger/blog-venv/lib/python2.7/site-packages/django/contrib/admin/templates/index.html
>(File does not exist)
> - Using loader django.template.loaders.eggs.Loader:
>
> If it would try the first two lines the file is sitting right there so
> what is wrong with it?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Button/URL admin Django interface

2013-07-09 Thread Sandro Dutra
Probably you've to edit the admin base template, only this.


2013/7/9 Giorgos Kontogiorgakis 

> Hello everyone!
>
> I am trying to add a button or a URL on my main admin Django interface so
> i can call a script from this button/url without executing this by
> terminal/command line.Is there any easy way to do this?I am pretty new to
> Django and python and i had a break on my project for around a month cause
> of a health problem.Any example or help is really appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: model relationship

2013-07-05 Thread Sandro Dutra
https://docs.djangoproject.com/en/1.5/topics/db/models/#relationships


2013/7/5 Kakar Arunachal Service 

> Hello,
> Please guide me in model relationship. When to use many to many, many to
> one, one to one relationships??? I'm all confused.
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Multi-laguage website

2013-07-05 Thread Sandro Dutra
https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#


2013/7/5 Somnath 

> Hello,
>
> I'm trying to make multilanguage website by .po file
> but i'm unsuccessful.
> please give me steps to make multi language django site.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: login successfully takes to account/profle

2013-07-05 Thread Sandro Dutra
You already try to put this option in settings.py?
LOGIN_REDIRECT_URL = "/"


2013/7/5 Sivaram R 

> I am developing an django app,now the problem is after successfull
> login,it takes me to account/profile  which is no longer available in
> django urls.But after removing that account/profile and hit enter it is
> taking inside the application.Do i need to frame a method and page for that
> or how to override that using program.
>
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Custom Authentication

2013-07-03 Thread Sandro Dutra
You can extend the User Model:
https://docs.djangoproject.com/en/dev/topics/auth/customizing/#extending-the-existing-user-model


2013/7/3 

> Hello,
>
> I am a newbie to Django and would wish to know if it possible to use the
> authentication scheme(from django.contrib import auth) on a custom made
> 'Company_user' table.
> I don't want to use the default User object provided by Django admin as
> the fields in the custom table are different. How should I go about it?.
>
> Thanks,
> Goose.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: jquery in django

2013-07-01 Thread Sandro Dutra
I really think your problem is not Django related, I suggest you to learn
JQuery and post your doubts on related group.


2013/7/1 Harjot Mann 

> On Mon, Jul 1, 2013 at 10:50 PM, François Schiettecatte
>  wrote:
> > Hi
> >
> > jQuery is not a search engine but a JavaScript library which helps you
> build interactive web pages (and much more, see http://jquery.com ) .
> >
> > If you want a search engine, I suggest you look at SOLR, there are a
> number of python libraries which would help you interact with that. A word
> of warning, SOLR is very powerful/flexible so there is complexity there.
>
>
> Ok
> but cant I use AJAX??
>
> --
> Harjot Kaur Mann
> Blog: http://harjotmann.wordpress.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: jquery in django

2013-07-01 Thread Sandro Dutra
Say what you try, show your models and your code and maybe we can help or
try to find a package that suit your needs:
https://www.djangopackages.com/search/?q=search

Your first post was not django related and now is lacking information, we
can't guess what you're doing correctly or wrong.


2013/7/1 Harjot Mann 

> On Mon, Jul 1, 2013 at 10:34 PM, Gabriel  wrote:
> > Hey Harjot,
> > Could you please provide more details on what you're trying to do? I
> have a
> > feeling it's actually outside of what Django does, but there's still
> lots of
> > people here who could help you out.
>
>
> I am workng on an automation project in which I want to make search
> which should be a very good search meanwhile it is working but it is a
> simple search. I want that when I type something in search box it
> should display the clients from database just like google does in its
> serach engine.
>
> --
> Harjot Kaur Mann
> Blog: http://harjotmann.wordpress.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: jquery in django

2013-07-01 Thread Sandro Dutra
Open your template and type:



And code.


2013/7/1 Harjot Mann 

> How can I embed jquery in django for searching???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django-admin-tools unicode problem

2013-06-28 Thread Sandro Dutra
Como o Gilberto postou, pode haver um problema quando o teu editor de
textos salva o arquivo do template, tente abrir este template pelo bloco de
notas e ao 'salvar como' deve haver um campo lá embaixo para selecionar a
'Codificação', selecione UTF-8 e salve ou tente a configuração relativa no
editor de textos que está a utilizar, talvez isto resolva o problema.

Eu já tive esses problemas quando usava Notepad++, mas tenho utilizado
PyCharm e não tive mais este tipo de problema, há opções gratuitas que
devem lidar com isto também, tais como Sublime e Aptana.


2013/6/27 Jaimerson Leandro Amaro de Araújo 

> Cara, o problema é que a exceção tá sendo no template do aplicativo, que
> lê as informações do banco de dados. Alterar os arquivos do admin-tools é
> inviável em termos de portabilidade na hora do deploy. O que eu quero saber
> é se é possível mudar o encoding padrão desse app.
>
> Em quarta-feira, 26 de junho de 2013 11h22min18s UTC-3, Odin escreveu:
>>
>> Jaimerson, ainda assim creio que você deva tentar adicionar ao topo de
>> suas views e/ou dos módulos usados do admin-tools a linha:
>>
>> # -*- coding: utf-8 -*- ou # -*- coding: iso-8859-1 -*-
>>
>> Isso permitirá ao Python ler o arquivo no encoding definido.
>>
>>
>> 2013/6/26 Jaimerson Leandro Amaro de Araújo 
>>
>> Uh, I know it`s an encoding problem, I was hoping there was a way of
>>> changing default charset for that app.
>>>
>>> Em quarta-feira, 26 de junho de 2013 10h16min02s UTC-3, Odin escreveu:

 Think it's an encode problem. I never use this app but try to add this
 line o top of your views file:

 # -*- coding: utf-8 -*-


 2013/6/26 Jaimerson Leandro Amaro de Araújo 

> (I posted this on django-admin-tools mail list, but apparently there's
> no one alive there)
>
>
> Hello, I'm stuck in a encoding issue, on the dashboard template. Some
> of my models have fields with non-ascii characters (like "à" or "á"), and
> when I try to load the page, I get the following error:
> DjangoUnicodeDecodeError at /
>
> 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in 
> range(128).
> You passed in  0xb581d98c> ()
>
> [...]
> Unicode error hint
>
> The string that could not be encoded/decoded was: *Conte��do*
> Please, advise.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@**googlegroups.**com.
> To post to this group, send email to django...@googlegroups.com.
>
> Visit this group at 
> http://groups.google.com/**group**/django-users
> .
> For more options, visit 
> https://groups.google.com/**grou**ps/opt_out
> .
>
>
>

  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django-admin-tools unicode problem

2013-06-26 Thread Sandro Dutra
Jaimerson, ainda assim creio que você deva tentar adicionar ao topo de suas
views e/ou dos módulos usados do admin-tools a linha:

# -*- coding: utf-8 -*- ou # -*- coding: iso-8859-1 -*-

Isso permitirá ao Python ler o arquivo no encoding definido.


2013/6/26 Jaimerson Leandro Amaro de Araújo 

> Uh, I know it`s an encoding problem, I was hoping there was a way of
> changing default charset for that app.
>
> Em quarta-feira, 26 de junho de 2013 10h16min02s UTC-3, Odin escreveu:
>>
>> Think it's an encode problem. I never use this app but try to add this
>> line o top of your views file:
>>
>> # -*- coding: utf-8 -*-
>>
>>
>> 2013/6/26 Jaimerson Leandro Amaro de Araújo 
>>
>>> (I posted this on django-admin-tools mail list, but apparently there's
>>> no one alive there)
>>>
>>>
>>> Hello, I'm stuck in a encoding issue, on the dashboard template. Some of
>>> my models have fields with non-ascii characters (like "à" or "á"), and when
>>> I try to load the page, I get the following error:
>>> DjangoUnicodeDecodeError at /
>>>
>>> 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in 
>>> range(128).
>>> You passed in  
>>> ()
>>>
>>> [...]
>>> Unicode error hint
>>>
>>> The string that could not be encoded/decoded was: *Conte��do*
>>> Please, advise.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django-admin-tools unicode problem

2013-06-26 Thread Sandro Dutra
Think it's an encode problem. I never use this app but try to add this line
o top of your views file:

# -*- coding: utf-8 -*-


2013/6/26 Jaimerson Leandro Amaro de Araújo 

> (I posted this on django-admin-tools mail list, but apparently there's no
> one alive there)
>
>
> Hello, I'm stuck in a encoding issue, on the dashboard template. Some of
> my models have fields with non-ascii characters (like "à" or "á"), and when
> I try to load the page, I get the following error:
> DjangoUnicodeDecodeError at /
>
> 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128).
> You passed in  
> ()
>
> [...]
> Unicode error hint
>
> The string that could not be encoded/decoded was: *Conte��do*
> Please, advise.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: hi [django-users]How to define the response?

2013-06-26 Thread Sandro Dutra
Did you test this code? I think this code has errors...

If your objective is parse html/xml/json I think you've to check if the
application doesn't provide an API, and use the correct python library to
parse. If you need to parse by force, I think you can use BeautifulSoup.


2013/6/26 lx 

> hi :
>I'm a new one. I want to fix a question.Like this:
>
> 
> from django.http import HttpResponse
> import datetime
> def current_datetime(request):
>   now = datetime.datetime.now()
>   if now == 2013:
>   html = "It is now %s."
> % now
>   return HttpResponse(html)
>   else:
>  # giva a response first
>  urllib.urlopen(message)
>  # do something
>  print 'not 2013'
>  sys.exit(0)
>
> 
>
> How to use " urllib.urlopen(message)" instead of "HttpResponse()" ?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: how to change the root url of a project?

2013-06-26 Thread Sandro Dutra
# urls.py
[...]
from django.views.generic import TemplateView
[...]
urlpatterns = patterns('',
[...]
url(r'mysite/', TemplateView.as_view(template_name="index.html")),
[...]
)

or import the view you want to use.


2013/6/26 Jani Tiainen 

> On Wed, 26 Jun 2013 04:40:26 -0700 (PDT)
> yang guang  wrote:
>
> > HI, all
> > I'm a beginner of django.
> > Here I start a project named mysite. And I can browse it with
> > http://127.0.0.1:8000. But now I want to change it to
> > http://127.0.0.1:8000/mysite/ and stll keep my url mapping as url(r'^$',
> > 'index') instead of (r'^mysite/$', 'index'). Because there are some other
> > apps in the project.
> >
> > Could anyone help me figure it out? Thanks in advance.
>
> When running Django devserver and connecting to it directly there is a
> little you can do.
>
> In real case you'll have some server to keep django up and running and
> there you have option to use suburls as you want to. But it requires
> setting up real frontend server like nginx, apache or similiar.
>
> --
>
> Jani Tiainen
>
> "Impossible just takes a little longer"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: hi [django-users] How to do something after "return HttpResponse(html)"?

2013-06-25 Thread Sandro Dutra
If the "do_something" will take a long time to finish, you've 2 options:
Find a better (optimized) way to "do_something" or inform your client the
application is doing something and he will have to wait a little.

So, I can't see any advantage to say to your client there's something was
ok if the application is not finish his work. If something goes wrong while
"do_something" is working, your client will think everything was ok, but
you'll an ocult error.


2013/6/25 lx <lxlenovos...@gmail.com>

> Thank you.
>
> The real demand is:
>
> 1.
> receive the xml file from client.
>
> 2.
> if (the xml format is ERROR) == True:
> return HttpResponse(ERROR FORMAT")
> else:
> return HttpResponse(RIGHT FORMAT")
> #I must give a response first, And do other thing. Because the spend
> time of do_something() may be long.
> do_something(the xml file)
>
>
>
>
>
>
> 2013/6/25 Sandro Dutra <hexo...@gmail.com>
>
>> The question is: What you're trying to do?
>>
>> 1. You can do any other process before the return line, the return will
>> be the same... for example:
>>
>> from django.http import HttpResponse
>> from datetime import datetime
>> def current_datetime(request):
>>   now = datetime.now()
>>   html = "It is now %s." % now
>>   year = now.year()
>>   return HttpResponse(html)
>>
>>
>> 2. You can use a conditional to have multiple returns:
>> from django.http import HttpResponse
>> from datetime import datetime
>> def current_datetime(request):
>>   now = datetime.now()
>>   html = "It is now %s." % now
>>   year = now.year()
>>   if year == 2013:
>>   return HttpResponse(html)
>>  else:
>>   return HttpResponse(Sorry it's not
>> 2013.")
>>
>>
>> 2013/6/25 Timster <timshaffe...@gmail.com>
>>
>>> You cannot do something after the "return" line. This is Python
>>> functionality. When you return, the function exits and does not process
>>> anything else.
>>>
>>> What exactly are you trying to do? There is probably another way to
>>> accomplish it.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: hi [django-users] How to do something after "return HttpResponse(html)"?

2013-06-25 Thread Sandro Dutra
The question is: What you're trying to do?

1. You can do any other process before the return line, the return will be
the same... for example:

from django.http import HttpResponse
from datetime import datetime
def current_datetime(request):
  now = datetime.now()
  html = "It is now %s." % now
  year = now.year()
  return HttpResponse(html)


2. You can use a conditional to have multiple returns:
from django.http import HttpResponse
from datetime import datetime
def current_datetime(request):
  now = datetime.now()
  html = "It is now %s." % now
  year = now.year()
  if year == 2013:
  return HttpResponse(html)
 else:
  return HttpResponse(Sorry it's not
2013.")


2013/6/25 Timster 

> You cannot do something after the "return" line. This is Python
> functionality. When you return, the function exits and does not process
> anything else.
>
> What exactly are you trying to do? There is probably another way to
> accomplish it.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Set function to receive POST request

2013-06-24 Thread Sandro Dutra
Do you already read this:
https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax it appears to
pass csrf via ajax has some incoveniences...


2013/6/24 Sandro Dutra <hexo...@gmail.com>

> So sorry, but I never try to do this via AJAX request, but I know there's
> a way, Django probably provides a way...
>
>
> 2013/6/24 Hélio Miranda <helio...@gmail.com>
>
>> Nadae,
>> tried that disses you, but gives the same error
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Set function to receive POST request

2013-06-24 Thread Sandro Dutra
So sorry, but I never try to do this via AJAX request, but I know there's a
way, Django probably provides a way...


2013/6/24 Hélio Miranda 

> Nadae,
> tried that disses you, but gives the same error
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Set function to receive POST request

2013-06-24 Thread Sandro Dutra
You've to write {% csrf_token %} after the  tag, for example:

{% csrf_token %}
...



2013/6/24 Hélio Miranda 

> Hi!
> My problem is this, I have the following function:
> *def delete (request, id):*
> * if request.method == 'POST':*
> * my_painting Movie.objects.get = (id = id)*
> * for img in my_painting.MovieCover:*
> * img.delete ()*
> * my_painting.delete ()*
> *
> *
> * return render_to_response ('delete.html', {},*
> *   context_instance = RequestContext
> (request))*
>
> In that when I go to the template, this url (
> http://localhost:8080/test/delete/51c82ba48774a7118875b145), and carry on
> a button that set, it performs the function, everything ok.
>
> The issue is that I wanted on the client side send this request without
> having to go through the template and press the button.
> I was trying to do something like this, client-side
>
> scope.deleteeeMovie $ = function (id) {
> * $scope.deleteeeMovie = function(ID){*
> * $http({*
> * method: 'POST',*
> * url: "http://localhost:8080/test/delete/51c82ba48774a7118875b145",*
> * //data: {'id': ID}*
> * headers: {*
> * "Content-Type": "application/json; charset=utf-8"*
> * }*
> * }).success(function(data){*
> * console.log(data);*
> * }); *
> * };*
>
> But I get the following error:
> *Forbidden (403)*
> *CSRF verification failed. Request aborted.*
>
> I do not know if I'm doing something wrong-side or client Django ...
> someone help me?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Get url parameters

2013-05-15 Thread Sandro Dutra
gfsp = GridFSProxy()
gfsp.variable

Where variable is the variable name that contains the data storing the
number you want yo retrieve. I think it can solve your problem.

2013/5/15 Hélio Miranda :
> So I mean the client side in my application I have to be able to access only
> the id, then just send the id and not  519364e38774a71190edb28c>?
>
> Could not sending as it is in django to extract just the number of the url?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Get url parameters

2013-05-15 Thread Sandro Dutra
Your view is returning a GridFSProxy object, not a class/method
variable. You've to call a instance of your GridFSProxy, so you'll can
access the relative data.

2013/5/15 Hélio Miranda :
> Hi
>
> I need to get a parameter from the url and do not know how.
> If my url looks like this:
> http://localhost:8080/test/view/20519364e38774a71190edb28c
> I did like this:  url(r'^view/(?P\w+)', 'rest.views.view'),
> And everything ok.
>
> Now I have a url like this: http://localhost:8080/test/view/ 20519364e38774a71190edb28c>
> that the error looks like this:
> http://localhost:8080/test/view/%3CGridFSProxy:%20519364e38774a71190edb28c%3E
>
> With a url so, how can I get only the number (20519364e38774a71190edb28c)?
>
> Someone can help me?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Translation: DjangoUnicodeDecodeError

2012-10-25 Thread Sandro Dutra
Hi, I'm having a little problems with translations...

I've various {% trans "anything" %}, everything is correctly configured, I
do the makemessages and compilemesages with sucess, and everything works
correctly, but I've a problem, when I insert special characters in *.po
files, I get DjangoUnicodeDecodeError:

*DjangoUnicodeDecodeError at /

'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in
range(128). You passed in  ()*
*
*
Anyone can point a solution?
Thanks in advance.

-- 
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: Django-registration tutorial + code

2012-05-16 Thread Sandro Dutra
I always used the native authentication API and it's sufficient for me,
well documented: https://docs.djangoproject.com/en/1.4/topics/auth/

2012/5/16 francescobocca...@libero.it 

> Hi all,
> i'n new of Django and i like to create an registration user form my web
> site
> (login, logout, profile user, password etc..)
> I read a lot of documentation but i didn't found a code that i can download
> with all right things (templates, urls etc).
> Anyone can help me to suggest any tutorial about that? i installed django-
> registration but i can't understand how can use it.
>
> Thanks
>
> Francesco
>
> --
> 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.
>
>

-- 
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: Django-registration tutorial + code

2012-05-16 Thread Sandro Dutra
I always used the native authentication API and it's sufficient for me,
well documented: https://docs.djangoproject.com/en/1.4/topics/auth/

2012/5/16 francescobocca...@libero.it 

> Hi all,
> i'n new of Django and i like to create an registration user form my web
> site
> (login, logout, profile user, password etc..)
> I read a lot of documentation but i didn't found a code that i can download
> with all right things (templates, urls etc).
> Anyone can help me to suggest any tutorial about that? i installed django-
> registration but i can't understand how can use it.
>
> Thanks
>
> Francesco
>
> --
> 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.
>
>

-- 
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: Help - Which IDE is best to use.

2012-05-14 Thread Sandro Dutra
Again... Please search before create one more of this messages about
"What's IDE is best?". The best IDE is the IDE you fell confortable using.
There 666 topics about this here, search...

2012/5/14 Eneldo Serrata 

> Aptana or Eclipse with PyDev Plugin
> http://pydev.org/
>
> El 14/05/2012, a las 11:56, Sanjay M escribió:
>
> I am new to Django, and I was confused in choosing a IDE between Eclipse
> and aptana studio 3 to edit source code. Kindly suggest me a good one.
>
> Thank you in advance,
> Regards,
> Sanjay M
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/2LIdVrSuFpQJ.
> 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.
>
>
>  --
> 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.
>

-- 
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: Presentation Viewer on django

2012-05-07 Thread Sandro Dutra
About PDF's you can use any PDF API for Python like reportlab and see
examples like this:
https://docs.djangoproject.com/en/dev/howto/outputting-pdf/?from=olddocs

PPT is a proprietary and closed spec format from MS Powerpoint, probably
you've to reverse engineering (or search for format spec) to write a view
that can handle the information you want to extract.

2012/5/7 Amr Abdel-wahab 

> Hi All,
> I am new to Django I need a complete way where I can allow the user to
> upload a ppt or pdf file and then in the template I show this file
> embedded
>
> Many Thanks,
> Amr
>
> --
> 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.
>
>

-- 
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: Admin area hyperlinks to sub categories

2012-04-11 Thread Sandro Dutra
more:
https://docs.djangoproject.com/en/1.4/ref/contrib/admin/actions/

2012/4/11 Sandro Dutra <hexo...@gmail.com>

> # File: admin.py
> from django.contrib import admin
> from distribute.models import Categories
> (...)
> class CategoriesAdmin(admin.ModelAdmin):
> list_display = ['category']
> (...)
> (...)
> admin.site.register(Categories, CategoriesAdmin)
> (...)
>
>
> 2012/4/11 Swaroop Shankar V <swaroo...@gmail.com>
>
>> Hi,
>> Could anyone provide me a solution please? Thanks
>>
>> Regards,
>> Swaroop Shankar V
>>
>>
>>
>>
>> On Mon, Apr 9, 2012 at 2:53 PM, Swaroop Shankar V <swaroo...@gmail.com>wrote:
>>
>>> Hi all,
>>> I have 2 models one is Category and another one is Book. Books will
>>> be assigned to a category. So on the admin area i want to display a link on
>>> the dashboard which will take the user to a page where all the categories
>>> will be listed. On clicking on to any of the category user should be taken
>>> to a page where the books assigned under that category is displayed. How
>>> can i accomplish the same.
>>>
>>> Thanks and Regards,
>>>
>>> Swaroop Shankar V
>>>
>>>
>>  --
>> 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.
>>
>
>

-- 
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: Admin area hyperlinks to sub categories

2012-04-11 Thread Sandro Dutra
# File: admin.py
from django.contrib import admin
from distribute.models import Categories
(...)
class CategoriesAdmin(admin.ModelAdmin):
list_display = ['category']
(...)
(...)
admin.site.register(Categories, CategoriesAdmin)
(...)

2012/4/11 Swaroop Shankar V 

> Hi,
> Could anyone provide me a solution please? Thanks
>
> Regards,
> Swaroop Shankar V
>
>
>
>
> On Mon, Apr 9, 2012 at 2:53 PM, Swaroop Shankar V wrote:
>
>> Hi all,
>> I have 2 models one is Category and another one is Book. Books will
>> be assigned to a category. So on the admin area i want to display a link on
>> the dashboard which will take the user to a page where all the categories
>> will be listed. On clicking on to any of the category user should be taken
>> to a page where the books assigned under that category is displayed. How
>> can i accomplish the same.
>>
>> Thanks and Regards,
>>
>> Swaroop Shankar V
>>
>>
>  --
> 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.
>

-- 
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: Problemas con syncdb

2012-04-03 Thread Sandro Dutra
 # Or *path to database file* if using *sqlite3*.

2012/4/3 DIEGO CENZANO PRADO 

> I am trying to do the tutorial and I get an error doing 'python manage.py
> syncdb'. I am using the DATABASES as it is created and I've try to use
> sqlite3 and mysql backends. I tried it in windows and in unix. Rasult is
> always the same:
>  raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
> django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
> improperly configured. Please supply the ENGINE value. Check settings
> documentation for more details.
> But settings.py is:
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3', # Add
> 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
> 'NAME': 'polls.db',  # Or path to database
> file if using sqlite3.
> 'USER': '',  # Not used with sqlite3.
> 'PASSWORD': '',  # Not used with sqlite3.
> 'HOST': '',  # Set to empty string for
> localhost. Not used with sqlite3.
> 'PORT': '',  # Set to empty string for
> default. Not used with sqlite3.
> }
> }
> ¿Any idea?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/Yl-oyPgbgLYJ.
> 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.
>

-- 
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: where do you host your django app and how to you deploy it?!

2012-04-02 Thread Sandro Dutra
Webfaction,

Excelente support, service it's up to date, well documented and good price.
deployment made with WSGI.

2012/4/2 fix3d 

> Where do you host your django app and how to you deploy it?!
>
> Please share personal exp.
>
> --
> 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.
>
>

-- 
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 file not recognized for some strange reason

2012-03-30 Thread Sandro Dutra
Try something like this:

import os
abspath = lambda *p: os.path.abspath(os.path.join(*p))
PROJECT_ROOT = abspath(os.path.dirname(__file__))
[...]
TEMPLATE_DIRS = (abspath(PROJECT_ROOT, "templates"),)

2012/3/30 Tom Evans 

> 2012/3/30 Juan Pablo Martínez :
> > Try
> > TEMPLATE_DIRS = ("C:/Users/Documents/Music\ App/redlab/
> > templates",)
> >
>
> Unlikely to work on OS X.
>
> Cheers
>
> Tom
>
> --
> 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.
>
>

-- 
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: Autofill dropdown with django

2012-03-22 Thread Sandro Dutra
I think it's more Javascript/AJAX than Django, obviously you'll need to do
a function that uses HttpRequest.is_ajax(), but in the end, the core of
this code is more Javascript/AJAX than Django.

2012/3/22 Karthik Abinav 

> hey,
>
>  I needed a autocomplete utility in one of my applications and I was
> wondering if django provides any such option for that. Basically my need is
> a box where user starts typing some name and as he types I need a list of
> suggested autocompletion, to be provided. Something like how when a user
> tries to tag a friend in facebook and it provides options. Help would be
> appreciated.
>
> Thanks,
> Karthik Abinav
>
> --
> 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.
>

-- 
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: Django making box

2012-03-13 Thread Sandro Dutra
"The task that I should do is to click on a box and it generates new boxes
above it by every clicking on it."
I think JavaScript (jQuery) is the best option to achieve this.

2012/3/13 Sophia 

> Hi guys,
>
> I'm completely a beginner in writing Django codes, I read the book online
> for Django, so I have some basic knowledge about it.
> The task that I should do is to click on a box and it generates new boxes
> above it by every clicking on it. I  actually wrote in HTML how to make
> boxes, but my problem is that I have no idea how to do the task I've
> mentioned earlier. I would really appreciate if you just give me a hint or
> a link to guide me about this, because I really confused.
>
> Thanks in advance.
> Sophia
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/pZQOIyr8LKAJ.
> 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.
>

-- 
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 do I go to "/admin/" on my local domain?

2012-03-13 Thread Sandro Dutra
Probably you forget to launch the dev server.

python manage.py runserver

Only after this you can open your browser and go to admin, if it's
correctly configured on urls.py.

2012/3/13 Sumaiya 

> From Tutorial 2: "Now, open a Web browser and go to "/admin/" on your
> local domain -- e.g.,  http://127.0.0.1:8000/admin/. You should see
> the admin's login screen."
>
> I don't see that image. Rather, when I go to  http://127.0.0.1:8000/admin/
> in my Firefox browser, I get this message: "Unable to connect. Firefox
> can't establish a connection to the server at 127.0.0.1:8000."
>
> Am I going to the wrong address? How can I make this work?
>
> --
> 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.
>
>

-- 
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: Problems getting started

2012-03-07 Thread Sandro Dutra
I don't know how it's works on a Linux box, but on Windows we've to put
Python/Scripts on PATH variable to use the command directly.


2012/3/7 Clark 

> After installing Django I am attempting to start a new project.  After
> creating a directory for this, I tried using the command: "django-
> admin.py startproject mysite".
>
> but I'm getting the message "-bash: django-admin.py: command not found
> ".
>
> So, I've tried running this:
>
> "sudo ln -s library/python/2.6/site-packages/django/bin/django-
> admin.py /usr/local/bin/django-admin.py" in which i get "file exists"
> and I still get the same problem when running the startproject.
>
> Only other piece of info is that during installation I had a "error: /
> usr/local/bin/django-admin.py: No such file or directory".  But I can
> cd into that directory and see the django-admin.py file.
>
> Thanks!
>
> --
> 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.
>
>

-- 
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: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Sandro Dutra
Try:
'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\index.html'
'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\'
'C:\Python27\my_Djando_projects\mysite\My_Templates\'

Or:
abspath = lambda *p: os.path.abspath(os.path.join(*p))
PROJECT_ROOT = abspath(os.path.dirname(__file__))
(...)
TEMPLATE_DIRS = (abspath(PROJECT_ROOT, "My_Templates"),)




2012/2/29 Sami Balbaky 

> Hi Anoop,
>
> Thank you for the kind reply, I've tried that already. Here are the 3
> variations that I've attempted so far within settings.py in TEMPLATE_DIRS:
>
> 'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/index.html'
> 'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/'
> 'C:/Python27/my_Djando_projects/mysite/My_Templates/'
>
>
> They all yield the same error unfortunately. I'm coding this on a Windows
> Vista system, fyi.
>
> Best,
>
> SB
>
>
> On Wed, Feb 29, 2012 at 11:48 AM, Anoop Thomas Mathew wrote:
>
>> You have to give template directories, not template names in the
>> settings.py.
>> Thanks,
>> Anoop
>> atm
>> ___
>> Life is short, Live it hard.
>>
>>
>>
>>
>>
>> On 1 March 2012 01:16, Django_for_SB  wrote:
>>
>>> Hello All,
>>>
>>> I'm going through the tutorial on djangoproject.com, and can't seem to
>>> hurdle over this section that reads "Write views that actually do
>>> something"
>>>
>>> Here's the code I have so far, which is directly copied from the
>>> tutorial or prescribed by the tutorial:
>>>
>>> views.py:
>>> "from django.template import Context, loader
>>> from polls.models import Poll
>>> from django.http import HttpResponse
>>>
>>> def index(request):
>>>latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
>>>t = loader.get_template('polls/index.html')
>>>c = Context({
>>>'latest_poll_list': latest_poll_list,
>>>})
>>>return HttpResponse(t.render(c))"
>>>
>>>
>>>
>>> settings.py:
>>> "...
>>> TEMPLATE_DIRS = (
>>># Put strings here, like "/home/html/django_templates" or "C:/www/
>>> django/templates".
>>># Always use forward slashes, even on Windows.
>>># Don't forget to use absolute paths, not relative paths.
>>>'C:/Python27/my_Djando_projects/mysite/My_Templates/admin/
>>> base_site.html'
>>>'C:/Python27/my_Djando_projects/mysite/My_Templates/admin/
>>> index.html'
>>>'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/
>>> index.html'
>>> )
>>> ..."
>>>
>>>
>>> index.html:
>>> "{% if latest_poll_list %}
>>>
>>>{% for poll in latest_poll_list %}
>>>{{ poll.question }}>> li>
>>>{% endfor %}
>>>
>>> {% else %}
>>>No polls are available.
>>> {% endif %}
>>> "
>>>
>>>
>>>
>>>
>>> I keep getting the same error, which reads:
>>>
>>>
>>> TemplateDoesNotExist at /polls/
>>>
>>> polls/index.html
>>>
>>> Request Method: GET
>>> Request URL:http://localhost:8000/polls/
>>> Django Version: 1.3.1
>>> Exception Type: TemplateDoesNotExist
>>> Exception Value:
>>>
>>> polls/index.html
>>>
>>> Exception Location: C:\Python27\lib\site-packages\django\template
>>> \loader.py in find_template, line 138
>>> Python Executable:  C:\Python27\python.exe
>>> Python Version: 2.7.2
>>> Python Path:
>>>
>>> ['C:\\Python27\\my_Djando_projects\\mysite',
>>>  'C:\\Windows\\system32\\python27.zip',
>>>  'C:\\Python27\\DLLs',
>>>  'C:\\Python27\\lib',
>>>  'C:\\Python27\\lib\\plat-win',
>>>  'C:\\Python27\\lib\\lib-tk',
>>>  'C:\\Python27',
>>>  'C:\\Python27\\lib\\site-packages']
>>>
>>> Server time:Wed, 29 Feb 2012 11:32:54 -0800
>>> Template-loader postmortem
>>>
>>> Django tried loading these templates, in this order:
>>>
>>> Using loader django.template.loaders.filesystem.Loader:
>>> c:\python27\my_djando_projects\mysite\my_templates\admin
>>> \base_site.html
>>> c:\python27\my_djando_projects\mysite\my_templates\admin\index.html
>>> c:\python27\my_djando_projects\mysite\my_templates\polls\index.html
>>> \polls\index.html (File does not exist)
>>> Using loader django.template.loaders.app_directories.Loader:
>>> c:\python27\lib\site-packages\django\contrib\admin\templates\polls
>>> \index.html (File does not exist)
>>>
>>>
>>>
>>>
>>> What on earth am I doing wrong here? I've so many different variations
>>> of my settings.py, views.py, and index.html. Any help would be much
>>> appreciated.
>>>
>>>
>>> Thanks,
>>>
>>> SB
>>>
>>> --
>>> 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.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to 

Re: error while testing

2012-02-13 Thread Sandro Dutra
Think it's a name conflict with the model Location, probably it's
registered 2 times in "admin.py" (line 4), or try to change the model
name.

2012/2/13 xina towner :
> I'm getting this error when I try to do my tests, can anybody help me
> please?
>
> Traceback (most recent call last):
>   File "/home/xino/workspace/unnamedapp/accounts/tests.py", line 209, in
> test_request_invitation
>     resp = self.client.get('/accounts/invite/request/')
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> line 439, in get
>     response = super(Client, self).get(path, data=data, **extra)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> line 241, in get
>     return self.request(**r)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> line 381, in request
>     response = self.handler(environ)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> line 84, in __call__
>     response = self.get_response(request)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py",
> line 169, in get_response
>     response = self.handle_uncaught_exception(request, resolver,
> sys.exc_info())
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py",
> line 218, in handle_uncaught_exception
>     return callback(request, **param_dict)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/utils/decorators.py",
> line 93, in _wrapped_view
>     response = view_func(request, *args, **kwargs)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/views/defaults.py",
> line 31, in server_error
>     return http.HttpResponseServerError(t.render(Context({})))
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> line 123, in render
>     return self._render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/utils.py",
> line 60, in instrumented_test_render
>     return self.nodelist.render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> line 744, in render
>     bits.append(self.render_node(node, context))
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/debug.py",
> line 73, in render_node
>     result = node.render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/loader_tags.py",
> line 127, in render
>     return compiled_parent._render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/utils.py",
> line 60, in instrumented_test_render
>     return self.nodelist.render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> line 744, in render
>     bits.append(self.render_node(node, context))
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/debug.py",
> line 73, in render_node
>     result = node.render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/loader_tags.py",
> line 64, in render
>     result = block.nodelist.render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> line 744, in render
>     bits.append(self.render_node(node, context))
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/debug.py",
> line 73, in render_node
>     result = node.render(context)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/defaulttags.py",
> line 437, in render
>     url = reverse(view_name, args=args, kwargs=kwargs,
> current_app=context.current_app)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
> line 391, in reverse
>     *args, **kwargs)))
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
> line 312, in reverse
>     possibilities = self.reverse_dict.getlist(lookup_view)
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
> line 229, in _get_reverse_dict
>     self._populate()
>   File
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
> line 208, in _populate
>     for name in pattern.reverse_dict:
>   File
> 

Re: https://code.djangoproject.com/ticket/16909

2012-02-10 Thread Sandro Dutra
[...]Django 1.4, scheduled for March 2012.[...]

from https://docs.djangoproject.com/en/dev/releases/1.4-alpha-1/

2012/2/10 Craig Blaszczyk :
> Hi All,
>
> I need the bugfix from this ticket. This ticket is assigned to Version 1.3,
> and was closed as fixed 5 months ago. This was fixed after the 1.3.1
> release. Is there going to be a 1.3.2 release which includes this fix?
>
> Cheers,
> --Craig Blaszczyk
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/MifZKL58YukJ.
> 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.

-- 
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: MySQL Query

2012-02-08 Thread Sandro Dutra
Probably you've to install python-mysqldb.

2012/2/8 Bill :
> Hello
>
> I am completing the Django tutorials, however I am having a problem
> when syncing the DB to Django.  I am getting the following message.
> Any help would be appreciated.
>
> C:\Python27\Django-131\django\bin\mysite>manage.py syncdb
> Traceback (most recent call last):
>  File "C:\Python27\Django-131\django\bin\mysite\manage.py", line 14,
> in >
>    execute_manager(settings)
>  File "C:\Python27\lib\site-packages\django\core\management
> \__init__.py", line
> 438, in execute_manager
>    utility.execute()
>  File "C:\Python27\lib\site-packages\django\core\management
> \__init__.py", line
> 379, in execute
>    self.fetch_command(subcommand).run_from_argv(self.argv)
>  File "C:\Python27\lib\site-packages\django\core\management
> \__init__.py", line
> 261, in fetch_command
>    klass = load_command_class(app_name, subcommand)
>  File "C:\Python27\lib\site-packages\django\core\management
> \__init__.py", line
> 67, in load_command_class
>    module = import_module('%s.management.commands.%s' % (app_name,
> name))
>  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line
> 35, in im
> port_module
>    __import__(name)
>  File "C:\Python27\lib\site-packages\django\core\management\commands
> \syncdb.py"
> , line 7, in 
>    from django.core.management.sql import custom_sql_for_model,
> emit_post_sync_
> signal
>  File "C:\Python27\lib\site-packages\django\core\management\sql.py",
> line 6, in
>  
>    from django.db import models
>  File "C:\Python27\lib\site-packages\django\db\__init__.py", line 78,
> in  e>
>    connection = connections[DEFAULT_DB_ALIAS]
>  File "C:\Python27\lib\site-packages\django\db\utils.py", line 93, in
> __getitem
> __
>    backend = load_backend(db['ENGINE'])
>  File "C:\Python27\lib\site-packages\django\db\utils.py", line 33, in
> load_back
> end
>    return import_module('.base', backend_name)
>  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line
> 35, in im
> port_module
>    __import__(name)
>  File "C:\Python27\lib\site-packages\django\db\backends\mysql
> \base.py", line 14
> , in 
>    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
> module: No mo
> dule named MySQLdb
>
> Many thanks
>
> --
> 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.
>

-- 
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: No Module named URLS

2012-02-06 Thread Sandro Dutra
If I understand you're writing a template for admin, and this is not
required 'cause the admin template is called by the contrib
'django.contrib.admin', in INSTALLED_APPS (settings file), only if you
want to customize admin, you can override the admin files, putting
them o 'yourtemplatesdir/admin/', and I think this is not the case.

The only required steps to see the admin page is:
1. Check if 'django.contrib.admin' is uncommented in 'settings.py';
2. Uncomment the required lines in file 'urls.py';
3. Launch the dev server and acess localhost/admin/.

Only this, nothing more...

Templates.py? Templates can have any extension, this is true, but
usually we put .html or .htm...

2012/2/6 akaariai :
> On Feb 6, 5:09 pm, coded kid  wrote:
>> Hey guys, I’m getting an error when trying to visit my admin page:
>> TemplateSyntaxError at /admin/
>> Caught ImportError while rendering: No module named urls
>>
>> In urls.py
>> from django.conf.urls.defaults import patterns, include, url
>> from django.contrib import admin
>> admin.autodiscover()
>>
>> urlpatterns = patterns('',
>> (r'^admin/',include(admin.site.urls)),
>> )
>>
>> In Template.py
>>
>>    
>> {% block branding %}{% endblock %}
>>   {% if user.is_active and user.is_staff %}
>>    {% trans 'Welcome,' %}  {% filter
>> force_escape %}{% firstof user.first_name user.username %}{% endfilter
>> %}.
>>  {% block userlinks %} {% url 'django-admindocs-docroot' as docsroot
>> %}  {% if docsroot %}  {% trans
>> 'Documentation' %} {% endif %}  {% url 'admin:password_change' as
>> password_change_url %}  {% if password_change_url %} 37 > href="{{ password_change_url }}">  {% else %}   40 {% endif %} 41 {% trans 'Change password' %}> a> /
>>
>> What do you think is the problem! I’ve been fighting with this for the
>> pas 15hrs yet no success. Kindly help me out!
>
> I don't spot any immediate reason for your problem. Some more
> information is needed. A full stacktrace is always really good if you
> happen to get one. Maybe the problem is in your admin.py. As said, it
> is hard to say without more information.
>
>  - Anssi
>
> --
> 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.
>

-- 
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: what is the best IDE to use for Python / Django

2012-01-23 Thread Sandro Dutra
The best IDE is that you fell comfortable using it.

2012/1/21 goosfancito :
> El 21/01/12 08:52, kenneth gonsalves escribió:
>
>> On Sat, 2012-01-21 at 03:34 -0800, John Yeukhon Wong wrote:
>>>
>>> While it has been asked a trillion times already, let me say TRY UT
>>> YOURSELF.
>>
>> you were requested not to feed this thread. If the OP cannot search,
>> here it is:
>>
>> http://duckduckgo.com/?q=site%3Agroups.google.com%2Fgroup%2Fdjango-users
>> +python+IDE
>
> i used gedit only.
>
>
> --
> 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.
>

-- 
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: tutorial 2 admin site problem

2012-01-18 Thread Sandro Dutra
'Cause you only reproduce the steps and don't try to understand what's
happening. In URLS file you'll see the administration is pointed to
'^admin/', so you'll acess the administration via
www.yoursite.com/admin, in your case, running on localhost and port
8000 localhost:8000/admin, it's obvious you can customize the path to
admin and, if you want, put it as main page, like the other example.

2012/1/18 Denis Darii :
> You can replace:
>
>> url(r'^admin/', include(admin.site.urls)),
>
> with:
>
>> url(r'^/', include(admin.site.urls)),
>
> in your urls.py if you really want to have the admin at /. But are you aware
> of what this implies?
>
>
> On Wed, Jan 18, 2012 at 12:31 PM, Krondaj  wrote:
>>
>> Hi,
>>
>> I have just started tutorial part 2 and in part 2.4.1.
>>
>> I have added django.contrib.admin to the INTALLED_APPS part of
>> mysettings.py
>> I syncd the db
>> I uncommented the requierd three lines from urls.py in mysite folder
>>
>> I ran the runserver, and go to 127.0.0.1:8000, using chromium
>>
>> This is what I see
>>
>> Page not found (404)
>> Request Method: GET
>> Request URL:    http://127.0.0.1:8000/
>> Using the URLconf defined in mysite.urls, Django tried these URL
>> patterns, in this order:
>> ^admin/
>> The current URL, , didn't match any of these.
>> You're seeing this error because you have DEBUG = True in your Django
>> settings file. Change that to False, and Django will display a
>> standard 404 page.
>>
>> If I type the url  127.0.0.1:8000/admin/
>> it goes to the login page.
>>
>> Why do I get this message, I shouldn't have to type the url in for
>> admin manually, i should be able to to this from the homescreen??
>>
>> Any idea's??
>>
>> --
>> 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.
>>
>
>
>
> --
> This e-mail and any file transmitted with it is intended only for the person
> or entity to which is addressed and may contain information that is
> privileged, confidential or otherwise protected from disclosure. Copying,
> dissemination or use of this e-mail or the information herein by anyone
> other than the intended recipient is prohibited. If you are not the intended
> recipient, please notify the sender immediately by return e-mail, delete
> this communication and destroy all copies.
>
> --
> 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.

-- 
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: Which IDE should I use for Django?

2011-12-21 Thread Sandro Dutra
I bought PyCharm at launch and I did not regret. Today all my Python
work, not only Django, is made with PyCharm, I'm using 1.5.4 and when
I can, I'll upgrade to version 2.

PyCharm is payed, but if you'll work on a open source project, you can
apply to a Open Source Project License:
http://www.jetbrains.com/pycharm/buy/buy.jsp#openSource

Regards,
Sandro

2011/12/21 Tom Evans :
> On Wed, Dec 21, 2011 at 1:59 PM,   wrote:
>> Hi,
>>
>> Please stop posting +1 whatever mails.
>> This isn't a like/dislike contest mailing list and it doesn't bring any
>> value to the table.
>> If you have pros, cons or personal experience, share them.
>>
>
> TBH, I'm just happy it hasn't degraded into a One True Editor discussion.
>
> My one bit of personal experience is that you shouldn't think 'what is
> the best IDE for  lang', as programmers we must be able to move
> seamlessly between languages and dialects. I think the best advice is
> that to be found in The Pragmatic Programmer:
>
>  'Use one editor well. The editor should be an extension of your
> hand; make sure your editor is configurable, extensible, and
> programmable.'
>
> More discussion on that tip here:
>
> http://stackoverflow.com/questions/131608/do-you-use-a-single-editor-well/131644#131644
>
> Personally, I use vim for editing everything, which took me about 3
> months usage to become comfortable and about 6 to become proficient.
> vim or emacs are ideal choices for a power user, who would tend to do
> everything at a command line.
>
> Cheers
>
> Tom
>
> --
> 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.
>

-- 
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: iterating through lists in templates

2011-11-25 Thread Sandro Dutra
Think you're not undesrtanding...

Example:

python code:
myList = ["one", "two", "three"]
for item in myList: print item

output:
one
two
three

django template tag "for" can get the itens in list in same way... but
you get the itens and the instance variables of the model model:

class ImageModel:
name
description
links

{% for image in imageList %}
{{ image.name }}
{{ image.description }}
{{ image.links }}
{% endfor %}

In your case "i" cannot be an index of your list, but is the current
item of the list itself, a instance of your Model.


2011/11/25 marjenni :
> Thank you for the quick reply :)
>
> What I am currently doing is passing 3 separate lists to the template,
> each representing the column of a table so that i can do something
> this:
>
>  {% for i in numberOfImages %}
>    
>         {{ images.i}} 
>         {{ descriptions.i}} 
>         {{ links.i}} 
>
> What is the best way to do this then?
>
> many thanks
>
> Mark
>
>
> On Nov 25, 1:25 pm, Tom Evans  wrote:
>> On Fri, Nov 25, 2011 at 1:18 PM, marjenni  
>> wrote:
>> > Hi all,
>> >  Why does this not work?
>>
>> >    {% for i in numberOfImages %}
>> >          
>> >          {{ images.i}} 
>>
>> It doesn't work because there is no variable interpolation inside a
>> template tag. That snippet asks for the attribute named 'i' on the
>> 'images' variable.
>>
>> As an earlier poster said, pass a list of images to output, and then
>> iterate through that list. If you need the ordinal of where you are in
>> the list, that is made available by the for tag:
>>
>> https://docs.djangoproject.com/en/1.3/ref/templates/builtins/#for
>>
>> Cheers
>>
>> Tom
>
> --
> 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.
>
>

-- 
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: iterating through lists in templates

2011-11-25 Thread Sandro Dutra
Number of Images: {{ imageList.count }}
{% for image in imageList %}
Image NameImage File
{{ image.name }}{{ image.file }}
{% endfor %}

2011/11/25 Ivo Brodien :
> You should pass a list of images to the template and iterate over this list.
>
> On Nov 25, 2011, at 14:18, marjenni  wrote:
>
>> Hi all,
>>  Why does this not work?
>>
>>    {% for i in numberOfImages %}
>>          
>>          {{ images.i}} 
>>
>> numberOfImages is the number of items in the images list.
>>
>> I have a workaround using images.pop, but ideally i would like to be
>> able to use an array index.
>>
>> all help much appreciated
>>
>> Mark
>>
>> --
>> 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.
>>
>
> --
> 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.
>
>

-- 
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: Django app, part 1, error with the database

2011-11-01 Thread Sandro Dutra
 'NAME': 'C:/Users/songbird/Desktop/bdd/' # Or path to database file
if using sqlite3.

You're using a SQLite database, so you've to provide the full path to
SQLite database file, for example:  'NAME':
'C:/Users/songbird/Desktop/bdd/mydb.db3' instead only the path to
directory.

2011/11/1 Nikolas Stevenson-Molnar :
> Hi Nicolas,
>
> It looks like you have a syntax error in your settings file. It's
> possible you left of a comma after one of your dictionary values, or
> didn't close a brace. I can't tell for sure without more context: could
> you please provide the complete "DATABASES" section of your settings file?
>
> On 11/1/2011 9:46 AM, Nicolas wrote:
>> Dear all,
>> I'm completly new to the world of django and python.
>> I'm trying to go through the tuto "Writing your first Django app, part
>> 1" and of course I have an error.
>> This error happens in the step "database setup". I edited the settings
>> file, wrote 'django.db.backends.sqlite3' for engine and a path to a db
>> file (as it's said in the tuto that "If the file doesn't exist, it
>> will automatically be created when you synchronize the database for
>> the first time" I just set a path to an empty folder).
>> And then, I run manage.py syncdb and I get this :
>>
>> C:\Python27\Lib\site-packages\django\bin\mysite>manage.py syncdb
>> Traceback (most recent call last):
>>   File "C:\Python27\Lib\site-packages\django\bin\mysite\manage.py",
>> line 9, in <
>> module>
>>     execute_from_command_line(sys.argv)
>>   File "C:\Python27\lib\site-packages\django\core\management
>> \__init__.py", line
>> 422, in execute_from_command_line
>>     utility.execute()
>>   File "C:\Python27\lib\site-packages\django\core\management
>> \__init__.py", line
>> 361, in execute
>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File "C:\Python27\lib\site-packages\django\core\management
>> \__init__.py", line
>> 234, in fetch_command
>>     app_name = get_commands()[subcommand]
>>   File "C:\Python27\lib\site-packages\django\core\management
>> \__init__.py", line
>> 102, in get_commands
>>     apps = settings.INSTALLED_APPS
>>   File "C:\Python27\lib\site-packages\django\utils\functional.py",
>> line 185, in
>> inner
>>     self._setup()
>>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line
>> 42, in _set
>> up
>>     self._wrapped = Settings(settings_module)
>>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line
>> 90, in __in
>> it__
>>     mod = importlib.import_module(self.SETTINGS_MODULE)
>>   File "C:\Python27\lib\site-packages\django\utils\importlib.py", line
>> 35, in im
>> port_module
>>     __import__(name)
>>   File "C:\Python27\Lib\site-packages\django\bin\mysite\mysite
>> \settings.py", lin
>> e 15
>>     'NAME': 'C:/Users/songbird/Desktop/bdd/' # Or path to database
>> file if using sqlite3.
>>           ^
>> SyntaxError: invalid syntax
>>
>> I'm on windows 7.
>> So, my question is simple: what am I doing wrong?
>> Thanks a lot in advance.
>> Best
>> -Nicolas-
>>
>
> --
> 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.
>
>

-- 
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: framework web comparison

2011-04-07 Thread Sandro Dutra
I choose Django, in first place, for one motive: Python. But first I
tested others web frameworks based on Python, like: Pylons and Turbo
Gears, but Django offer me a excellent documentation with a simple
tutorial and community support, a free and complete book and on a few
minutes I've a project up and running.

2011/4/7 refreegrata :
> Hello list. I must to do a document to compare the most populars web
> frameworks (Django, Ruby, Zend, ...), in terms like performance,
> utilities, documentation, etc. For this document, the opinions of this
> list would be helpful.
>
> for example, for you, Why I must to choose Django instead of Ruby or
> Zend? or something like this.
>
> Any opinion can be helpful.
>
> Thanks for read, and sorry for my poor english.
>
> --
> 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.
>
>

-- 
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: creating a URL from scratch

2011-04-04 Thread Sandro Dutra
You've to informe on your URLConf.

2011/4/4 jay K. :
>
> Hello
>
> I have a website with www.xyz.com/subpage
>
> I want to change the name of the subpage
>
> how do you do it?
>
> thanks
>
> --
> 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.
>

-- 
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: new subpage in django

2011-03-30 Thread Sandro Dutra
Probably adding "http://www.xzy.com/subpage/subpage2; to your URLConf.

2011/3/30 jay K. :
> hello,
>
> what i'm trying to do is to create a subpage for a website written in django
>
> e.g.
>
> for http://www.xzy.com/subpage I'd like to add 'subpage2', so it would look
> like
>
> http://www.xzy.com/subpage/subpage2
>
> how do i do that?
>
> thanks
>
> On Wed, Mar 30, 2011 at 4:20 PM, Xavier Ordoquy 
> wrote:
>>
>> Le 30 mars 2011 à 21:16, jay K. a écrit :
>>
>> > Hello,
>> >
>> > How do you create a new subpage in django?
>> >
>> > thanks
>>
>> Hi,
>>
>> What do you mean or I'd rather ask, what are you trying to do ?
>>
>> Regards,
>> Xavier.
>>
>> --
>> 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.
>>
>
> --
> 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.
>

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



Django 1.3 - Question about static files

2011-03-25 Thread Sandro Dutra
Hello everyone!

I'm using Python 2.7.x with Django 1.3 and I've some questions about
the new way to set the static files for the dev server.

My Settings:
-
abspath = lambda *p: os.path.abspath(os.path.join(*p))
PROJECT_ROOT = abspath(os.path.dirname(__file__))
(...)
MEDIA_ROOT = abspath(PROJECT_ROOT, 'media')
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'

STATIC_ROOT = abspath(PROJECT_ROOT, 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
abspath(STATIC_ROOT, 'css'),
abspath(STATIC_ROOT, 'javascript'),
abspath(STATIC_ROOT, 'images'),
)
(...)
-
My URLConf
-
from django.conf.urls.defaults import patterns, include, url
from django.views.generic.base import TemplateView
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
url(r'^$', TemplateView.as_view(template_name='base.html')),
url(r'^accounts/', include('userena.urls')),
url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += staticfiles_urlpatterns()

#if settings.DEBUG:
#urlpatterns += patterns('',
#(r'^static/(?P.*)$',
# 'django.views.static.serve',
# {'document_root': settings.STATIC_ROOT, 'show_indexes': True, }),
#)
-
My base template
-
{% load static %}
(...)

(...)
-

*** I create a test app with a /static/ directory and try the
static_urlpatterns as described in the docs:

http://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/

This first option doesn't work! (acordind the doc, the function checks
automatically if the DEBUG is True.)

*** So, I tried the "old way", as you can see in the commented lines
on my URLConf.

This second test doesn't work too...

*** I made a last try, I send my static files to /media/ and continues
with the "old way", only changing static to media in the URLConf and
in the base template:

My URLConf
-
from django.conf.urls.defaults import patterns, include, url
from django.views.generic.base import TemplateView
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
admin.autodiscover()
(...)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^media/(?P.*)$',
 'django.views.static.serve',
 {'document_root': settings.MEDIA_ROOT, 'show_indexes': True, }),
)
-
My base template
-
{% load static %}
(...)

(...)
-

And now... Works!

I'm really don't understand what happened. I want to use the
staticfiles app and need your help to understand how to correctly
configure a project on the dev server.

Thanks in advance!

-- 
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: Looking for IDE + FTP

2011-02-08 Thread Sandro Dutra
I'm using PyCharm...

2011/2/8 Karen McNeil 

> I have three Django sites that I've been working on recently and I've
> been doing most of the development work in Dreamweaver.  I don't use
> any of the wysiwyg features (or, pretty much, any of the Dreamweaver
> program features), but I like it because I can do all the the code
> edits and the FTP transfers all in one program.  I like being able to
> grab a remote file, make some code changes, save and upload all at
> once, and view a nice graphical display of the file structure for the
> local and remote sites.
>
> Problem is, Dreamweaver's code view is definitely not built for
> Python, and it doesn't look like they have any plans to support it any
> time in the foreseeable future.  Which means that I get no color-
> coding of the code, and I'm constantly getting indentation errors.
>
> I've always had Dreamweaver on my computer (a Mac) and so have never
> used a separate FTP program, and the only IDE I've ever used is IDLE.
> I used IDLE when I was first learning Python, but now that I'm working
> with the websites, I find it much more convenient to just open the
> files from within DW.  Does anyone know of another, Python-friendly,
> program that I could use for both code-editing and ftp?
>
> Thanks,
> 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.
>
>

-- 
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: Where Is My Javascript Code's Problem?

2011-01-21 Thread Sandro Dutra
LOL! What are you trying to do, guy?

It's obvius the alert box will appear, 'cause it's a visual element.

But the rest of the code only set a bunch of variables, it's not printing
anything, it's not launching any alert, so what are you waiting to happen?


2011/1/21 hank23 

> Here's my javascript function code:
>
>  function addRecipient()
>  {
>  alert("Entering addRecipient function!")
>  var list = document.getElementById('recipientlist');
>  var rlist = list.value;
>  var reciever = document.getElementById('recipient');
>  rlist = rlist + receiver.value + ", ";
>  reciever.value = "";
>  }
>
>
> I get the alert box just fine, but nothing seems to happen after that.
> So what's wrong with the code as is and do I need to call some other
> method to refresh the browser window to show the results of my
> javascript having run, in order to see my screen change?
>
> --
> 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.
>
>

-- 
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: Static files ...

2010-11-13 Thread Sandro Dutra
As m1chael said it's a very common subject and it's already answered several
times on this list. Simple do a searh and you'll find your answer.

2010/11/13 m1chael 

> Hi..
>
> This is a common subject!
>
> Your best bet is to just configure apache or lighthttpd to serve your
> static files...
>
> ~mike
>
> On Sat, Nov 13, 2010 at 5:24 PM, Jon Snidal  wrote:
> > Hello,
> >
> > First post to the group, and sorry it's on this common subject!  I
> > have tried to read every post on this and cannot seem to get it.  I'm
> > using Django 1.2.3, and therefore believe the instructions here apply:
> >
> > http://docs.djangoproject.com/en/1.2/howto/static-files/
> >
> > My project is in folder 'MCOd' and I have created a folder 'static'
> > under that into which I have placed my CSS files and images (images in
> > another subfolder).  To urls.py I have added:
> >
> > urlpatterns += patterns('',
> >(r'^static/(?P.*)$', 'django.views.static.serve',
> > {'document_root': settings.STATIC_DOC_ROOT}),
> >(r'^admin/', include(admin.site.urls)),
> > )
> >
> > To settings.py I have added:
> >
> > STATIC_DOC_ROOT = '/Users/jonno/django_projects/MCOd/static'
> >
> > This is what it says to do in the above referenced Django
> > documentation.  Nothing is mentioned about MEDIA_ROOT or MEDIA_URL, so
> > I have left them intact ('').  Many posts mention putting paths there,
> > but not the Django doc.  I didn't want to try the django-staticfiles
> > packages as I understand this is folded into newer versions, so I'll
> > deal with changes in an upgrade.  I'm really only trying to add a
> > little Django functionality to an existing static site, so dealing
> > with my vast number of static files easily is crucial.  Of course, my
> > plan is to generate more of my site dynamically over time.  I just
> > can't get past this point!  Thanks for any help -- Jon.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Django users" group.
> > To post to this group, send email to django-us...@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.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Noob » Tutorial » UnicodeDecodeError in ‘bas ehttp.py’

2010-10-21 Thread Sandro Dutra
To use unicode characters, I put on the top of source file: -*- coding:
utf-8 -*- and before any string I put an "u", like: u"My unicode string". On
templates, I save the file as utf-8.

There's no workaround, only code.

2010/10/21 PureVirtual <1min...@gmail.com>

> For people who might have the mentioned problem  here is a simple
> solution (at least a workaround): rename non-ASCII keys from the
> registry path "HKEY_CLASSES_ROOT\MIME\Database\Content Type" (in my
> case there were three of them starting with "аудио" and "видео").
> Source of solution (in Russian):
>
> http://victor-k-development.blogspot.com/2010/07/unicodedecodeerror-django.html
> P.S. This seams to be a problem of Python 2.7.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: The problem about load css/js when developing.

2010-10-17 Thread Sandro Dutra
1. settings.py
[...]
MEDIA_ROOT = "/absolute/path/to/media/"
[...]

2. urls.py
[...]
from django.conf import settings
[...]
(r"^your-media-dir/(.*)$", "django.views.static.serve", {"document_root":
settings.MEDIA_ROOT}),
[...]

3. your base template
[...]




[...]

2010/10/17 Daniel Roseman 

> On Oct 17, 2:49 pm, Cancer  wrote:
> > Hello,everyone.
> >
> > I want to load the css/js files in my development.
> >
> > I write the code follows in my "urls.py" accordding to "How to serve
> static
> > files "
> >
> >  (r'^yzx_media/(?P.*)$', 'django.views.static.serve',
> > {'document_root': '/media'}
> >
> > but it doesn't work.
> >
> > when I input the url "http://localhost:8000/yzx_media/css/tablednd.css;
> in
> > the browser  which show me this message on web page:
> >
> > Page not found (404)  Request Method: GET  Request URL:
> http://localhost:8000/yzx_media/css/tablednd.css
> >
> > "/media/css/tablednd.css" does not exist
> >
> > I'm sure there is a tablednd.css file in the /media/css/ directory .
> >
> > I don't know why ,if I didn't something wrong ? and what can I do to fix
> it?
> >
> > any answers are welcome.
> >
> > Thank you!
> > --
> > Rita Liang
>
> I doubt very much that the 'media' directory is at the root of your
> filesystem. Maybe you meant
> {'document_root': '/home/rita/django/path/to/media'}
> or something like that?
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Serve static file from cdn

2010-10-08 Thread Sandro Dutra
Really... As Daniel said, I can't see any problem... only refer your static
into your templates like:
Your javascript URL:
http://commondatastorage.googleapis.com/static/media/node.js
On template:
(...)

(...)

Re: admin site not working, problem with urls.py?

2010-10-06 Thread Sandro Dutra
Ah yeah, forget to comment this...

If you're using the django dev server to test your application, you'll have
to set where the static files are, you can do this with a builtin view:
django.views.static.serve.

2010/10/6 Steve Holden <holden...@gmail.com>

> It's much more likely that your CSS style sheets are not being served
> correctly - you can check this by looking at the page's HTML source and
> then pasting the style sheet's URL into your browser's location bar.
>
> The Django 1.0 admin is a reasonably well-styled layout, so you
> certainly shouldn't be seeing anything "funky".
>
> regards
>  Steve
>
> On 10/6/2010 11:59 AM, Lisa Gandy wrote:
> > Thanks for the help,
> > This ended up working
> > (r'^admin/(.*)', admin.site.root)
> >
> > Now, when I look at the admin panel, its really funky looking, it
> > definitely works, but its like its missing a template.
> > Do yout hink its b/c the version of django on teh server is old?
> > Its 1.0.4
> >
> > If thats the problem, what is the easiest way to upgrade django on
> > Ubuntu 8.10?
> >
> > Thanks!
> > Lisa
> >
> >
> > On Tue, Oct 5, 2010 at 6:34 PM, Sandro Dutra <hexo...@gmail.com
> > <mailto:hexo...@gmail.com>> wrote:
> >
> > You have to check if you enable the "admin" application on your
> > settings.py.
> >
> > 2010/10/5 Sithembewena Lloyd Dube <zebr...@gmail.com
> > <mailto:zebr...@gmail.com>>
> >
> > Hey Lisa,
> >
> > Look at this line (supplied by you):
> >
> >
> >  # (r'^ccu/', include('ccu.foo.urls')),
> >
> > ^^ the line above is correct.
> >
> > Now, the line that's giving you trouble is:
> >
> >  (r'^admin/', include(admin.site.urls)),
> >
> > ^^ spot the difference?
> >
> > I think you should use quotes around your argument to the
> > include function. That function expects a string, I believe :)
> >
> >
> >
> > On Wed, Oct 6, 2010 at 12:01 AM, Lisa <lisagand...@gmail.com
> > <mailto:lisagand...@gmail.com>> wrote:
> >
> > Hi all,
> > I'm sure I have a pretty simple problem...
> > here's my url.py file
> >
> > from django.conf.urls.defaults import *
> >
> > # Uncomment the next two lines to enable the admin:
> > from django.contrib import admin
> > admin.autodiscover()
> >
> > urlpatterns = patterns('',
> ># Example:
> ># (r'^ccu/', include('ccu.foo.urls')),
> >
> ># Uncomment the admin/doc line below and add
> > 'django.contrib.admindocs'
> ># to INSTALLED_APPS to enable admin documentation:
> ># (r'^admin/doc/',
> include('django.contrib.admindocs.urls')),
> >
> ># Uncomment the next line to enable the admin:
> >(r'^stories/$','ccu_gen.views.all_stories'),
> >(r'^stories/(?P\d+)/$',
> 'ccu_gen.views.one_story'),
> >(r'^admin/', include(admin.site.urls)),
> >
> > )
> >
> > stories works fine, but for the admin url, I'm getting the
> error
> > __import__() argument 1 must be string, not instancemethod
> >
> > any ideas?
> >
> > Thanks!
> --
> Steve Holden   +1 571 484 6266   +1 800 494 3119
> PyCon 2011 Atlanta March 9-17   http://us.pycon.org/
> See Python Video!   http://python.mirocommunity.org/
> Holden Web LLC http://www.holdenweb.com/
>
> --
> DjangoCon US 2010 September 7-9 http://djangocon.us/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: admin site not working, problem with urls.py?

2010-10-06 Thread Sandro Dutra
Your Django version is really outdated.

I think you can update using the Update Manager or calling the terminal and
typing:

sudo apt-get update

This command will resync the packages with the current version on distro
repository.

Alternatively you can update via python setuptools, using the command:

easy_install --upgrade django

After this you can try:

import django
django.VERSION

and see if you're on the last stable release.

2010/10/6 Lisa Gandy <lisagand...@gmail.com>

> Thanks for the help,
> This ended up working
> (r'^admin/(.*)', admin.site.root)
>
> Now, when I look at the admin panel, its really funky looking, it
> definitely works, but its like its missing a template.
> Do yout hink its b/c the version of django on teh server is old?
> Its 1.0.4
>
> If thats the problem, what is the easiest way to upgrade django on Ubuntu
> 8.10?
>
> Thanks!
> Lisa
>
>
> On Tue, Oct 5, 2010 at 6:34 PM, Sandro Dutra <hexo...@gmail.com> wrote:
>
>>  You have to check if you enable the "admin" application on your
>> settings.py.
>>
>> 2010/10/5 Sithembewena Lloyd Dube <zebr...@gmail.com>
>>
>> Hey Lisa,
>>>
>>> Look at this line (supplied by you):
>>>
>>>
>>>  # (r'^ccu/', include('ccu.foo.urls')),
>>>
>>> ^^ the line above is correct.
>>>
>>> Now, the line that's giving you trouble is:
>>>
>>>  (r'^admin/', include(admin.site.urls)),
>>>
>>> ^^ spot the difference?
>>>
>>> I think you should use quotes around your argument to the include
>>> function. That function expects a string, I believe :)
>>>
>>>
>>>
>>> On Wed, Oct 6, 2010 at 12:01 AM, Lisa <lisagand...@gmail.com> wrote:
>>>
>>>> Hi all,
>>>> I'm sure I have a pretty simple problem...
>>>> here's my url.py file
>>>>
>>>> from django.conf.urls.defaults import *
>>>>
>>>> # Uncomment the next two lines to enable the admin:
>>>> from django.contrib import admin
>>>> admin.autodiscover()
>>>>
>>>> urlpatterns = patterns('',
>>>># Example:
>>>># (r'^ccu/', include('ccu.foo.urls')),
>>>>
>>>># Uncomment the admin/doc line below and add
>>>> 'django.contrib.admindocs'
>>>># to INSTALLED_APPS to enable admin documentation:
>>>># (r'^admin/doc/', include('django.contrib.admindocs.urls')),
>>>>
>>>># Uncomment the next line to enable the admin:
>>>>(r'^stories/$','ccu_gen.views.all_stories'),
>>>>(r'^stories/(?P\d+)/$', 'ccu_gen.views.one_story'),
>>>>(r'^admin/', include(admin.site.urls)),
>>>>
>>>> )
>>>>
>>>> stories works fine, but for the admin url, I'm getting the error
>>>> __import__() argument 1 must be string, not instancemethod
>>>>
>>>> any ideas?
>>>>
>>>> Thanks!
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To post to this group, send email to django-us...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/django-users?hl=en.
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Sithembewena Lloyd Dube
>>> http://www.lloyddube.com
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to django-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: admin site not working, problem with urls.py?

2010-10-05 Thread Sandro Dutra
You have to check if you enable the "admin" application on your settings.py.

2010/10/5 Sithembewena Lloyd Dube 

> Hey Lisa,
>
> Look at this line (supplied by you):
>
>
>  # (r'^ccu/', include('ccu.foo.urls')),
>
> ^^ the line above is correct.
>
> Now, the line that's giving you trouble is:
>
>  (r'^admin/', include(admin.site.urls)),
>
> ^^ spot the difference?
>
> I think you should use quotes around your argument to the include function.
> That function expects a string, I believe :)
>
>
>
> On Wed, Oct 6, 2010 at 12:01 AM, Lisa  wrote:
>
>> Hi all,
>> I'm sure I have a pretty simple problem...
>> here's my url.py file
>>
>> from django.conf.urls.defaults import *
>>
>> # Uncomment the next two lines to enable the admin:
>> from django.contrib import admin
>> admin.autodiscover()
>>
>> urlpatterns = patterns('',
>># Example:
>># (r'^ccu/', include('ccu.foo.urls')),
>>
>># Uncomment the admin/doc line below and add
>> 'django.contrib.admindocs'
>># to INSTALLED_APPS to enable admin documentation:
>># (r'^admin/doc/', include('django.contrib.admindocs.urls')),
>>
>># Uncomment the next line to enable the admin:
>>(r'^stories/$','ccu_gen.views.all_stories'),
>>(r'^stories/(?P\d+)/$', 'ccu_gen.views.one_story'),
>>(r'^admin/', include(admin.site.urls)),
>>
>> )
>>
>> stories works fine, but for the admin url, I'm getting the error
>> __import__() argument 1 must be string, not instancemethod
>>
>> any ideas?
>>
>> Thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@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.
>>
>>
>
>
> --
> Regards,
> Sithembewena Lloyd Dube
> http://www.lloyddube.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: PyDev create new project wizard creates two folders in Aptana Studio 3?

2010-10-05 Thread Sandro Dutra
When you try to create a project, Aptana duplicates the root directory
automatically. A issue...

To correct this, you only have to observe the path when you're creating the
Django project.

2010/10/2 payala 

>
> Check if you are in the python perspective
>
> On 1 oct, 19:34, Brandon Taylor  wrote:
> > Hi everyone,
> >
> > I'm used to organizing my Django projects in one folder for the
> > project and then sub folders for app modules...
> >
> > /my_project
> > -__init__.py
> > -settings.py
> > /some_app
> >
> > and so on. However, when I create a new Django project using the PyDev
> > wizard, I get:
> >
> > /my_project
> > /my_project
> > -__init__.py
> > -settings.py
> >
> > Why is that?
> >
> > TIA,
> > Brandon
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: IDE for Python/django

2010-09-27 Thread Sandro Dutra
I like Eric and Aptana.

2010/9/27 João Rodrigues 

> http://code.google.com/p/trespams-vim/
>
> On 27 September 2010 14:00, girish shabadimath 
> wrote:
> > actually i use vim for writing python scripts , i wanted IDE to easy my
> > tasks of writing script (like auto-completion) ,,,i dont want GUI
> based,,i
> > prefer  editor like vim which supports python scripts
> >
> > On Mon, Sep 27, 2010 at 6:26 PM, Sithembewena Lloyd Dube <
> zebr...@gmail.com>
> > wrote:
> >>
> >> Hi Girish,
> >>
> >> I do not know what platform you work on, but on Windows try Jetbrains
> >> PyCharm. On Linux, try SPE, or Eclipse with Pydev extensions (the latter
> is
> >> also available on Windows).
> >>
> >> What are you looking for in an IDE? Give more info to get a better
> answer.
> >>
> >> On Mon, Sep 27, 2010 at 2:52 PM, Masklinn 
> wrote:
> >>>
> >>> On 2010-09-27, at 14:51 , girish shabadimath wrote:
> >>> > hi all,
> >>> >
> >>> > is there any IDE for Python/Django ?
> >>> Yes.
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google
> Groups
> >>> "Django users" group.
> >>> To post to this group, send email to django-us...@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.
> >>>
> >>
> >>
> >>
> >> --
> >> Regards,
> >> Sithembewena Lloyd Dube
> >> http://www.lloyddube.com
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Django users" group.
> >> To post to this group, send email to django-us...@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.
> >
> >
> >
> > --
> > Girish M S
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@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.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Recommend a book

2010-09-24 Thread Sandro Dutra
"The Definitive Guide to Django: Web Developement Done Right", Apress,
updated Django 1.1
"Pratical Django Projects", Apress, updated Django 1.1

2010/9/24 Shawn Milochik 

>
> On Sep 24, 2010, at 6:53 AM, Franklin Einspruch wrote:
>
> > I recommend against Beginning Django E-Commerce in favor of The
> > Definitive Guide. The project described in the former has you chasing
> > down so many details that it's hard to get a sense of the big picture.
> > As a second book it's more informative.
> >
> > Franklin
>
> I agree, not only because "The Definitive Guide" is much better, but also
> because I didn't think the other title was any good, really. I thought some
> of the SEO info was very useful, but I got the feeling that this book could
> have been written about any language or framework, almost as though the
> author picked Django by a roll of the dice. It's a poor book for learning
> Django.
>
> Shawn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Pylons vs. Django

2010-09-06 Thread Sandro Dutra
1. It's possible to use Mako and SQLAlchemy with Django too, as Steven
writes.

2. As Bruno writes, Django it's a easy-learn piece of software and Pylons
uses third-party software (and 2 powerfull ones), so, to extract the full
power of Pylons you've a major learning curve, while Django is sit and start
write for most simple kinds of webapps.

3. At the end, it's a personal choice, you've to try the 2 options by
yourself and choose that one you fell confortable with. It's complicated to
say what's is suitable for you based on my point of view, but if you want
simplicity and fast learning, try Django, if you want the power of a huge
template system and complex database relations, try Pylons. If you've time,
try 2.

I think Django is sufficient to most web projects.

2010/9/6 bruno desthuilliers 

> A few points:
>
> * It's as easy to swap components in Django as it is with Pylons. The
> main difference is that Django components are well integrated in the
> framework so 1/ you don't have much to do to use them and 2/ you loose
> some very usefull features - that just don't exist OOTB in Pylons - if
> you don't use them.
>
> * SQLAlchemy is possibly the most feature-complete, comprehensive and
> powerful "SQL layer" (much more than just "an ORM" ) ever written. Now
> this comes with a price : complexity and learning curve. That's what
> I'd choose for a truely complex and critical RDBMs based app, but
> definitly NOT for most web apps.
>
> As an experienced Python and web developper, while I do think Pylons
> is possibly one of the most flexible and powerful web frameworks
> around, I still prefer Django for it's level of integration and ease
> of use. I've been using Django since the 0.96 days, and I'm still
> waiting for a project I'd rather do with Pylons.
>
>
> My 2 cents...
>
>
> On 5 sep, 06:51, Feross  wrote:
> > Hey everyone,
> >
> > I'm a new Python user and I'm looking for a web development framework to
> > build a database-driven website. I've looked at the various Python web
> > frameworks out there and I've settled on either Django or Pylons, but I'm
> > not sure which to choose.
> >
> > Things I've heard about Django that I like:
> > - All the Django documentation is in one place.
> > - The community is larger = more help for newbies.
> > - It has a handy admin interface for adding content quickly.
> >
> > Things I've heard about Pylons that I like:
> > - It's easier to customize and swap components in and out.
> > - It uses SQLAlchemy out of the box. (I've never used it, but I hear that
> > it's better than Django's ORM)
> > - It uses Mako out of the box. (Again, I've never used it, but I hear
> that
> > it's better than Django's templating system).
> >
> > I'm not sure how important SQLAlchemy and Mako support is, so I'd like to
> > hear opinions from some more experienced Python and Django users.
> >
> > Thanks,
> > Feross
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.