virtualenvwrapper dies while mkproject & mkvirtualenv

2012-10-24 Thread Ashkan Roshanayi
Hi I've installed pip using easy_install on my mac and later installed 
virtualenv and virtualenvwrapper both successfully.  

wrapper doesn't work at all and when I invoke it by mkproject or mkvirtualenv 
it go on till this line:

> Setting project for test to $PROJECT_HOME/test
> 



and from here it takes a long time with no output or progress. Any idea on how 
can I fix this?

Cheers, 

-- 
Ashkan



-- 
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 dev/deploy environment for distributed agile teams

2012-01-01 Thread Ashkan Roshanayi
Thanks Denis, I am not sure about using Gunicorn. Actually am thinking about a 
more async, non-blocking platform maybe using Tornado. What do you think?

Cheers,

On 11 Dey, 1390, at 12:53 AM, Denis Darii wrote:

> Hi Ashkan,
> 
> You can take a look at our project: django-fagungis = DJANGO + FAbric + 
> GUnicorn + NGInx + Supervisor deployment
> Here: https://bitbucket.org/DNX/django-fagungis/
> We use it for the same purpose as you described.
> If you have some questions, suggestions or ideas about and for the project 
> feel free to open an issue on bitbucket.
> 
> Happy new year to all!
> 
> 
> On Sat, Dec 31, 2011 at 8:11 PM, Paul Msegeya  wrote:
> sounds good...Happy new year too.
> 
> 
> On Sat, Dec 31, 2011 at 10:25 PM, Ashkan Roshanayi 
>  wrote:
> Hi everybody, we are working in a geographically distributed agile team. I am 
> trying to design and configure our development environment and deployment 
> procedures and need to know about your valuable experiences. My requirements 
> are:
> 
> * Each new developer can kick-start developing: dev environment and all 
> installs/configs (python related) should be achievable in 15 minutes. This 
> procedure should be automated and repeatable.
> 
> * Everybody can pull & build whole project locally and run complete 
> *functional* test suite
> 
> * Upon pushing code in our Github repo, it will be pulled out by our 
> build/staging server automatically --> all *functional* & *non-functional* 
> tests will be run by Jenkins --> if successful: we can test it manually on 
> this server too.
> 
> * Admins can choose some features or profiles on this staging server and 
> deploy them to live (production) server by ideally executing a script
> 
> 
> I've read a lot about virtualenv, pip, fabric, puppet, chef & blueprint and 
> used some of them but want to hear more about your recommendations, best 
> practices and potential pitfalls. Appreciate it very much.
> 
> Happy new year :)
> 
> --
> Ashkan
> 
> --
> 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.
> 
> 
> 
> -- 
> 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.



Django dev/deploy environment for distributed agile teams

2011-12-31 Thread Ashkan Roshanayi
Hi everybody, we are working in a geographically distributed agile team. I am 
trying to design and configure our development environment and deployment 
procedures and need to know about your valuable experiences. My requirements 
are:

* Each new developer can kick-start developing: dev environment and all 
installs/configs (python related) should be achievable in 15 minutes. This 
procedure should be automated and repeatable.

* Everybody can pull & build whole project locally and run complete 
*functional* test suite

* Upon pushing code in our Github repo, it will be pulled out by our 
build/staging server automatically --> all *functional* & *non-functional* 
tests will be run by Jenkins --> if successful: we can test it manually on this 
server too.

* Admins can choose some features or profiles on this staging server and deploy 
them to live (production) server by ideally executing a script


I've read a lot about virtualenv, pip, fabric, puppet, chef & blueprint and 
used some of them but want to hear more about your recommendations, best 
practices and potential pitfalls. Appreciate it very much.

Happy new year :)

--
Ashkan 

-- 
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 I could reset django admin pass in a buildout project

2011-12-29 Thread Ashkan Roshanayi
Ouch! now I get:

Traceback (most recent call last):
  File "./bin/django", line 35, in 
import djangorecipe.manage
ImportError: No module named djangorecipe.manage

should I set something in project/settings.py?

Best,

-- 
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/-/7TWo-1QCsDIJ.
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.



How I could reset django admin pass in a buildout project

2011-12-29 Thread Ashkan Roshanayi
Hi, basically my project is that I don't know how can I access django shell in 
a buildout project! 

Marry Christmas :)

--
Ashkan

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



Urgent: django app got internal error: TemplateDoesNotExist: 500.html

2011-12-19 Thread Ashkan Roshanayi
I tried to live edit base.py template but now my app has internal error. I 
undo the changes but still get 500 error while accessing website. Tail -f 
of my application_name.log shows:
>
>
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 108, in __init__
> self.nodelist = compile_string(template_string, origin)
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 136, in compile_string
> return parser.parse()
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 237, in parse
> self.invalid_block_tag(token, command, parse_until)
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 291, in invalid_block_tag
> raise self.error(token, "Invalid block tag: '%s'" % command)
> TemplateSyntaxError: Invalid block tag: '%20get_static_prefix%20'


And tail -f of error.log shows:

[Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] return 
> callback(request, **param_dict), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/utils/decorators.py",
>  
> line 93, in _wrapped_view, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] response = 
> view_func(request, *args, **kwargs), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/views/defaults.py",
>  
> line 30, in server_error, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] t = 
> loader.get_template(template_name) # You need to create a 500.html 
> template., referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
>  
> line 157, in get_template, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] template, 
> origin = find_template(template_name), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
>  
> line 138, in find_template, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] raise 
> TemplateDoesNotExist(name), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] 
> TemplateDoesNotExist: 500.html, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] mod_wsgi 
> (pid=2688): Exception occurred processing WSGI script 
> '/home/jalala/projects/Hamkharid/bin/django.wsgi'.
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] Traceback 
> (most recent call last):
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py",
>  
> line 272, in __call__
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] response = 
> self.get_response(request)
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
>  
> line 169, in get_response
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] response = 
> self.handle_uncaught_exception(request, resolver, sys.exc_info())
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
>  
> line 218, in handle_uncaught_exception
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] return 
> callback(request, **param_dict)
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/utils/decorators.py",
>  
> line 93, in _wrapped_view
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] response = 
> view_func(request, *args, **kwargs)
> [Mon Dec 19 13:22:55 2011] [error] [cl