New book: Instant Django 1.5 Application Development Starter

2013-04-05 Thread Mauro Rocco
Hi everybody,
I just wrote a book to get started with Django and I really hope that the 
book will drive more developers to use Django and increase the success that 
this great framework is already having. 
Thanks also to PacktPublishing that aims to help sustain the projects which 
it publishes books on by paying royalties to them. 
I just want to make clear that this book is for real beginners and for that 
doesn't touch any best practices and advanced topics. Due also to Packt 
rules this book was really restricted to the minimum useful content for let 
the reader start with Django.

Here you found the book in different formats: 
http://www.packtpub.com/django-1-5-application-development-starter/book
 (Amazon,Safari)

Thanks

Mauro

-- 
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: New book: Instant Django 1.5 Application Development Starter

2013-04-08 Thread Mauro Rocco
Thank you

On Friday, April 5, 2013 8:27:34 PM UTC+2, megaBos wrote:
>
> good job

-- 
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: Django 1.5 Tutorial Part 3, Test after Update of Polls/urls.py

2013-08-21 Thread Mauro Rocco
Hi,
The 34 is the id of the pool record in the database. This means that you 
don't have a pool with that ID in the database.
If you already created some pool object you will probably see something if 
you navigate to this url /polls/1/results/.
If also in this case you got 404 make sure you actually have some pool 
object in the db.

Regards

On Wednesday, August 21, 2013 6:02:16 AM UTC+2, Diek Kearney wrote:
>
> I am going through the Tutorial Django 1.5 Tutorial Part 3, and up to the 
> current point everything was running smoothly, then I hit a wall that I 
> cannot figure out. Maybe I am too focused on following, anyways I need some 
> help.
>
> After I updated Polls/urls.py:
>
> from django.conf.urls import patterns, include, url
>
>
> from polls import views
>
>
> urlpatterns = patterns('',
>
># ex: /polls/
>
>url(r'^$', views.index, name='index'),
>
># ex: /polls/5/
>
>url(r'^(?P\d+)/$',
>
>views.detail, name='detail'),
>
># ex: /polls/5/results/
>
>url(r'^(?P\d+)/results/$',
>
>views.results, name='results'),
>
># ex: /polls/5/vote/
>
>url(r'^(?P\d+)/vote/$',
>
>views.vote, name='vote'),
>
>)
>
> The next step is "Take a look in your browser, at “/polls/34/”. It’ll run 
> the detail() method and display whatever ID you provide in the URL. Try 
> “/polls/34/results/” and “/polls/34/vote/” too – these will display the 
> placeholder results and voting pages." I tried and nothing. It generates 
> a 404 error. Where exactly is the 34 coming from? I like to think things 
> through but as a beginner in django following a tutorial I need more when 
> it comes to this section.
>
> Thanks,
>
> Derrick
>  
>

-- 
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: Problem with translations

2013-08-21 Thread Mauro Rocco
Hi,
That's strange.
To me looks like the server from time to time can not access this files as 
you said.
What you use in production Apache/ModWSGI ?

Regards

On Wednesday, August 21, 2013 2:57:51 PM UTC+2, Andréas Kühne wrote:
>
> Hi,
>
> I am working on a website that is available in 10 different languages, and 
> we have the translations working. If you want to see our website in french, 
> you just add /fr to our url and it works fine.
>
> However we are getting a lot of :
>
>   File "middleware.py", line 83, in process_request
> translation.activate(request.locale_dict['language'])
>
>   File 
> "env/lib/python2.6/site-packages/django/utils/translation/__init__.py", 
> line 90, in activate
> return _trans.activate(language)
>
>   File 
> "env/lib/python2.6/site-packages/django/utils/translation/trans_real.py", 
> line 183, in activate
> _active.value = translation(language)
>
>   File 
> "env/lib/python2.6/site-packages/django/utils/translation/trans_real.py", 
> line 173, in translation
> current_translation = _fetch(language, fallback=default_translation)
>
>   File 
> "env/lib/python2.6/site-packages/django/utils/translation/trans_real.py", 
> line 141, in _fetch
> res._info = res._info.copy()
>
> AttributeError: 'NoneType' object has no attribute '_info'
>
> These errors mostly occur when the user requests an ajax enabled update. 
> As far as I can tell this error is related to the fact that django 
> tranlsations can't open the .mo files for the specific locale. What I don't 
> understand is that this happens maybe once every 2 days, so it doesn't 
> happen all the time. 
>
> The only resources I have found on the subject are regarding to completely 
> missing .mo translation files (which is not the case here). I am leaning 
> towards an issue with apache not being able to open the file, because of 
> restrictions on the number of open files allowed, but I'm not sure. Has 
> anyone any ideas on how to correct this issue? I should also say that it 
> has never happened on our development machines. 
>
> Regards, 
>
> Andréas
>

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