Re: Нужен Django мастер на все руки

2012-12-10 Thread fuxter fuxter
Django russian 
group

On Monday, December 10, 2012 8:21:02 AM UTC+4, GeorgeS wrote:
>
> Нужен Django мастер на все руки:
>
>  - Опыт с Django от 4 лет
>
>  - Отличное знание серверной части
>
>  - Отличное знание Postgres
>
>  - HTML5, CSS3, JavaScript, (jQuery, Bootstrap, etc.)
>
>  - Опыт установки и настройки под LINUX
>
>  - Желателен опыт с Amazon AWS (или другими SAAS, PAAS системами)
>
>
> Если опыт с клиентской частью не ахти - ничего страшного, главное - 
> отличное знание серверной части и DB. Если что-то не знаете, тоже не 
> смертельно. Важны энергичность, заинтересованность, и желание построить 
> что-то значимое и нужное огромному числу людей.
>
>
> Вы должны быть коммуникабельны и самодостаточны . Если что-то не знаете - 
> найти и разобраться. Если требует слишком много усилий - найти человека 
> который может объяснить или сделать (их услуги будем оплачивать отдельно).
>
>
> Работа удаленная. Полная занятость. Зарплата, по российским меркам, 
> высокая.
>
>
> Если Вы знаете кого-то подходящего, перешлите пожалуйста это сообщение.
>
>
> Спасибо!
>
>

-- 
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/-/IDOcw-BLPG0J.
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 gracefully shutdown

2012-12-08 Thread fuxter fuxter
I found this solution pretty easy and to my likings:

$ uwsgi ... --touch-reload /var/run/any_file_actually.pid ... # launching 
uwsgi
$ touch /var/run/any_file_actually.pid # anytime i want to reload all the 
python code

I'm using using uWSGI in master mode with handfull of small sites and this 
approach reloads all workers, so it might not be for everybody.

On Saturday, December 8, 2012 12:25:55 AM UTC+4, Odagi wrote:
>
>
> Hello! 
>
> After lot of work I'm ready to deploy my site on production. I'll use 
> Nginx with uWSGI or fastCGI (not sure yet), and my doubt is how can I 
> shutdown my production Django app gracefully (for make changes for 
> example). Of course I can kill django-python-fcgi processes and restart 
> everything again but is that correct? Can someone give me some hints please?
>
> Thanks!
>

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



PicklingError: Can't pickle : it's not the same object as pytz._UTC

2012-04-17 Thread fuxter fuxter
Hello all,

Did anybody encounter the error above after upgrading to 1.4 and switching 
to timezones? Some pages start 500 randomly, really randomly. I've tried 
switching to pickle from cPickle. I've tried changing pickle protocols in 
the memcached module. I've tried pylibmc. All the same. As a half measure 
I'm forced to use locmem for now.

Couldn't google something useful on the topic apart from problems with lazy 
objects with pickling.

Some info:
Django 1.4
pytz pytz==2012b
python-memcached==1.48

traceback:
   File "/home/fuxter/data/alliance/main_site/utils.py", line 132, in 
get_comment_by_id
 cache.set(cache_key, comment)
 
   File 
"/home/fuxter/data/alliance/lib/python2.7/site-packages/django/core/cache/backends/memcached.py",
 
line 64, in set
 self._cache.set(key, value, self._get_memcache_timeout(timeout))
 
   File 
"/home/fuxter/data/alliance/lib/python2.7/site-packages/memcache.py", line 
566, in set
 return self._set("set", key, val, time, min_compress_len)
 
   File 
"/home/fuxter/data/alliance/lib/python2.7/site-packages/memcache.py", line 
803, in _set
 return _unsafe_set()
 
   File 
"/home/fuxter/data/alliance/lib/python2.7/site-packages/memcache.py", line 
781, in _unsafe_set
 store_info = self._val_to_store_info(val, min_compress_len)
 
   File 
"/home/fuxter/data/alliance/lib/python2.7/site-packages/memcache.py", line 
752, in _val_to_store_info
 pickler.dump(val)
 
   File "/usr/local/lib/python2.7/pickle.py", line 224, in dump
 self.save(obj)
 
   File "/usr/local/lib/python2.7/pickle.py", line 286, in save
 f(self, obj) # Call unbound method with explicit self
 
   File "/usr/local/lib/python2.7/pickle.py", line 649, in save_dict
 self._batch_setitems(obj.iteritems())
 
   File "/usr/local/lib/python2.7/pickle.py", line 681, in _batch_setitems
 save(v)
 
   File "/usr/local/lib/python2.7/pickle.py", line 331, in save
 self.save_reduce(obj=obj, *rv)
 
   File "/usr/local/lib/python2.7/pickle.py", line 401, in save_reduce
 save(args)
 
   File "/usr/local/lib/python2.7/pickle.py", line 286, in save
 f(self, obj) # Call unbound method with explicit self
 
   File "/usr/local/lib/python2.7/pickle.py", line 548, in save_tuple
 save(element)
 
   File "/usr/local/lib/python2.7/pickle.py", line 331, in save
 self.save_reduce(obj=obj, *rv)
 
   File "/usr/local/lib/python2.7/pickle.py", line 400, in save_reduce
 save(func)
 
   File "/usr/local/lib/python2.7/pickle.py", line 286, in save
 f(self, obj) # Call unbound method with explicit self
 
   File "/usr/local/lib/python2.7/pickle.py", line 753, in save_global
 (obj, module, name))
 
 PicklingError: Can't pickle : it's not the 
same object as pytz._UTC

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