Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread James Turley
Hi George,

As a fellow relative n00b to Django (and 'serious' web development), I
think this is a very good idea. I'm working through Harry Percival's
excellent book, and only got hopelessly lost during the deployment
chapter(admittedly,
I was attempting to deploy to 'production' through my
development machine - an effort which succeeded principally in FUBARing my
Apache settings for about a week, and possibly sucking knowledge of unix
sockets etc *out of* my brain. Lessons have been learned).

More broadly, one of the first major brain-teasers for PHP refugees
(*cough*) coming to Django or Rails or whatever is the loss of that "open
filezilla, upload folder, done" deployment workflow.

Obviously I'm not the person to help you with this, however. :-)

JT


On Wed, Nov 6, 2013 at 2:07 AM, Vijay Khemlani  wrote:

> Wouldn't it be better to publish the book the same way as the Django Book (
> http://www.djangobook.com/, https://github.com/jacobian/djangobook.com)
> instead of looking for private reviewers?
>
>
> On Tue, Nov 5, 2013 at 9:34 PM, George London 
> wrote:
>
>> Hi All!
>>
>> As a fairly recently self-taught Djangonaut, I was a bit dissatisfied
>> with the existing resources for learning to deploy Django in a production
>> setting. There are lots of blog posts about how to configure specific
>> services but really not much that recommends which services to use or how
>> to bring everything together (except for guides like
>> http://www.deploydjango.com/ that recommend just using Heroku.)
>>
>> I think it would be really helpful for new-comers to have a clear,
>> opinionated guide to "commonly accepted (i.e. idiomatic)" deployment best
>> practices. Or at least I know it would have really helped me.
>>
>> So I decided to write such a guide. I'm painfully aware that it's
>> presumptuous for someone with my limited experience to make "best
>> practices" recommendations. So to avoid recommending things that are dumb,*
>> I'm hoping some of our community's heavy weights could heavy-weigh in and
>> verify that my recommendations make sense.*
>>
>> I've got a full draft prepared. *If you'd be interested in reviewing it
>> (or can recommend someone I should ask directly), please email me directly.*
>>
>> -George
>>
>>
>> --
>> ---
>> George London
>> E: george.j.lon...@gmail.com
>> T: @rogueleaderr 
>> B: rogueleaderr.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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/de9ba225-0ce4-4888-b121-986762c63f39%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/CALn3ei0wtHEODfTU8Qif-688A%3DZXW%3DaJYqeoxyAOKHLxh%2BRSSg%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/CAAb4X%3Dy8zcrg%2B9mjF1Yrq_WYAuHpJWAwSqhEsBKPCZ_J7PUSXw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


'NoneType' object has no attribute '__getitem__' Please help me to debug this

2013-11-06 Thread Ham Kibz
Below is the traceback

Django Version: 1.5.1
Python Version: 2.7.4
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'products')
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')


Traceback:
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/core/handlers/base.py"
 
in get_response
  115. response = callback(request, *callback_args, 
**callback_kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
 
in wrapper
  372. return self.admin_site.admin_view(view)(*args, 
**kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
 
in _wrapped_view
  91. response = view_func(request, *args, **kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/views/decorators/cache.py"
 
in _wrapped_view_func
  89. response = view_func(request, *args, **kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/sites.py"
 
in inner
  202. return view(request, *args, **kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
 
in _wrapper
  25. return bound_func(*args, **kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
 
in _wrapped_view
  91. response = view_func(request, *args, **kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
 
in bound_func
  21. return func(self, *args2, **kwargs2)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/db/transaction.py"
 
in inner
  223. return func(*args, **kwargs)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
 
in add_view
  1009. self.log_addition(request, new_object)
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
 
in log_addition
  530. action_flag = ADDITION
File 
"/home/kelcy/django1.5.1/local/lib/python2.7/site-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/products/catalogcategory/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/1798ea05-5f4e-4e9d-aebf-0227a840e0c8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 'NoneType' object has no attribute '__getitem__' Please help me to debug this

2013-11-06 Thread James Turley
Hi Ham, I was following your thread on the LinkedIn django group and it
looked there like you had a couple of simple typos in your CatalogCategory
model's __unicode__ method. Did you get round to fixing those?

JT


On Wed, Nov 6, 2013 at 11:46 AM, Ham Kibz  wrote:

> Below is the traceback
>
> Django Version: 1.5.1
> Python Version: 2.7.4
> Installed Applications:
> ('django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'django.contrib.admin',
>  'products')
> 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')
>
>
> Traceback:
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/core/handlers/base.py"
> in get_response
>   115. response = callback(request,
> *callback_args, **callback_kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
> in wrapper
>   372. return self.admin_site.admin_view(view)(*args,
> **kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in _wrapped_view
>   91. response = view_func(request, *args, **kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/views/decorators/cache.py"
> in _wrapped_view_func
>   89. response = view_func(request, *args, **kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/sites.py"
> in inner
>   202. return view(request, *args, **kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in _wrapper
>   25. return bound_func(*args, **kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in _wrapped_view
>   91. response = view_func(request, *args, **kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in bound_func
>   21. return func(self, *args2, **kwargs2)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/db/transaction.py"
> in inner
>   223. return func(*args, **kwargs)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
> in add_view
>   1009. self.log_addition(request, new_object)
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
> in log_addition
>   530. action_flag = ADDITION
> File
> "/home/kelcy/django1.5.1/local/lib/python2.7/site-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/products/catalogcategory/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/1798ea05-5f4e-4e9d-aebf-0227a840e0c8%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/CAAb4X%3Dws_3A-x27kO7Dz0q-Pe6%3DpAUUM0yKGhNXZSDcZOf09dA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread Javier Guerra Giraldez
On Tue, Nov 5, 2013 at 7:34 PM, George London  wrote:
>
> I think it would be really helpful for new-comers to have a clear, 
> opinionated guide to "commonly accepted (i.e. idiomatic)" deployment best 
> practices. Or at least I know it would have really helped me.


wish you the best luck, hopefully it will be a usefull resource for us all.

as for my 2bits of advice: remember that there's not "single one" best
and recommended deployment strategy.  AFAIK, there are at least three
options that just _have_ to be considered:

- nginx + uWSGI (pros: most flexible process handling, can be the
fastest of all)

- Apache + mod_wsgi (pros: integration in Apache ecosystem, makes
process handling almost transparent, maybe the only good choice for
windows servers)

- nginx + gunicorn (pros: mostly python, good docs, can be used
without nginx for development)


honestly, covering these three is a "make or break" for me.  that is,
I would never recommend anybody (no matter how newbie) a deployment
guide that doesn't cover at least those.

(of course, a real newbie shouldn't have to get into deployment issues
until needed.  the development setup is more than enough to learn the
platform)

-- 
Javier

-- 
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/CAFkDaoTRp5WUC2hYP7szyCrT3-8jCME0RUuVjcc5qZZZW%2BaU6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread pnichols104
This sounds great!  I'm still learning myself (coming up on 2 years 
experience) so I'm a little hesitant to volunteer to offer opinions on 
content, but I'm an excellent proofreader and would love to help out.  I 
talk English much good and spel grate.

Best,
Paul

On Tuesday, November 5, 2013 7:34:05 PM UTC-5, George London wrote:
>
> Hi All!
>
> As a fairly recently self-taught Djangonaut, I was a bit dissatisfied with 
> the existing resources for learning to deploy Django in a production 
> setting. There are lots of blog posts about how to configure specific 
> services but really not much that recommends which services to use or how 
> to bring everything together (except for guides like 
> http://www.deploydjango.com/ that recommend just using Heroku.)
>
> I think it would be really helpful for new-comers to have a clear, 
> opinionated guide to "commonly accepted (i.e. idiomatic)" deployment best 
> practices. Or at least I know it would have really helped me.
>
> So I decided to write such a guide. I'm painfully aware that it's 
> presumptuous for someone with my limited experience to make "best 
> practices" recommendations. So to avoid recommending things that are dumb,
> * I'm hoping some of our community's heavy weights could heavy-weigh in 
> and verify that my recommendations make sense.*
>
> I've got a full draft prepared. *If you'd be interested in reviewing it 
> (or can recommend someone I should ask directly), please email me directly.
> *
>
> -George
>
>
> -- 
> ---
> George London
> E: george@gmail.com 
> T: @rogueleaderr 
> B: rogueleaderr.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/11287e95-a251-481d-a761-0457aa32f8a0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread Derek
I agree there is a huge amount to learn in development... but deployment to 
a Real Live Server is not trivial; I have read two different (and each 
fairly detailed) guides so far, and still cannot get things working...  for 
me, a really good guide would also include "trouble-shooting"  - along the 
lines of "if you get a blank screen here, look here & there - change X to Y 
- restart Z by doing ABC" etc.  Such details could be built up by the 
community if the guide was open-sourced as suggested previously, rather 
than hosted on a blog somewhere...

On Wednesday, 6 November 2013 15:46:56 UTC+2, Javier Guerra wrote:
>
> On Tue, Nov 5, 2013 at 7:34 PM, George London 
> > 
> wrote: 
> > 
> > I think it would be really helpful for new-comers to have a clear, 
> opinionated guide to "commonly accepted (i.e. idiomatic)" deployment best 
> practices. Or at least I know it would have really helped me. 
>
>
> wish you the best luck, hopefully it will be a usefull resource for us 
> all. 
>
> as for my 2bits of advice: remember that there's not "single one" best 
> and recommended deployment strategy.  AFAIK, there are at least three 
> options that just _have_ to be considered: 
>
> - nginx + uWSGI (pros: most flexible process handling, can be the 
> fastest of all) 
>
> - Apache + mod_wsgi (pros: integration in Apache ecosystem, makes 
> process handling almost transparent, maybe the only good choice for 
> windows servers) 
>
> - nginx + gunicorn (pros: mostly python, good docs, can be used 
> without nginx for development) 
>
>
> honestly, covering these three is a "make or break" for me.  that is, 
> I would never recommend anybody (no matter how newbie) a deployment 
> guide that doesn't cover at least those. 
>
> (of course, a real newbie shouldn't have to get into deployment issues 
> until needed.  the development setup is more than enough to learn the 
> platform) 
>
> -- 
> Javier 
>

-- 
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/2728e7e2-1546-4352-b401-893209d78a53%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[ANNOUNCE] Django 1.6 and Django 1.4.10 released

2013-11-06 Thread James Bennett
Django 1.6 and Django 1.4.10 are out today; the latter is a bugfix release
to restore Python 2.5 compatibility in the 1.4 series.

Full details are in the blog post:

https://www.djangoproject.com/weblog/2013/nov/06/django-16-released/

-- 
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/CAL13Cg-3eOzaQJgv3%2BNEGftvnP4a%3DbVmX87Q49H_wJsesFRUnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread Thomas Murphy
To all that are having trouble with live server deployment, have you
tried Python Anywhere as a start? It's the method introduced in the
Tango with Django tut, and it's the easiest "deploy with Django" live
environment I've seen.

-Excellent error logging
-bash and sql shells
-great support

On Wed, Nov 6, 2013 at 10:03 AM, Derek  wrote:
> I agree there is a huge amount to learn in development... but deployment to
> a Real Live Server is not trivial; I have read two different (and each
> fairly detailed) guides so far, and still cannot get things working...  for
> me, a really good guide would also include "trouble-shooting"  - along the
> lines of "if you get a blank screen here, look here & there - change X to Y
> - restart Z by doing ABC" etc.  Such details could be built up by the
> community if the guide was open-sourced as suggested previously, rather than
> hosted on a blog somewhere...
>
> On Wednesday, 6 November 2013 15:46:56 UTC+2, Javier Guerra wrote:
>>
>> On Tue, Nov 5, 2013 at 7:34 PM, George London 
>> wrote:
>> >
>> > I think it would be really helpful for new-comers to have a clear,
>> > opinionated guide to "commonly accepted (i.e. idiomatic)" deployment best
>> > practices. Or at least I know it would have really helped me.
>>
>>
>> wish you the best luck, hopefully it will be a usefull resource for us
>> all.
>>
>> as for my 2bits of advice: remember that there's not "single one" best
>> and recommended deployment strategy.  AFAIK, there are at least three
>> options that just _have_ to be considered:
>>
>> - nginx + uWSGI (pros: most flexible process handling, can be the
>> fastest of all)
>>
>> - Apache + mod_wsgi (pros: integration in Apache ecosystem, makes
>> process handling almost transparent, maybe the only good choice for
>> windows servers)
>>
>> - nginx + gunicorn (pros: mostly python, good docs, can be used
>> without nginx for development)
>>
>>
>> honestly, covering these three is a "make or break" for me.  that is,
>> I would never recommend anybody (no matter how newbie) a deployment
>> guide that doesn't cover at least those.
>>
>> (of course, a real newbie shouldn't have to get into deployment issues
>> until needed.  the development setup is more than enough to learn the
>> platform)
>>
>> --
>> Javier
>
> --
> 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/2728e7e2-1546-4352-b401-893209d78a53%40googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
Sincerely,
Thomas Murphy
Code Ninja
646.957.6115

-- 
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/CAEcwjcwGGH5a1NosjPoygR_E5gAvm0KdZN1TvaLb02UXztZDew%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django debugger

2013-11-06 Thread Harjot Mann
On Wed, Nov 6, 2013 at 8:49 PM, Stefano Probst  wrote:
> If you use Eclipse, you can set Breakpoints and go forward step by step.


What about django debug toolbar?

-- 
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
Daily Dairy: http://harjotmann.wordpress.com/daily-diary/

-- 
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/CAB0GQhBez-CuB-RmYGf0exkfmDgCH%3DL5fEnd-smBR2a77B7sfA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django debugger

2013-11-06 Thread Stefano Probst
If you use Eclipse, you can set Breakpoints and go forward step by step.

-- 
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/d9a3d8af-02df-48c5-9db8-f0789bb28b5a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django debugger

2013-11-06 Thread Stefano Probst
Of course you can use the 
toolbaralso. The toolbar is 
a app witch run 'inside' your Project. With the 
eclipse debugger you can set breakpoints and run your program step by step. 
This are different types of debugging,
The 
installationof
 Django Debug Toolbar is really easy. If you use Eclipse already its also 
easy to debug with it, but if Eclipse isn't configured for your project you 
need some time to get it work.

I would say try booth.

best regards

PS:
Some Eclipse links:
Eclipse 
PyDev  - The Python plugin for Eclipse
Aptana  - Eclipse with preinstalled Python plugins 
/ preconfigured 

-- 
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/d7f171c1-c251-4dfd-84fa-92fcdd560f3e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo Kamada
Hi, I'm trying to do in list_display
a link to open in new tab list_display with results of my queryset.
http://dpaste.com/1445232/
that way I get this error reverse

Reverse for 'evento.views.lista' with arguments '(,)' and keyword arguments '{}' not found.

Could someone help me?
I do not understand why this error because I call the view and pass the
argument to the filter queryset but I get this error.
Ricardo

-- 
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/CAJTdXTGNtZWmzsC7btxOLDymNr18hBpj8FxvSZDiAZ9uELevVA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Tom Evans
You haven't shown the url in question, which makes it hard to answer.

At a guess, the url specifies a %d parameter, you are passing it an
object. Pass it self.evento.id

Cheers

Tom

On Wed, Nov 6, 2013 at 5:15 PM, Ricardo Kamada  wrote:
> Hi, I'm trying to do in list_display
> a link to open in new tab list_display with results of my queryset.
> http://dpaste.com/1445232/
> that way I get this error reverse
>
> Reverse for 'evento.views.lista' with arguments '(,)'
> and keyword arguments '{}' not found.
>
> Could someone help me?
> I do not understand why this error because I call the view and pass the
> argument to the filter queryset but I get this error.
> Ricardo
>
> --
> 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/CAJTdXTGNtZWmzsC7btxOLDymNr18hBpj8FxvSZDiAZ9uELevVA%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/CAFHbX1JuHEREDgOxMGwGX7BBLy%3Db-mF3ZYSNzWyoaap7o4-Btw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo
Hi
the file full url like this
http://pastebin.com/ztF8VDET
I just try to pass the id as said but still did not work.
the error is this
NoReverseMatch at / admin / event / incricaoevento /
Reverse for 'evento.views.lista' with arguments '(1)' and keyword arguments 
'{}' not found.

Now I do not know if you're calling the view correctly, if the error is in 
reverse ("evento.views.lista", args = [self.evento.id]) or something that 
gotta do with get_url the admin.

Em quarta-feira, 6 de novembro de 2013 15h30min26s UTC-2, Tom Evans 
escreveu:
>
> You haven't shown the url in question, which makes it hard to answer. 
>
> At a guess, the url specifies a %d parameter, you are passing it an 
> object. Pass it self.evento.id 
>
> Cheers 
>
> Tom 
>
> On Wed, Nov 6, 2013 at 5:15 PM, Ricardo Kamada 
> > 
> wrote: 
> > Hi, I'm trying to do in list_display 
> > a link to open in new tab list_display with results of my queryset. 
> > http://dpaste.com/1445232/ 
> > that way I get this error reverse 
> > 
> > Reverse for 'evento.views.lista' with arguments '( 01>,)' 
> > and keyword arguments '{}' not found. 
> > 
> > Could someone help me? 
> > I do not understand why this error because I call the view and pass the 
> > argument to the filter queryset but I get this error. 
> > Ricardo 
> > 
> > -- 
> > 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. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/CAJTdXTGNtZWmzsC7btxOLDymNr18hBpj8FxvSZDiAZ9uELevVA%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/0700ad76-5d5f-44be-850c-98e6cf241052%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread George London
@Vijay:

I've actually got the guide up on Github much like that (you can find it 
via my Github, if you're motivated). You can check out the draft here: 
https://github.com/rogueleaderr/definitive_guide_to_django_deployment.

I was a bit nervous about throwing it directly in front of this community 
before it's been reviewed, but...what the heck. Have at it. :)



On Tuesday, November 5, 2013 9:07:16 PM UTC-5, Vijay Khemlani wrote:
>
> Wouldn't it be better to publish the book the same way as the Django Book (
> http://www.djangobook.com/, https://github.com/jacobian/djangobook.com) 
> instead of looking for private reviewers?
>
>
> On Tue, Nov 5, 2013 at 9:34 PM, George London 
> 
> > wrote:
>
>> Hi All!
>>
>> As a fairly recently self-taught Djangonaut, I was a bit dissatisfied 
>> with the existing resources for learning to deploy Django in a production 
>> setting. There are lots of blog posts about how to configure specific 
>> services but really not much that recommends which services to use or how 
>> to bring everything together (except for guides like 
>> http://www.deploydjango.com/ that recommend just using Heroku.)
>>
>> I think it would be really helpful for new-comers to have a clear, 
>> opinionated guide to "commonly accepted (i.e. idiomatic)" deployment best 
>> practices. Or at least I know it would have really helped me.
>>
>> So I decided to write such a guide. I'm painfully aware that it's 
>> presumptuous for someone with my limited experience to make "best 
>> practices" recommendations. So to avoid recommending things that are dumb,
>> * I'm hoping some of our community's heavy weights could heavy-weigh in 
>> and verify that my recommendations make sense.*
>>
>> I've got a full draft prepared. *If you'd be interested in reviewing it 
>> (or can recommend someone I should ask directly), please email me directly.
>> *
>>
>> -George
>>
>>
>> -- 
>> ---
>> George London
>> E: george@gmail.com 
>> T: @rogueleaderr 
>> B: rogueleaderr.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...@googlegroups.com .
>> To post to this group, send email to django...@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/de9ba225-0ce4-4888-b121-986762c63f39%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/cca0fa02-96fa-443e-aa1d-fc0f87d67a94%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo Kamada
I got :)
was missing url
url (r '^ list / (?  P \ d +) / $', 'evento.views.lista', name = 'list')

Thanks to all

Ricardo


2013/11/6 Ricardo 

> Hi
> the file full url like this
> http://pastebin.com/ztF8VDET
> I just try to pass the id as said but still did not work.
> the error is this
> NoReverseMatch at / admin / event / incricaoevento /
> Reverse for 'evento.views.lista' with arguments '(1)' and keyword
> arguments '{}' not found.
>
> Now I do not know if you're calling the view correctly, if the error is in
> reverse ("evento.views.lista", args = [self.evento.id]) or something that
> gotta do with get_url the admin.
>
> Em quarta-feira, 6 de novembro de 2013 15h30min26s UTC-2, Tom Evans
> escreveu:
>>
>> You haven't shown the url in question, which makes it hard to answer.
>>
>> At a guess, the url specifies a %d parameter, you are passing it an
>> object. Pass it self.evento.id
>>
>> Cheers
>>
>> Tom
>>
>> On Wed, Nov 6, 2013 at 5:15 PM, Ricardo Kamada 
>> wrote:
>> > Hi, I'm trying to do in list_display
>> > a link to open in new tab list_display with results of my queryset.
>> > http://dpaste.com/1445232/
>> > that way I get this error reverse
>> >
>> > Reverse for 'evento.views.lista' with arguments '(> 01>,)'
>> > and keyword arguments '{}' not found.
>> >
>> > Could someone help me?
>> > I do not understand why this error because I call the view and pass the
>> > argument to the filter queryset but I get this error.
>> > Ricardo
>> >
>> > --
>> > 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.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msgid/django-users/
>> CAJTdXTGNtZWmzsC7btxOLDymNr18hBpj8FxvSZDiAZ9uELevVA%40mail.gmail.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/m9OwGZRMurk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/0700ad76-5d5f-44be-850c-98e6cf241052%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/CAJTdXTFnb63-%3DwNSyVwjsU%3Dj%3DCdYOvW8QEKsDAn%3DEHM2hshFZg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Help please xml2-config from libxml2

2013-11-06 Thread diego mauricio herrera
If you are trying of install libxml2-dev in red hat 6, you must install 
libxml2-devel.

regards.

El martes, 2 de agosto de 2011 10:15:08 UTC-5, theseventhletter escribió:
>
> Good Day to all 
> i been trying to install geodjango but always gets stuck up with this 
> error after i downloaded postGIS and typed ./configure on the 
> terminal. 
>
> configure: error: could not find xml2-config from libxml2 within the 
> current path. You may need to try re-running configure with a --with- 
> xml2config parameter. 
>
>
> ive used google to search for answer to this error but i haven't found 
> anything to fix this 
>
> im using ubuntu 11.04 in a VM (oracle) 
>
> 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/0b6dc62e-eb71-482b-9d4f-ee60d259740b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ANNOUNCE] Django 1.6 and Django 1.4.10 released

2013-11-06 Thread Lachlan Musicman
Thanks for all the hard work devs!

L.

On 7 November 2013 02:09, James Bennett  wrote:
> Django 1.6 and Django 1.4.10 are out today; the latter is a bugfix release
> to restore Python 2.5 compatibility in the 1.4 series.
>
> Full details are in the blog post:
>
> https://www.djangoproject.com/weblog/2013/nov/06/django-16-released/
>
> --
> 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/CAL13Cg-3eOzaQJgv3%2BNEGftvnP4a%3DbVmX87Q49H_wJsesFRUnQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
>From this perspective it is natural that anarchism be marked by
spontaneity, differentiation, and experimentation that it be marked by
an expressed affinity with chaos, if chaos is understood to be what
lies outside or beyond the dominant game or system. Because of the
resistance to definition and categorisation, the anarchist principle
has been variously interpreted as, rather than an articulated
position, “a moral attitude, an emotional climate, or even a mood”.
This mood hangs in dramatic tension between utopian hope or dystopian
nihilism...
-
http://zuihitsu.org/godspeed-you-black-emperor-and-the-politics-of-chaos

-- 
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/CAGBeqiPGqeYCpfLWXpdcON3zyRAcyiD004FUw0prC1HUaoz4MQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ANNOUNCE] Django 1.6 and Django 1.4.10 released

2013-11-06 Thread wudiweb
Thanks for all contributors

在 2013年11月6日星期三UTC+8下午11时09分45秒,James Bennett写道:
>
> Django 1.6 and Django 1.4.10 are out today; the latter is a bugfix release 
> to restore Python 2.5 compatibility in the 1.4 series.
>
> Full details are in the blog post:
>
> https://www.djangoproject.com/weblog/2013/nov/06/django-16-released/
>  

-- 
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/b1715b43-ca4c-4c17-8863-beca7501fcdd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.